Tutorial 4.2.1Installing Arduino IDE Software

Introduction

The following is a brief overview describing the installation of the Arduino software. It is optional as some classrooms may already have software installed. The open-source Arduino environment makes it easy to write code and upload it to the i/o board. It runs on Windows, Mac OS X, and Linux. The environment is written in Java and based on Processing, avr-gcc, and other open source software.

The Arduino software consists of an Integrated Development Environment (IDE) and the core libraries.

The core libraries are written in C and C++ and compiled using avr-gcc and AVR Libc.

The Arduino software language you program in is very similar to C++ because it is derived from C/C++.These connections to C and C++, two languages that professional programmers are usually familiar with, make it a good platform for programmers who want to start tinkering.

This installation guide references Arduino 1.0.5 installed on the Windows operating system. For the latest version of the Arduino IDE, please visit:

Procedures: Installation

  1. The Arduino software is a free-open source environment that can be downloaded and installed anywhere. If installing in your classroom, please follow your teachers instruction on where to install the software. Visit: . Select and download the Windows Installer.

  1. Launch the Installer and accept the Arduino Step: License Agreement

  1. Installations Options: Leave all choices selected.

  1. Select location of installation folder

Select: Install

  1. Install the USB Driver
  1. Installation complete

Procedures: Test

  1. Open the Arduino software from “Start -> All Programs” or from the “Desktop Shortcut”. The new sketch should be named according to the format “sketch_date”
  2. The following example will make the LED at pin 13 blink on and off. Copy and paste the code below into the sketch window. Rename the sketch “ArduinoTest_ your initials_date”

/*
Title: Description and comments.

Arduino Test: Copy and paste this code into open the sketch window.

This example code is in the public domain.
*/

// Constants: Constants won't change. They're used here to set the pin numbers:

const int ledPin = 13;// constant ledPin assigned to pin 13

// Variables: Variables will change. They’re used do assign variable names:

// there are no variablesin this example

// Setup: The setup routine runs once when you start or press reset:

voidsetup(){// put your setup code here, to run once

pinMode(ledPin, OUTPUT); // initialize the LED pin as an output
}

// Loop: The loop routine runs over and over again forever:
voidloop(){// put your main code here, to run repeatedly:
digitalWrite(ledPin, HIGH);// turn the LED on (HIGH is the voltage level)

delay(1000); // wait for one second

digitalWrite(ledPin, LOW); // turn the LED off by making the voltage LOW

delay(1000); // wait for one second

}

  1. Verify and Upload the test code.
  1. Any compiling errors will be reported in the bottom window.
  1. The LED on pin 13 should be blinking.

Parallax Sensor Kit with Arduino

VEX with Arduino

This lesson incorporates sensors andmotors from both Parallax and Arduino. It is not required that student recreate this test bed, but it has been provided as a reference to all activities in the lesson.

Microcontroller Test Bed

© 2014 Project Lead The Way, Inc.

Digital Electronics Installing Arduino IDE Software – Page 1