Difference between revisions of "Beginners Setup for Arduino and Processing"

From OpenCircuits
Jump to navigation Jump to search
Line 36: Line 36:
= PC Setup =
= PC Setup =
This can be a Windows machine, a Mac, or Linux.
== Arduino ==
== Arduino ==

Revision as of 18:07, 1 October 2009


This writeup is specificlly for the Westport High School Westport High School Page but should be useful for other beginners as well.

This is an unfinished draft, but should be useful for a start.

Setup for the Arduino and Processing falls into two major groups, setting up your PC ( most operating system ) and setting up the hardware needed. Both are discussed in the sections that follow.

Hardware Setup

The real basics:

  • Arduino board. You need at least one. There are many. Some distinctions are:
    • USB or older style Serial
    • Price
    • Kit or prebuilt
    • Memory
    • Compatible with Shields
    • Easily plugable to a ProtoBoard.
  • Connection between PC and Arduino -- Mr H. will bring some, but you should get one to go with your Arduino.

Different PCs and Arduino have different port for connection. You need a cable that will connect the two. Before you buy your Arduino board you should figure out the cable as well. Start by finding out what connections you have on your PC.

  • USB
  • "Older Style Serial" actually RS232 serial. Has a 9 pin socket on the PC

For some information on what boards are available see: Buy an Arduino board We will also discuss this during our meetings and probably place a group order.

  • Misc. electronic components Leds, displays, sensors, motors and so on. -- Mr H. will have a bunch, we will get more as we need them.

PC Setup

This can be a Windows machine, a Mac, or Linux.


The software you need will allow you to write programs for the Arduino and move them from the PC to the Arduino.

Go to Arduino Download the Arduino Software and pick the right version of the software for your PC. Then go to Guide to Getting Started with Arduino and follow the directions for set up. Note that you can do most of this without having an Arduino Board. After you get the board you may need to go back and do a bit more setup.

For the first time through the important part is to get the enviroment running and see if you can open some of the examples. You could also try to write a short program and save it. See if you can compile a program. You cannot upload it without having a an Arduino and cable.

A note on saving files: Your files are saved in the so-called sketchbook. "sketchbook" is not the name of the directory the actual name can be set by you using Files->Preferences->Sketchbook Location. Because we will probably be moving between computers it is probably useful to make this a location on your flash drive. I would recommend something like F:/MyRobotics/Arduino/. Each sketch will get its own directory under this location. Test your setup: try writing a new program, save it, close the Arduino software, reopen the program using the File->Sketchbook menu choice. Look at your flash drive to make sure the file end up where it should be.