Jan 312011
 

Before we begin, lets make sure you understand the basic workflow when prototyping with an arduino.

Arduino Workflow:

Step by step start up guide:

1) Make sure you have an Arduino, a USB cable, and a computer (windows, mac or linux)

2) Plug the USB cable into the arduino and the computer. The power LED should light up.

3) If you haven’t already: Download the Arduino IDE (the software that communicates with your arduino) and install it.

4) Run the Arduino IDE. Make sure that the correct USB device is selected in the tools / serial port drop down.

Arduino IDE used to communicate with arduino board

Congratulations, you’re now set up!

How do I write a sketch and make my arduino work?

Arduino sketches are based on the C language. Not a programmer? That’s ok, sketches are easy to figure out!

There are two main sections in any Arduino sketch (the code)

void setup() {
code written here runs once on startup (initialize variables, pin modes, start using libraries, etc)
}

void loop() {
code written here runs repeatedly, actively controlling the Arduino
}

// any code written after two slashes is a comment and is ignored

Now let’s take a closer look at the IDE:

The arduino instructions in the window below are explained on the left, along with descriptions of the two most important buttons.

Simple once you break it down, right? – you’re now ready to try out your very own sketch!

We recommend trying The LED Blinker!

 Posted by at 4:16 am

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>