On 09/18/2012 05:28 AM, Dekatron42 wrote:
> Definately over-engineered, it says "created by John Day and Sean Cappy of
> Microchip" so it is no wonder they use a lot of Microchip IC's......
That's kinda old-think, wouldn't you say? While the multicolor fading
LEDs are a bit tacky, the throwing of handfuls of processors is very
appropriate.
I'm taking the same approach to my latest induction heater design.
Whereas my last one contains one processor, lots of code that took
months to test for all possible boundary conditions and is a bear for an
incoming technician to come up to speed on, in my current design I have
6 Atmels and an FPGA. Each $2 processor handles its own little area but
does it well, very fast and with simple code. The FPGA handles the
really fast stuff like desat protection of the power IGBTs and then
informs the master processor what it did via SPI.
This project is coming together approximately 3 times as fast as the
previous one, has many more features (such as ethernet and USB remote
control) and will cost about the same. The savings on code testing
alone justify this approach.
One little example. I needed AGC (automatic gain control) to level out
the signal coming back from the resonant tank of the heater. This
signal ranges in voltage from about 20 volts to over 2000. I whipped
out a conventional analog AGC circuit using an op-amp and a FET plus
some resistors and it worked fine. But at about a buck fifty for the
very high speed op amp and 85 cents for the FET, I realized that I
could do it cheaper in a processor.
Now an AT90PWM sits there using its 12 bit DAC to measuring the incoming
signal. It PWM DACs a control voltage to a simple bipolar transistor
that shunts one of the resistors in the voltage divider. The few lines
of code use the built-in hardware PWM processor to generate whatever
base current is required to keep the processor incoming voltage the same.
I'm a slow programmer but it only took a couple of hours to knock out
the code to make it work.
I get a couple of vital functions out of the deal too. One is an "AGC
lock" signal (via SPI) that tells the main processor not to try to
phase-lock if there is insufficient signal. Another is with a little
integral thrown in, the output is always the same voltage. The analog
AGC did OK in this regard but the digital version is perfect.
If I were designing a Nixie clock right now (wish I had the time!), I'd
be taking the same approach. One processor per tube, a processor for
feature control such as remote control and motion sensing and a master
processor to glue it all together.
Hmmm, this got kinda long but I felt the need to counter the inevitable
"overengineered" comments with a little NewThink.
John
--
John DeArmond
Tellico Plains, Occupied TN
http://www.fluxeon.com <-- THE source for induction heaters
http://www.neon-john.com <-- email from here
http://www.johndearmond.com <-- Best damned Blog on the net
PGP key:
wwwkeys.pgp.net: BCB68D77