Step 12: Programming With the Arduino Uno

To program the chip with the uno board, I simply pried the chip on the arduino board off, and replaced it with the new chip. I then uploaded whatever sketch I wanted to use the same way you would any other. Once program I pried it out again and placed it in the new arduino board. 

Anything you can do with the arduino (except serial read, and other things that require constant interface with the computer) can be done on the Homemade arduino in this way.
<p>Hey what can you use as a substitute for the two 10 uf tantalum capacitors? I have all the materials except for that. </p>
<p>You could try using electrolytic caps instead of tantalum if you wish.</p><p>I've been able to obtain all the needed parts from Mouser and/or Adafruit.</p>
<p>Hi can i use this to install bootloader into my atmega 328? it is </p>
<p>A simple USB-to-Serial is not usually good enough. You'll need a programmer like USBtiny to do it.</p>
<p>Now, you will begin making connections on the chip. connect pins 7, 20 and 21 to five volts and pins 8 and 22 to ground.</p><p>What is you mean pin 7 ,20 and 21 to five volt?bcs i look from the picture look like you connect to pin 7 to pin 21 </p>
<p>I built mine with a solderable breadboard. Simply connect pins 7, 20, and 21 to the +5V bus. Then, pins 8 and 22 should be connected to the ground/0V bus.</p>
<p>hey,</p><p>question about the power supply you used:</p><p>what voltage and mah did you use?</p><p>(I assume a 5V, but I don't know what mah)</p><p>thanks</p>
<p>The &quot;real&quot; arduino devices recommend a 9V power supply. The 7805 regulator will lower the voltage to 5 for you, and it provides sufficient current for the rest of the chip to work.</p>
<p>how to do pragramming ..?</p>
<p>Either swap the chip into a real Arduino and use the USB programming, or utilize a programming device (such as USBtiny, AVRISP, etc) and attach it to the ICSP breakout, which is part of the last step shown above.</p>
<p>Hey! </p><p>Can I use a ceramic capacitor instead of the tantalum one? and is there a replacement to the 150 ohm resistor? That's a bit hard to find </p>
<p>You could probably use another low-value resistor such as 200 or 220 for the LEDs. Don't go much higher than that, it's not necessary and will just consume a bit more power, which could be an issue if you're using batteries instead of a wall adapter.</p>
<p>Just a question here , can you just stack the blank chip on to the inserted programmed chip and then load a sketch? Would it harm the original one ,just wondering if it could be done that way.</p>
<p>Definitely not. You need to remove the chip from the socket, stacking them is not possible or safe for the chips.</p>
thanks for this instructable. i failed with my First one, but the second one is useable. i Made the whole digital row of Pins Marked yellow. analog Green. vcc Red. i soldered a 10 Pin ISP. tested and Run with an USB asp.
<p>sir pleeeeezzzzzz send diagram</p>
<p>sir how to apply b-type usb socket on this circuit </p><p>ppppppppppppppllllllllllllllllllllllllllllllleeeeeeeeeeeeeeeeeeezzzzzzzzzzzzz sir!</p>
<p>Do we have to do something to make the pin no 28(A5) analog if working with only IC atmega 328?</p><p>or is it already analog? as it is showing constantly 5v in my IC.</p><p>please help.</p>
<p>will this home made Arduino board work with any thing. For example I wish to build MIDI controller </p>
Great instructions. Completed on my first go no issues. ( i have a few hundred extra bits of each part though now lol) thanks a bunch!
I don't understand what is the difference in the ATmega 328 and the 168. In the list of materials you call for an ATmega 328, then later you talk about connecting the female headers to the ATmega 168. I'm really confused! Can you please explain it to me? Thank you, Thom Mulford
the atmega 168 ist the oder atmega Chip. IT begann with the atmega 8 weich Ha&szlig; 8 Kb ran. second Version just gut Bigger Flash RAM i think. and the Took the 8 of the Name, Double IT and the flashand stand it a&szlig; atmega 168 and atmega 328 is just the 32 Kb Version of an atmega 8.<br>
How do you connect the 3.3v to the power supply? Does it just go to a female header?
yeah. i Would Do IT like you said . just connect IT to a female Header
<p>An awesome tutorial, and if not for Halo 5 coming out today, I'd jump right on it because I'm sure all I need is the Atmega haha. I have a question though, do you know what specifically allows a Digital Pin to be capable of Pulse Width Modulation?</p>
<p>where we programm in this hand made aurdino and Is every aurdino is resettable and Is a single aurdino can perform all the task of many aurdno</p>
<p>I'm a kid of 12 years old can i make it.</p>
<p>Yes you can. As long you know what you're doing, because one wire soldered in the wrong place can fry the chip, but if you take your time and check all connections after turning it on nothing bad will happen. </p>
<p>Thanks for sharing such a good job! <br>Is these 6 male headers for SPI connection?? I wanna use CAN-BUS Shield with this homemade Arduino. Is it possible?</p>
Pal, I made better one!<br>https://docs.google.com/file/d/0B4zJys3uKtnaZWd5bW03SHRZZlU/edit?usp=docslist_api<br><br>I also attached the instructions for what I did.
Where is output pin of 3.3 v is placed and how to identify the polarity of 10 uf tantalum
<p>hi. do i need atmega328 p-pu with optiboot for aduino (https://www.sparkfun.com/products/10524) or it s ok atmega328 p-pu without optiboot (http://store.comet.srl.ro/Catalogue/Product/18656/) and what is the difference. Thank you!</p>
<p>bootloader allows you to re-program your arduino using uart bus, instead of spi. you can get plain atmega328 and burn the bootloader using spi, just for the first time. btw i havn't done this before, but i just can predict it. so anyone else sees i'm wrong in something, just let me know</p>
<p>can i use 8051controller in aurdino</p><p>im not understood what exactly aurdino board it is like a starter kit of 8051?</p><p>tanvirfakir@gmail.com</p>
<p>arduino = atmel microcontroller + bootloader + improved IDE , i don't think arduino has released kit supporting 8051 </p>
<p>can someone say me the schematic to build an arduino using max232 and type-b usb socket</p><p> PLZZZZ....SOMEONE HELP !!!!</p>
<p>Help! help!! help!!!</p><p>Hello Guys, I am trying to manage the <br>movement of four(4) bit binary code over an Optical Link using Arduino <br>Board but am stucked, I don't know how to start.</p><p>Please I need Help</p>
<p>Help! help!! help!!!</p><p>Hello Guys, I am trying to manage the <br>movement of four(4) bit binary code over an Optical Link using Arduino <br>Board but am stucked, I don't know how to start.</p><p>Please I need Hel</p>
<p>thank you</p>
<p>could i mix a deumilanove's chip in that way with the uno's. i mean like chip exchange.</p>
<p>I don't see why not.</p>
<p>it would not get damaged would it?</p>
<p>At worst you might get a programming error, but the duemilanove uses the atmega168 I believe, which is identical to the 328 except it has 16k of program flash instead of 32k. But yeah, they have the same pinout and operating voltage so it should be fine.</p>
<p>I actually made two of them. The first one was the square one. It is rather ugly and messy. No polarity protection, dissimilar regulators, mostly salvaged parts. The programming LED is the big yellow one, and I used a resistor too small (150 ohms), meaning using pin 13 would be problematic because of the high current draw. I made errors installing the headers, so there are extra, unconnected pins on both sides. Both units sought to fit the most complete Arduino clone compatible with FTDI interface. Unlike the one presented here, I chose to add the 1Kohm resistors on the FTDI interface. Obvious defect: the headers are the small machined round type, which can't fit square male pins. Both use free wires to feed them, a rather personal choice as I have an old stabilized power supply fitted with screw connectors. Think about replacing that if you intend to use it with a wall wart. Both feature the standard 10-pin AVR programming interface present on the USBASP, as I didn't want to make an adapter.</p><p>The second one took it further, on a 15x25 perfboard, and designed to use in projects where space may not be large. As you can see, I had to fit some bulky components under the Atmega socket, itself made from female headers to allow for more space, and still doesn't use first-choice components but what I could find locally. It has dual regulators, polarity protection diode (1N4004, an OK replacement for the MBR0520 - telling from memory - in this application), and the 3.3V is a SMD unit that happened to be large enough for regular pitch, fed from the 5V from the 78L05 to save on space. I know it only gives 100mA, and if you attempt to make your own, try using the 78M05, which gives 500mA in the same footprint. I just have a lot of 78L05 in the parts bin. To keep a low profile, I used small LEDs: green for power (connected to the 3.3V regulator), white for pin 13. Unlike other common colors, it still gives a very powerful light with a 1Kohm resistor yet calculated current is only 3 or so mA.</p><p>Headers are unlabeled but thanks to the paler material this should be easier, and they do respect proper separation between them. The solder side is filled to the brims, and I don't think you could go any smaller using single-side board and through-hole components. With Atmega inserted, notch to the right, pinout is identical to original Arduino. I discovered a bit later that the design I used, as well as the one presented here, is closer to the 2009 version of Arduino.</p><p>Approximate cost for one unit: $7.50 You can make them even cheaper buying from Chinese or Thai vendors. They typically sell 100-packs of 2% precision resistors for $1 or $2. Salvaging used electronic boards from TVs or stereos usually is usually messy, but can yield appreciable amounts of small, through-hole resistors, capacitors, etc. Just don't forget to check them against their specs. I trashed carbon-based resistors as well as capacitors because they were out of their 10 or 5% tolerances.</p><p>proto board: 25&cent;<br>Atmega 328 (no P, had to modify Arduino's IDE config file): ~2$<br>Headers: 15&cent; for 40, probably 60&cent; worth of them here.<br>LEDs: 30&cent; each.<br>crystal: 50&cent;<br>capacitors: 15&cent; each, so 1.35$ (not cheap!)<br>resistors: same, so 90&cent;<br>Regulators: 80&cent; each.<br>Thin wire: I used phone wires, but wire-wrap style should be better. Cost unknown.</p><p>Cheap doesn't mean quick. Assembling a board from scratch and planning the routing in your head is a tedious process taking many hours, especially if, like me, you regularly unplug the soldering iron to relieve the tip.</p>
<p>Nice! Looks good!</p>
I made it, but just getting problem in programming it because I don't have any arduino board by which i can replace the ic.... <br><br>Is there any alternative way to programme it......
<p>You can get an FTDI breakout board, and connect that to the programming header. Set the the board to duemilanove (or any that use the ftdi converter chip) in the IDE and program as you normally would.</p>
<p>but how to program the atmega ic .... ?? just help me.....</p>
<p>The 6 pin header is for hooking up to an FTDI breakout board which allows you to program it with the arduino IDE.</p>

About This Instructable




Bio: Science is my passion. I find myself constantly working on countless experiments, from low energy particle accelerators to good old simple electronics. I also like ... More »
More by Higgs Boson:350kv Van de Graaff Generator How to see alpha particles Simple Jacob's Ladder 
Add instructable to: