I thougt of assembling my own project with the atmega328 without the arduino module.
Therefore I have done the following actions:
placed the atmega328 on a breadboard, connected it to a 5v power source,
connected the RESET pin to the 5v
connected the 16Mhz oscillator to capacitors (I didn't have 22 pf so I used other small capacitors) and to the chip
And waited for led 13 to blink.
However, It seems like chip doesn't response.
When placing it back to the arduino it works properly, and connecting the power source to ampmeter I see it consumes current.
What could have I done wrong?
here is the picture of the breadboard:http://img824.imageshack.us/img824/4125/img0005dg.jpg
Thanks for anyone who helps!:)
These are the instructions for setting up an Atmel chip on a breadboard.
Make sure the microcontroller is plugged in starting at row 11 bridging across the two sides
of the breadboard.
Set up Power to the Breadboard
1. Connect the left and right rails of the breadboard with two pieces of
wire, connecting red to red and blue to blue.
2. Plug the voltage regulator (7805) into the breadboard on the left side.
Plug the input pin into row 28, the ground pin into row 29 and the
output pin into row 30.
3. Make sure this is correct, or else it won't work!
4. Then using wire connect row 29 of the breadboard to the blue
(ground, “-”, GND) rail.
5. Now connect the red wire of the battery clip into row 28.
6. Connect row 30 of the breadboard to the red rail.
7. Connect the black wire of the battery clip to the blue rail.
8. Do not connect the battery yet!
Wire up the Microcontroller
1. You will need to cut and strip 6 short wires for this step.
2. Using wires, connect pin 7 of the microcontroller to the red (+5V) rail of the
3. Connect pin 8 of the microcontroller to the blue (GND) rail.
4. Connect pins 20 and 21 of the microcontroller to the +5 rail (this is on the
right side of the breadboard).
5. Connect pin 22 of the microcontroller to the GND rail.
6. Connect the RESET pin (pin 1) to the +5V rail.
7. Connect the crystal oscillator to pins 9 and 10 on the MCU.
8. Insert the 0.1uF capacitor between pins 7 and 8 of the microcontroller (+5V and GND).
9. Connect row 25 on the left side of your breadboard to GND. Connect a SPDT switch into rows
24, 25, and 26 of the breadboard. The switch will connect pin 14 of the MCU to GND when the
switch is up and disconnects it when the switch is down. This will allow us to tell the MCU when
we want it to boot into programming mode or to run the program already on the chip.
Wire up USB cable
1. Connect the black wire to the blue GND rail.
2. Connect the red wire to row 9 of the breadboard (Row 9 is an empty row)
The red wire can be used to supply power to the MCU if connected to the Positive rail on the breadboard,
remember to disconnect the battery!
3. Connect the yellow wire to MCU pin 2 (row 12 on the breadboard).
4. Connect the green wire to MCU pin 3 (row 13 on the breadboard).
Here is the Datasheet for the Atmel chip it shows what the pinouts are.http://www.atmel.com/dyn/resources/prod_documents/8271S.pdf
Also if your chip is new it needs a bootloader.
If your wanting to build your own Atmel based microcontroller check out Nerdkits.
They send you everything you need along with great instructions, they also have a support forum with tutorials.