Building
Gadgets:
anĀ Open
Electronics
Lab

Fall 2012
course
navigation

Sep 10 - arduino 101

aside: drawing circuits

http://circuitlab.com
http://fritzing.org/
http://www.cadsoftusa.com/download-eagle/?language=en

Arduino Leonardo

The Leonardo features include :
The leonardo also has a built-in LED (light emitting diode), which is good for testing or indicating if its working - see for example Blink program below.
And this version of the Arduino has a bunch of tricky USB stuff that lets it mimic a keyboard or a mouse as one way to send input into a laptop.
One reason the Arduino design has been more popular than other microcontrollers is that it doesn't need a separate "bootloader" to get the program into it. (Typically you can't just plug a microcontroller into your laptop without other stuff to make 'em work together.)
And it also has its own programming language (see below) with tons of examples and an active support community.
There will be examples and explanations of this stuff as we go along.

other arduinos

We picked one version of the Arduino for this course, but be aware that there are many variations. For example

installing the software

The software comes with many demo programs, including this Blink program.

Blink

/* Blink Turns on an LED on for one second, then off for one second, repeatedly. This example code is in the public domain. */ // Pin 13 has an LED connected on most Arduino boards. // give it a name: int led = 13; // the setup routine runs once when you press reset: void setup() { // initialize the digital pin as an output. pinMode(led, OUTPUT); } // the loop routine runs over and over again forever: void loop() { digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level) delay(1000); // wait for a second digitalWrite(led, LOW); // turn the LED off by making the voltage LOW delay(1000); // wait for a second }
The arduino programming language is similar to C++ .
Its closely based on another programming language
http://cs.marlboro.edu/ courses/ fall2012/gadgets/ notes/ Sep_10
last modified Monday September 10 2012 2:37 pm EDT