Step 31Build the controller: clock frequency
You may be thinking that this is an odd number to use, and why we didn't run the ATmega at the 16MHz it is rated for.
We want to be able to control the LED cube from a computer, using RS232. Serial communication requires precise timing. If the timing is off, only by a little bit, some bits are going to be missed or counted double from time to time. We won't be running any error correcting algorithms on the serial communications, so any error over the line would be represented in the LED cube as a voxel being on or off in the wrong place.
To get flawless serial communication, you have to use a clock frequency that can be divided by the serial frequency you want to use.
14.7456 MHz is dividable by all the popular RS232 baud rates.
- (14.7456MHz*1000*1000) / 9600 baud = 1536.0
- (14.7456MHz*1000*1000) / 19200 baud = 768.0
- (14.7456MHz*1000*1000) / 38400 baud = 384.0
- (14.7456MHz*1000*1000) / 115200 baud = 128.0
As you can see all of these RS232 baud rates can be cleanly divided by our clock rate. Serial communication will be error free!
| « Previous Step | Download PDFView All Steps | Next Step » |


































































































![Hard Wired LED Cube: [No Programming]](http://img.instructables.com/files/deriv/FTD/SF1T/GO8DC8KW/FTDSF1TGO8DC8KW.SQUARE.jpg)















I am not sure if the way I insert the crystal makes a difference.
Thanks in advance.
Good Luck!
I keep bumping into this type of questions.
I am assuming it would be the same for the ceramic capacitors, right? Or do these have polarity?
Electrolytic capacitors do have polarity though. Usually it is indicated where ground has to go.
Don't worry about asking questions, the community is there to help you build these awesome things!!!
Can I use a Mac to control the cube?