If you need assistance, please send an email to forum at 4hv dot org. To ensure your email is not marked as spam, please include the phrase "4hv help" in the subject line. You can also find assistance via IRC, at irc.shadowworld.net, room #hvcomm.
Support 4hv.org!
Donate:
4hv.org is hosted on a dedicated server. Unfortunately, this server costs and we rely on the help of site members to keep 4hv.org running. Please consider donating. We will place your name on the thanks list and you'll be helping to keep 4hv.org alive and free for everyone. Members whose names appear in red bold have donated recently. Green bold denotes those who have recently donated to keep the server carbon neutral.
Special Thanks To:
Aaron Holmes
Aaron Wheeler
Adam Horden
Alan Scrimgeour
Andre
Andrew Haynes
Anonymous000
asabase
Austin Weil
barney
Barry
Bert Hickman
Bill Kukowski
Blitzorn
Brandon Paradelas
Bruce Bowling
BubeeMike
Byong Park
Cesiumsponge
Chris F.
Chris Hooper
Corey Worthington
Derek Woodroffe
Dalus
Dan Strother
Daniel Davis
Daniel Uhrenholt
datasheetarchive
Dave Billington
Dave Marshall
David F.
Dennis Rogers
drelectrix
Dr. John Gudenas
Dr. Spark
E.TexasTesla
eastvoltresearch
Eirik Taylor
Erik Dyakov
Erlend^SE
Finn Hammer
Firebug24k
GalliumMan
Gary Peterson
George Slade
GhostNull
Gordon Mcknight
Graham Armitage
Grant
GreySoul
Henry H
IamSmooth
In memory of Leo Powning
Jacob Cash
James Howells
James Pawson
Jeff Greenfield
Jeff Thomas
Jesse Frost
Jim Mitchell
jlr134
Joe Mastroianni
John Forcina
John Oberg
John Willcutt
Jon Newcomb
klugesmith
Leslie Wright
Lutz Hoffman
Mads Barnkob
Martin King
Mats Karlsson
Matt Gibson
Matthew Guidry
mbd
Michael D'Angelo
Mikkel
mileswaldron
mister_rf
Neil Foster
Nick de Smith
Nick Soroka
nicklenorp
Nik
Norman Stanley
Patrick Coleman
Paul Brodie
Paul Jordan
Paul Montgomery
Ped
Peter Krogen
Peter Terren
PhilGood
Richard Feldman
Robert Bush
Royce Bailey
Scott Fusare
Scott Newman
smiffy
Stella
Steven Busic
Steve Conner
Steve Jones
Steve Ward
Sulaiman
Thomas Coyle
Thomas A. Wallace
Thomas W
Timo
Torch
Ulf Jonsson
vasil
Vaxian
vladi mazzilli
wastehl
Weston
William Kim
William N.
William Stehl
Wesley Venis
The aforementioned have contributed financially to the continuing triumph of 4hv.org. They are deserving of my most heartfelt thanks.
Registered Member #190
Joined: Fri Feb 17 2006, 12:00AM
Location:
Posts: 1567
I am not sure I will do this, but I would like to know what it involves. Right now I am using a PLL to lock onto the resonant frequency for an induction heater. However, it still requires that I have the PLL in the correct range, and it still requires slight tweeking during use.
If I change the coil, or put different metals in the coil, the resonant frequency can be so far off that it requires readjustment of the PLL. It would be nice if I had a chip running a simple software routine that started pulsing the driver above resonance and then decreased the frequency. As the frequency is changed it could look at inverter current, or I could XOR the inverter voltage and current looking for the region where current goes from lagging to leading.
My initial questions are: what chip could be programmed to do this? what auxillary equipment do I need to program the chip? what language is being used for the programming?
Registered Member #1334
Joined: Tue Feb 19 2008, 04:37PM
Location: Nr. London, UK
Posts: 615
Small PIC or AVR would do the job simply - there are some really tiny ones that are dead cheap but quite tricky to program (cos they're small). Best to go for something in a DIP8 package and socket it (avoid SMDs). You need a few I/O pins and probably some analogue input (D/A converter). Most have PWM & Timers, even in the 8-pin versions...
Programming is either in assembler, C or BASIC-type languages. The very very small uPs don;t have a stack, which makes the use of high-level languages tricky, so sometimes its worth paying the extra buck or two just so you can use BASIC or C (or whatever). Arduinos etc. would be very much overkill for this.
Programming depends on the uP - some can be done via a simple serial/parallel port adapter - if you have a few quid, buy a decent programmer - some are very cheap.
Olimex do a whole bunch of development boards etc. for the experimenter - I think that Sparkfun might be agents in the USA. There are a zillion boards available anyway...
Advantage of using a BASIC-type language is that its simple to learn and often will hide the unpleasantness of the hardware from you - if you've not messed with uPs much, frigging around with A/D converters etc. can be a pain.
Have a look at - the author is a good guy and I know lots of people who use his stuff with great success.
If you consider the AVR route (which are my favourites), there is a really useful forum at .
Both PICs and AVRs have free IDEs from the manufacturer, and if you want to do your own thing in an HLL, you can use WinAVR for the AVR (an AVR port of the GNU C tool chain) and similar for the PICs. As I don;t use PICs any more, someone else will no doubt leap in here.
One thing I would say is that uPs and BIG CURRENTS do NOT mix well. Many will lose the plot completely unless very well shielded (and that means everything the has anything to do with the uP shielded).
Registered Member #27
Joined: Fri Feb 03 2006, 02:20AM
Location: Hyperborea
Posts: 2058
Use something someone else uses and make sure they will reply to your questions then you can't go far wrong. It will save you a lot of time.
It does not really matter what you use as long as you don't try to use a chip that is not really powerful enough for the job. Atmel will be fine, they got the full range from simple 8 bit to powerful 32 bit microcontrollers that can do just about anything.
Registered Member #1334
Joined: Tue Feb 19 2008, 04:37PM
Location: Nr. London, UK
Posts: 615
IamSmooth wrote ...
Would ATMEL be a good company to get some PLCs from?
Atmel don't do PLCs - they do micro processors and some support chips - PLCs are build on uPs, typically 8051 or similar based with added output relays and opto-isolated analogue & digital inputs. They tend to use a deterministic flow-chart type language that is interpreted by the underlying uP software and which abstracts the physical implementation of the hardware. So, instead of worrying about bits in an I/O register, you might have pseudo-code such as "if analog-input-1 > 3.5V then close relay-2" (sort of!).
Join the AVR Freaks forum and ask there - lots of helpful people.
Registered Member #27
Joined: Fri Feb 03 2006, 02:20AM
Location: Hyperborea
Posts: 2058
A programmable logic controller (PLC) is an expensive device generally used when you make good money from what you make. You are most likely looking for a microcontroller that is much more stripped down and can cost down to almost nothing.
I have used most types of microprocessors and microcontrollers one time or another. When I am experimenting with something I use 32 bit ARM chips because it does not make sense to waste a lot of time just to save $10 a year. If I make something that is supposed to be used for a long time and an ARM chip seems too much I use a PIC for historical reasons (I got a PIC development kit for cheap).
In the chat room you will find users of most microcontrollers.
Registered Member #27
Joined: Fri Feb 03 2006, 02:20AM
Location: Hyperborea
Posts: 2058
Today many chips come programmed with boot loaders that makes it possible to connect them more or less directly to a PC over RS-232 or USB. In some cases it is like that from the manufacturer or it can be done by a reseller that will sell those chips for a slightly higher price.
The other option is to build your own programmer that can be a s simple as a few resistors even if a bootloader is generally a more reliable method.
This site is powered by e107, which is released under the GNU GPL License. All work on this site, except where otherwise noted, is licensed under a Creative Commons Attribution-ShareAlike 2.5 License. By submitting any information to this site, you agree that anything submitted will be so licensed. Please read our Disclaimer and Policies page for information on your rights and responsibilities regarding this site.