Thursday, September 24, 2015

Standalone Atmega328P On A Breadboard

Standalone Atmega328P On A Breadboard

   With this project I wanted to be able to be able to program a Atmega328P chip on a breadboard.  This is the same chip used on several of the Arduino boards. I used the simple Blink program to blink the blue led.


Parts List
NOTE - I ordered most of this on E-Bay and most of it came from China.  You may have to wait a week but for the prices it's worth the wait. Actually if you ordered in states it might take just as long.

1 - Breadboard - MB-102 MB102 830 Point Solderless PCB Bread Board - you can get off E-Bay for around $3 which includes shipping.   Of can be used over and over.
1 - Breadboard Power Supply - MB102 Breadboard Power Supply Module 3.3V 5V For Solderless
1 - Breadboard - plugs right on top of the breadboard to power the rails on both sides - $.90 off E-Bay and with free shipping.  I really love this device.  You have jumpers for each rail for either 3v or 5v which you can select for each side if you need both voltages.  Also you can power it via a 9v battery like I have or via usb to your computer.
1 - 9V Battery Plug - DC 9V Battery button power plug - $1.36 of E-Bay for 2 with free shipping. 
1 - 9V Battery - Obviously you can buy them wherever they are cheapest around you.
1 -  USB to TTL adapter - There are several out there.  It's always a good idea to get on that supplies 3v and 5v output.  You could use it to actually power the breadboard but I wanted to be able to power it without the USB cable plugged in.  On E-Bay for $.16 with free shipping.  No, that's not a typo, 16 cents.
1 - Atmega328P-PU - Atmega328P-PU with Arduino Bootloader - $1.59 off E-Bay with free shipping.  You can find some deals sometimes for multiples in anticipation of making several standalone units.
1 - 16Mhz Crystal - 16Mhz Crystal Oscillators HC49S Quartz Low Profile - $.75 for 10.
2 - 22pF Caps - 22 50V Monolithic Ceramic Chip Capacitor - $1.79 off E-Bay for 50 pieces.
1 - LED - I just happened to have a bunch of blue LEDs around.  Most of the time you use a resistor to keep the LED from drawing too much current and burning out.  But the ones I have didn't seem to draw too much.  Of course the LED was just for demonstrating purposes to show it worked.  It could be eliminated and the circuit used in other ways.

 For a more of a standalone setup you can put the components on a small perf board.  That's my next step.  For that I need the following:
1 - Perfboard -
1 - LM7805 5V Regulator - L7805 LM7805 Voltage Regulator +5V 1.5A LDO - 5 pieces for $.99 with free shipping off E-Bay.
2 - 10uF Electrolytic caps - 10uF Radial Lead Electrolytic Capacitor - find some low voltage ones like 6-20V.  Radial just means the leads are on one end.  You can get 100 for like $5 off E-Bay.
1 - Atmega328P-PU - Atmega328P-PU with Arduino Bootloader - $1.59 off E-Bay with free shipping.  You can find some deals sometimes for multiples in anticipation of making several standalone units.
1 - 16Mhz Crystal - 16Mhz Crystal Oscillators HC49S Quartz Low Profile - $.75 for 10.
2 - 22pF Caps - 22 50V Monolithic Ceramic Chip Capacitor - $1.79 off E-Bay for 50 pieces.
1 - Momentary Pushbutton -  Mini Micro Momentary Tactile Push Button Switch 6*6*5mm 4pin - $1.77 for 100 on E-Bay.  Hope you make a LOT of projects. lol  But hey, for that price who cares.  You pay a lot more for 1 at a lot of electronics places.
1 - 10k Resistor - 10k ohm 1/4w resistor - $1.10 for 100 pieces off E-Bay

I'm going to add a schematic later but you can look up on Google for "Arduino on a breadboard schematic". 
I do like THIS one the best.  Just ignore the stuff on the right side of the schematic.

STAY TUNED! I WILL BE ADDING MORE TO THIS LATER!