3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Build Your Own Arduino

Step 5Programming Options

Programming Options
 
The first option is to buy a TTL-232R 3.3V USB – TTL Level Serial Cable. These can be purchased at www.adafruit.com  or www.ftdichip.com  
 
The other two options, which I prefer are to buy one of two breakout boards from www.SparkFun.com. They are:
  • FT232RL USB to Serial Breakout Board, SKU: BOB-00718 (This option takes up more space on your breadboard)
  • FTDI Basic Breakout - 3.3V SKU: DEV-08772 (This option, and using right angle male headers works the best out of all three because it is secured better on the breadboard)

 
Double check your connections, make sure your 9V battery is not connected and hook up your programming option.  Open up the Arduino IDE and in the Example sketch files, under Digital, load the Blink sketch.
 
Under the file option Serial Port, select the COM port that you are using with your USB cable. i.e. COM1, COM9, etc.
 
Under the file option Tools/Board, select either:
  • Arduino Duemilanove w/ATmega328
  • Arduino Decimila, Duemilanove or Nano w/ATmega128
(depending on which chip you are using with your breadboard Arduino)
 
Now press the upload icon and then hit the reset button on your breadboard. If you are using one of the SparkFun breakout boards, you will see the RX and TX lights blink. This lets you know that the data is being sent. Sometimes you need to wait a few seconds after pressing the upload button before pressing the reset switch. If you have trouble, just experiment a little with how fast you go between the two.
 
This sketch if uploaded properly will blink the LED on pin 13 on for one second, off for one second, on for one second… until you either upload a new sketch or turn off the power.
 
Once you have uploaded the code, you can disconnect the programming board and use your 9V battery for power.
 
Troubleshooting
  • No Power – Make sure your source power is above 5V.
  • Power but nothing works – recheck all your connection points.
  • Uploading error – Refer to www.arduino.cc and do a search on the particular error message you receive. Also check the forums as there is a lot of great help there.
« Previous StepDownload PDFView All StepsNext Step »
6 comments
May 16, 2011. 7:12 AMyaly says:
hi there is some thing i don't understand the connection between the pc and the bread board is as follows: (USB to miniUSB cable-FT232RL-breadboard) is that right and please explain more deeply about when to press the reset button and what does it do. thanks best arduino instructable i've ever read.
Dec 18, 2010. 11:09 PMrobotakepri says:
Hi, I'm a very newbie in this Arduino.
I have tried to build my own Arduino Board using ATmega328 chip with Arduino Bootloader and for upload the sketch, I'm using FTDI Basic Breakout - 5V ( both of this part are from SparkFun ). I've followed all your wiring schematic. The power LED and the 13 pin LED blink without any problems ( so I think nothing wrong with the ATmega 328 chip )
The problem occured when I try to upload the blink sketch to the board, there are some avrdude error that I don't understand how to solve .
The error message is :

Binary sketch size: 1010 bytes (of a 30720 byte maximum)
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

For make sure all the wiring is correct, I upload the sketch through my Arduino Duemilanove board ( without the AT mega chip ), and within second the sketch uploaded to the board smoothly. No error at all.

So, can anyone help me to solve this problem ?


Mar 10, 2011. 11:57 AMmsuzuki777 says:
I've seen similar problems with some of my 'Arduinos'. The problem I had was intermittent connections on the serial connectors. If I just wiggled my USB-BUB it would work okay.

For this situation, make sure you also have a ground from your breakout board. Another possible problem is that Tx and Rx may be reversed. Different authors and vendors will label the Tx and Rx differently. The confusion is that a Tx (transmit) from one device say the Atmega is connected to the Rx of the other device say the FTDI. And vice versa.

Also, some Arduinos have DTR connected to the the Atmega Reset pin, but the newer Bootloader has RTS connected to the Reset through a capacitor. I am guessing that if you don't have anything connected to the Reset pin than it should load correctly but you may have to push reset to start the program.

Another thing to remember is with the Arduino software you may have to select the correct com port. Right now I have two Arduinos connected to my computer so I have to make sure I'm using the right one.

Good luck,

L.O.G.
Feb 1, 2011. 9:51 AMFoxtrot70 says:
I have the same problem. The chip I am using is the AT328 with UNO preloaded and I get the same error msg.

Mar 6, 2011. 12:42 AMespert92 says:
how exactly do you use the usb-to-serial cable with the setup? my computer recognizes the new COM port both under linux and windows, but it cannot communicate with the actual arduino setup.
Dec 12, 2010. 1:10 AMshiv.ram says:
hey...no one has asked about the bootloading thing....
Its Important....
Oct 21, 2009. 3:50 AMander says:
Sorry---what do you actually do with this after you make it? Or does it just flash some lights?
Mar 29, 2010. 9:51 PMgreenbean says:
There are books on how to to everything from "flashing" your lights, automate anything/everything in you home, to creating a rocket avionics system(for real model rocket hobbyists). An Arduino is just a microcontroller circuit.

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
80
Followers
5
Author:ArduinoFun