jackstech.pbworks.comjackstech.pbworks.com/w/file/fetch/104296245/4.2.1... · web viewit runs on...

8
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: http://arduino.cc/en/main/software © 2014 Project Lead The Way, Inc. Digital Electronics Installing Arduino IDE Software – Page 1

Upload: nguyenhanh

Post on 23-May-2018

214 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: jackstech.pbworks.comjackstech.pbworks.com/w/file/fetch/104296245/4.2.1... · Web viewIt runs on Windows, Mac OS X, and Linux. The environment is written in Java and based on Processing,

Tutorial 4.2.1Installing Arduino IDE SoftwareIntroductionThe 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: http://arduino.cc/en/main/software

© 2014 Project Lead The Way, Inc. Digital Electronics Installing Arduino IDE Software – Page 1

Page 2: jackstech.pbworks.comjackstech.pbworks.com/w/file/fetch/104296245/4.2.1... · Web viewIt runs on Windows, Mac OS X, and Linux. The environment is written in Java and based on Processing,

Procedures: Installation1. 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: http://arduino.cc/en/main/software. Select and download the Windows Installer.

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

© 2014 Project Lead The Way, Inc. Digital Electronics Installing Arduino IDE Software – Page 2

Page 3: jackstech.pbworks.comjackstech.pbworks.com/w/file/fetch/104296245/4.2.1... · Web viewIt runs on Windows, Mac OS X, and Linux. The environment is written in Java and based on Processing,

3. Installations Options: Leave all choices selected.

4. Select location of installation folder

Select: Install

5. Install the USB Driver

© 2014 Project Lead The Way, Inc. Digital Electronics Installing Arduino IDE Software – Page 3

Page 4: jackstech.pbworks.comjackstech.pbworks.com/w/file/fetch/104296245/4.2.1... · Web viewIt runs on Windows, Mac OS X, and Linux. The environment is written in Java and based on Processing,

6. Installation complete

Procedures: Test7. 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”

8. 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 variables in this example

// Setup: The setup routine runs once when you start or press reset:void setup() { // 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:void loop() { // 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}

© 2014 Project Lead The Way, Inc. Digital Electronics Installing Arduino IDE Software – Page 4

Page 5: jackstech.pbworks.comjackstech.pbworks.com/w/file/fetch/104296245/4.2.1... · Web viewIt runs on Windows, Mac OS X, and Linux. The environment is written in Java and based on Processing,

9. Verify and Upload the test code.

10. Any compiling errors will be reported in the bottom window.

11.The LED on pin 13 should be blinking.

Parallax Sensor Kit with ArduinoVEX with Arduino

© 2014 Project Lead The Way, Inc. Digital Electronics Installing Arduino IDE Software – Page 5

Page 6: jackstech.pbworks.comjackstech.pbworks.com/w/file/fetch/104296245/4.2.1... · Web viewIt runs on Windows, Mac OS X, and Linux. The environment is written in Java and based on Processing,

This lesson incorporates sensors and motors 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 6

Page 7: jackstech.pbworks.comjackstech.pbworks.com/w/file/fetch/104296245/4.2.1... · Web viewIt runs on Windows, Mac OS X, and Linux. The environment is written in Java and based on Processing,

© 2014 Project Lead The Way, Inc. Digital Electronics Installing Arduino IDE Software – Page 7