Step 3: Your first project.

unoboard.png
arduino serial port.png
blinky.png
Screenshot-Blink | Arduino 0022.png
blink compile.png
blinkupload.png
Screenshot from 2013-06-15 17:01:42.png
Unless you have built your own Arduino board or using a very early version of the Arduino, you should have a built in led to show off the fruits of this first project. It is also a way to make sure your board is working. You will want to load in the example called blink.

Note: for the board you want to use the arduino uno with the arduino board. With the Osepp, you want to use the with atmel328

Here is the code in case you do not have the examples.

Blink.pde:
[code]
/*
 * Blink
 *
 * The basic Arduino example.  Turns on an LED on for one second,
 * then off for one second, and so on...  We use pin 13 because,
 * depending on your Arduino board, it has either a built-in LED
 * or a built-in resistor so that you need only an LED.
 *
 * http://www.arduino.cc/en/Tutorial/Blink
 */

int ledPin = 13;                // LED connected to digital pin 13

void setup()                    // run once, when the sketch starts
{
  pinMode(ledPin, OUTPUT);      // sets the digital pin as output
}

void loop()                     // run over and over again
{
  digitalWrite(ledPin, HIGH);   // sets the LED on
  delay(1000);                  // waits for a second
  digitalWrite(ledPin, LOW);    // sets the LED off
  delay(1000);                  // waits for a second
}
[/code]

So run the IDE program
Choose your board.
Choose the port to use.
You should not have to do this again unless your hardware changes.
Load Blink.pde
Compile it.
Upload it to the board.
Watch the light blink.

Not spectacular, but it is an awesome start!

On to bigger and better things.

 
Remove these adsRemove these ads by Signing Up
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!