BeanAnimal
Premium Member
<a href=showthread.php?s=&postid=13711804#post13711804 target=_blank>Originally posted</a> by hellssephiroth
wow that is so kewl, wish i could do stuff like that, started going to school for electronics but had to drop out due to financial issues and bad roomates....... keep up the good work man!
I have no formal training, other than a BS (very useless) electronics class in junior high school. This is all self taught with the help of asking questions on some electronics forums.
There is nothing very complex here, just building blocks of basic systems.
The Atemga128 needs very little external circuitry. A 5V power supply rail and some filter caps, along with a clock crystal (it can also run without the crystal using its own internal Phased Locked Loop).
The relays are tied to the Atemaga PINS via a simple transistor. This prevents the relay coils from drawing current THROUGH the I/O pins and allows them to pull current directly from the 5V rail. Basic transistor as a switch
The diodes on the board are all simple flyback or protection diodes to prevent the relay coils from damaging the sensitive components due to spikes.
The RS232 transceiver simply changes the low level signals from the Atmegas built in UART to a voltage and current usable with a PCs serial port. It only needs a few external filter caps and is hooked directly to the Atemags UART pins.
The Real Time Clock uses its own crystal oscillator and a few filter caps. It ties directly to the I2C pins of the Atmeaga. Standard pull-up resistors for SDA and SDL (the standard I2C lines).
The power supplies are right out of the datasheets (I did add some extra filtration in the form of a choke coil).
The WIZNET is the most complex piece in the system. The Bascom compiler has some built in commands to make working with TCP/IP over SPI easier.
The BASCOM compiler also has some built in features to deal with rotary (quadrature) encoders.
So all in all, this looks complex but is fairly simple compared to many other projects.