Go Down

Topic: Atmega 328 standalone (Read 3 times) previous topic - next topic


Hello there.

Last week finally got my Arduino board and after few succesfully projects i started to search information of little complicated projects.
So one thing in my mind is Atmega 328 chip standalone after programming it with Arduino board.

Eg. if i make a room temperature measurement with LCD display and i don´t want to use Arduino board in it, how can i setup system like this?
All programming would happen so that i remove the chip from measurement board and attach it to Arduino board.
After programming i swap the chip back to measurement board.
So can i just attach the chip to board after installation, connect Vcc, Gnd and Vref pins and then it is ready to read analog or digital values from programmed pins?
So i don´t need any programming options for that standalone installation.

Tried to search answers over the web but there were allways mentioned resonators, led´s, capasitors etc.



I know what you mean!
I just built 2 of these, I'll be building another 12 as soon as the parts arrive, I've added a few bits of my own and call it the "Barnduino"!
That's coz It'll be living in a turkey barn, monitoring water flow sensors.

The circuit diagram pdf is here

You'll need to get an FTDI cable to program them, but if you are serious about Arduino you'll need 1 or 2 eventually.

Hope that helps!


You'll need more hooked up than just power and ground wires. A 16mhz crystal with 18-22pf capacitors (the actual size of the capacitors you'll need depends on the crystal you get) or a 16mhz resonator, which has the capacitors built in. Resonators sacrifice accuracy in the name of having a smaller size and require fewer components. You'll also need a 10k pullup resistor on the reset pin as well.

Here's a link that will show you the minimum components to get the chip going. After that, attach your other circuits to the pins you were using and you're good to go.

Tyler M

Look at the bottom of this page. It shows you how to do what you're asking.


Its very easy you just need:
1) A single 16 MHz Crystal oscillator (Note i had really bad experience using the internal Oscillator @ 8MHz )
2) 2, 22pf CAP's and, Finally
3) 1 > 10K Ohm resistor.

Connect the VCC and GND at the both sides of your ATmega 328 (the other side is the AVCC and GND connect them same as the VCC and GnD) and,

Connect the 10 K ohm resistor with the 1st pin i.e. the reset pin and,

connect the Crystal with the 9 and 10 number pins of the ATmega328 directly and from the crystal pins connect the  2, 22 pf caps(1 crystal pin 1 cap) and let the caps pins go in the ground and HERE YOU'RE On! with your own ATmega328 Standalone

IT's Definitely going to work

POWER>> power the circuit from a 3.3v or 5v DC source.

NOTE: you can use the same method with the ATmega168 and ATmega8
"Real Men can Accomplish  Anything"
-  Website  
- skype : nishants5  

????? ???? !

Go Up