Step 49Software: Introduction
The AVR route is much more hassle free. Just apt-get install the avr-gcc compiler, and you're in business.
The software on the AVR consists of two main components, the cube interrupt routine and effect code for making fancy animations.
When we finally finished soldering, we thought this would be the easy part. But it turns out that making animations in monochrome at low resolutions is harder than it sounds.
If the display had a higher resolution and more colors, we could have used sin() and cos() functions and all that to make fancy eye candy. With two colors (on and off) and low resolution, we have to use a lot of if() and for() to make anything meaningful.
In the next few steps, we will take you on a tour of some of the animations we made and how they work. Our goal is to give you an understanding of how you can make animations, and inspire you to create your own! If you do, please post a video in the comments!
| « 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)















please help!
I have been loking at this tutorial and I am wondering if the microcontroller has to have the same numbers/ letters written on it...
In other words, would either of these microcontrollers work?
http://www.ebay.com/itm/1pcs-ATMEGA32A-PU-MCU-32K-FLASH-16MHZ-40-PDIP-ATMEGA32-/250891976699?pt=LH_DefaultDomain_0&hash=item3a6a53bffb
http://www.ebay.com/itm/1PCS-ATmega32A-PU-ATMEL-Brand-New-Original-/320854374464?pt=LH_DefaultDomain_0&hash=item4ab4693840
http://www.ebay.com/itm/1p-Original-ATMEL-ATMEGA32A-PU-ATMEGA32A-DIP-40-IC-NEW-CK19-/260901363057?pt=LH_DefaultDomain_0&hash=item3cbeeedd71
http://www.ebay.com/itm/New-1x-ATMEGA32A-PU-MCU-AVR-8-bit-32K-Flash-16MHz-Microcontroller-/230678624274?pt=LH_DefaultDomain_0&hash=item35b5847812
I appreciate your help, in the end, I decided to keep looking for an identical Atmega to avoid any problems.
I am thinking that my winavr setup is bad. maybe crlf? lf? cr?
anyway, dual booted into linux, edited the source and compiled first time no errors and programmed the chip with no problems either.
i'm have troubdle to detect it please help
That isn't a programmer board. It's a development board which allows you access to the PORTA-D pins on the ATmega16 either via the IDC connectors, or directly to the included LEDs and switches via the jumpers on the board.
As far as I can see, the USB port is ONLY used for powering the board. Be very careful if you are building the LED cube, as it can draw around 1A or so, and USB1.1/2.0 spec only allows for 500mA of current, so you could blow the USB port on your PC if you attempted to only rely on USB power. A cheap 2A/5V power brick connected to the power connector, or a salvaged PC power supply will work as per Chr's instructions.
You need to buy an ISP programmer, e.g. a USBasp or USBtinyISP to program the microcontroller. This will connect to one of the two 10-pin connectors at the "left" edge of the board as shown on eBay. One of these is a JTAG port and the other is the ISP port. You will need to use the ISP port.
Hope this helps!
No explanation on that.
i have a ardino bord for atmaga328.
can i use for this is ie atmaga3216pu.
Since it works with an external crystal frequency there should be no problem.
I have not the data sheet.
There should be some specs for operating frequency range with Your Atmega..
Here it is:
http://www.atmel.com/dyn/resources/prod_documents/8011S.pdf
There states that it is operational from zero to 20 MHz ! :)
Good Luck!