Standalone Atmega328

Introduction: Standalone Atmega328

About: From solder to zip ties, lead acid batteries and LEDs, and especially Legos, putting things together has always fascinated me. The more challenging the better, because whats the fun of putting something togeth…

We all have a deep fondness to our Arduino with its familiar shades of blue/green, but the time has come to explore other project options. One that involve fewer pieces, fewer parts, and fewer dollars. Building a standalone Atmega328 is far simpler than you might have imagined and can open up a wide range of of new project possibilities.

Atmega328 Datasheet:

Step 1: Materials:

The shopping list contains parts that are entirely plug and play. No configuration or setup needed! These parts are from Sparkfun using their parts #, but are widely available from other electronic websites.
Sparkfun is kind enough to put a little sticker on the chip so that you know what each pin corresponds to ex. 1 is RESET.

Atmega328 DEV-10524 - make sure that it has the boot-loader on it. You can put it on, but this one has it and it makes everything far simpler.

28 Pin DIP socket PRT-07942 - helpful for reprogramming the chip so that you don’t have to de-solder it every time you need to make a change (breadboard friendly).

Power (3 options depending on power source):
a) 4x AA NiMH Batteries PRT00335- They are each 1.2V so *4=4.8V, safely with the Atmega328′s operating range. Also helpful is the fact that they will give you around 2500mAh versus ˜800mAh from a 9v Battery.
b) 1x 5v Voltage Regulator COM-00107 - The Atmega328 needs a regulated voltage to run and 5v is well within its operating range. You will need a 9V+ power supply for the voltage regulator 2x Electrolytic Decoupling Capacitors COM-00523.
c) 1x 5v Voltage Regulator - - Takes less than 5v and steps it up so that your Atmega328 is running at 5v.

Resonator COM-09420 - No fuss or extra parts. The middle leg goes to ground and the other 2 legs go to Pin 9 and 10.

1x Pushbutton - it does not matter what kind, this will be used for reset.
1x 10K Ohm resistor.

Breadboard with channel
300 Ohm resistor

Step 2: Hooking It All Up

You can access the schematic at Upverter
These parts can be hooked up directly to VCC and GND.

If you are using the step down converter this is the setup:
Between the INPUT power and COMMON(GND) connect a decoupling capacitor with the white strip face GND and another setup the same way from the OUTPUT to COMMON(GND)
Otherwise the you can power the Atmega328 with less than 5v, although, some protection is probably a good idea. Perhaps a Zener diode assuming you can waste some power as heat?

If you are using the Ceramic resonator the 2 outside legs go to pins 9 and 10 (where it says VCC and GND on the left) and the center goes to GND.
If you are using the ceramic crystal connect the crystal between pins 9 and 10 going to GND and connect the 22pf capacitors between GND and the pins.

Reset button:
From pin 1 (RST) create a connection to your push button. On the other leg (same side of push button) connect the 10k Ohm resistor to GND. Now whenever you push it the Atmega328 will reset itself.

Lastly wire a resistor from D13 to a LED connected to GND so that you can test the Atmega328 with the blink script. You can also add various LEDs to test for example, is the power flowing in.

Step 3: Programming

At this point you might be wondering how this will ever be programmed? There is no USB connector anywhere. The simplest and cheapest solution is if you look at your Arduino Uno or equivalent and notice that the Atmega328 in that is not soldered down, but in a similar DIP package that your Atmega328 is resting in on the breadboard. With a screw driver gently, gently (watch the tiny legs on the end) pry it out and insert your other Atmega328. Program it, pop it out, and now you can run the Blink sketch or whatever you choose on your breadboard!

Congratulations! You are now free to control the Atmega328 in any form without any constraints.

Hack It! Contest

Participated in the
Hack It! Contest

Be the First to Share


    • Sculpt & Carve Challenge

      Sculpt & Carve Challenge
    • First Time Author Contest

      First Time Author Contest
    • Eggs Challenge

      Eggs Challenge



    4 years ago

    nothing is visible in circuit diagram

    Thank you Hammock Boy, for this presentation. Due to the cost of the Arduino boards not many can afford to plop one into every project they make. Of course the size of an Uno or Leonardo can also be an issue, that's where your project comes in, with it's much smaller footprint.
    I wonder if you could enlarge your images a mite? At 15k I'm unable to decipher any info contained. A readable schematic would be most welcome.

    very nice! been meaning to try this out for some time now, I'd love to get some of my projects running without using up an entire arduino! have you finished anything that uses only the ATMEL chip?

    Hammock Boy
    Hammock Boy

    Reply 9 years ago on Introduction

    Do you mean no components other than the Atmega328? I have some projects (disassembled right now and re purposed) that used an Atmega328 instead of an Arduino.

    The only problem with not using an Arduino is that you lose the serial communication unless you buy an FTDI chip which also gives you the benefit of being able to reprogram the chip without taking it in and out of the DIP package.

    For example: