This tutorial will go through the steps involved in fabricating your own Arduino-compatible circuit using just ~$8 of partsΒ (this includes the ATMega chip!).Β This is perfect forΒ installing and embedding in permanent pieces, as you don’t need to waste a full $30 Arduino board in a project you will never need to reprogram or touch ever again.Β It is also great because you can solder anycustom circuitsΒ (LEDs, other ICs, any external analog circuit) on the same board, and customize in terms of shape and size.
I assume you have a regular Arduino board already, so pulling out the chip to reprogram it shouldn’t be a big deal, since we’re going for minimal parts here. You could even go simpler by leaving out the reset button! To better illustrate the process, I did all the wiring on top of the board for tutorial purposes, but feel free to save yourself some space and make some of the connections on the copper-clad side of the board, as seen onΒ hackduino.orgΒ or similar.
Step 1: Gather Components and Tools
Parts list and buy links:
β’ 28-pin DIP IC SocketΒ – $0.30 –Β buy mouser
β’ 16MHz crystalΒ – $0.55 –Β buy mouser
β’ momentary push-buttonΒ switch – $0.15 –Β buy mouser
β’ 1k ohm resistorΒ – $0.05 –Β buy mouser
β’ LM7805Β 5v voltage regulator – $0.35 –Β buy mouser
β’ 2 x 22pFΒ capacitors – $0.12 –Β buy mouser
β’ 10nFΒ capacitor (ceramic disc code ‘103’) – $0.10 –Β buy mouser
β’ 22uFΒ capacitor – $0.02 –Β buy mouser
β’ ATMega168 or 328Β microcontroller chip w/Arduino bootloader (you can use the one on your Arduino for now!) – $4.00-$5.50 –Β buy unbootloaded mouser(cheaper) /Β buy bootloaded sparkfun(expensive)
β’ breadboard style perf boardΒ – $1.45 fromΒ electronix expressΒ (elexp), or $1.99 – fromΒ radioshack
Total cost of components:Β $7.39Β (!!!) Β *22AWG wire is not included
I have created aΒ Mouser projectΒ that includes everything you will need,Β except for the perfboard itselfΒ (Mouser doesn’t carry a good one at a good price).Β Also, this is the blank ATMega328Β – so you will need toΒ bootload the chip yourself. Also keep in mind that ordering in multiples makes everything cheaper!Β Β Here is the Mouser project.
Tools:
β’ IC Extraction Tool (you can use a min-flat head screwdriver to pop out chips as well) –Β buy
β’ Wire strippers
β’ Snips
β’ Multimeter
β’ Soldering Iron + solder
Step 2: IC Socket
First step is to figure out what exactly what you are putting into this circuit.Β For this tutorial all we will build, other than the ATMega necessities, is a voltage regulator, so I am leaving space at the top of the board for this.Β I also recommend leaving some space towards the bottom for a capacitor.Β However, if you know this will include much more than just the ATMega circuit, you should plan this out on your board now, and install the IC socket appropriately.
Most IC’s (Integrated Circuits), and consequently their corresponding sockets, have a notch on one end.Β In this photo, you’ll see the notch is towards the top of the board.Β This is extremely important to pay attention to both while building the circuit and when inserting the chip during the last step.
Go ahead and solder all 28 pins in, making sure the pins are sticking out of the copper side of the board.
Step 3: Voltage Regulator
LM7805 circuit goes next.Β The 7805 allows you to power the circuit with a 9v battery or even 12v DC power supply, and ouputs 5v which is what our chip wants.Β With the “chair” facing you, solder the 10nF capacitor connecting the right two legs of the 7805.Β In this position, from left to right, the pins areΒ input voltageΒ –Β groundΒ –Β output voltageΒ (5v).
10nF cap (labeled 103) bridges the GND and OUTPUT voltage.
[box color=”#985D00″ bg=”#FFF8CB” font=”verdana” fontsize=”14 ” radius=”20 ” border=”#985D12″ float=”right” head=”Major Components in Project” headbg=”#FFEB70″ headcolor=”#985D00″]β’ 28-pin DIP IC Socket
β’ 16MHz crystal
β’ momentary push-button
β’ 1k ohm resistor
β’ LM7805Β 5v voltage regulator
β’ 2 x 22pFΒ capacitors
β’ 10nFΒ capacitor
β’ 22uFΒ capacitor
β’ ATMega168 or 328Β microcontroller chip w/Arduino bootloader[/box]
For more detail:Β Perfboard Hackduino Arduino-compatible circuit