Tutorial.HomePage2 History

Hide minor edits - Show changes to markup

August 13, 2010, at 11:03 PM by Tom Igoe -
August 13, 2010, at 10:34 PM by Tom Igoe -
Changed lines 123-132 from:
  • AllInputsFirmata
  • AnalogFirmata
  • EchoString
  • I2CFirmata
  • OldStandardFirmata
  • ServoFirmata
  • SimpleAnalogFirmata
  • SimpleDigitalFirmata
  • StandardFirmata
to:
August 13, 2010, at 10:27 PM by Tom Igoe -
Deleted lines 47-48:

Communication

Changed lines 69-70 from:
 t.
to:
August 13, 2010, at 10:21 PM by Tom Igoe -
Changed line 20 from:
to:
  • Blink? turn an LED on and off.
August 13, 2010, at 10:20 PM by Tom Igoe -
August 13, 2010, at 10:15 PM by Tom Igoe -
Changed line 20 from:
  • Blink turn an LED on and off.
to:
August 13, 2010, at 10:14 PM by Tom Igoe -
August 13, 2010, at 10:07 PM by Tom Igoe -
Added lines 12-15:

Core Functions

Simple programs that demonstrate basic Arduino commands. These are included with the Arduino environment; to open them, click the Open button on the toolbar and look in the examples folder.

Deleted lines 17-18:

Simple programs that demonstrate basic Arduino commands. These are included with the Arduino environment; to open them, click the Open button on the toolbar and look in the examples folder.

Added line 25:
Changed lines 27-35 from:
to:
  • Blink Without Delay: blinking an LED without using the delay() function.
  • Button: use a pushbutton to control an LED.
  • Debounce: read a pushbutton, filtering noise.
  • Button State Change counting the number of button pushes
  • Tone: play a melody with a Piezo speaker.
  • Pitch follower: play a pitch on a piezo speaker depending on an analog input
  • Simple Keyboard A three-key musical keyboard using force sensors and a piezo speaker.
  • Tone4 Play tones on multiple speakers sequentially using the tone() command.
Added line 37:
Changed line 40 from:
to:
  • Analog Input: use a potentiometer to control the blinking of an LED.
Changed lines 42-45 from:
to:
  • Calibration: for analog sensor readings
  • Fading: uses an analog output (PWM pin) to fade an LED.
  • Smoothing: smooth multiple readings of an analog input.
Changed lines 47-50 from:
to:

Communication

These examples include code that allows the Arduino to talk to Processing sketches running on the computer. For more information or to download Processing, see processing.org. There are also Max/MSP patches that can communicate with each Arduino sketch as well. For more on Max/MSP see Cycling 74

  • ASCII Table: demonstrates Arduino's advanced serial output functions.
  • Dimmer: move the mouse to change the brightness of an LED.
  • Graph: sending data to the computer and graphing it in Processing.
  • Physical Pixel: turning on and off an LED by sending data from Processing.
  • Virtual Color Mixer: sending multiple variables from Arduino to the computer and reading them in Processing.
  • Serial Call Response: sending multiple vairables using a call-and-response (handshaking) method.
  • Serial Call Response ASCII: sending multiple vairables using a call-and-response (handshaking) method, and ASCII-encoding the values before sending.
  • Serial input how to take different actions based in characters received in the serial port.
  • MIDI How to send MIDI note messages serially.
Changed lines 62-80 from:
to:

5.Control Structures

  • If Statement (Conditional): how to use an if statement to change output conditions based on changing input conditions.
  • For Loop: controlling multiple LEDs with a for loop and.
  • Array: A variation on the For Loop example that demonstrates how to use an array.
  • While Loop: how to use a while loop to calibrate a sensor while a button is being read.
  • Switch Case: how to choose between a discrete number of values. Equivalent to multiple If statements. This example shows how to divide a sensor's range into a set of four bands and to take four different actions depending on which band the result is in.
  • Switch Case 2 A second switch-case example, showing how to take different actions based in characters received in the serial port.
 t.

Sensors

  • ADXL3xx: Read an ADXL3xx accelerometer.
  • Knock: detect knocks with a piezo element.
  • Memsic2125 : two-axis acceleromoter
  • Ping: detecting objects with an ultrasonic range finder

Changed lines 82-84 from:
to:

Examples of basic display control

Changed lines 105-108 from:
to:

Libraries

Examples from the libraries that are included in the Arduino software.

Changed lines 110-122 from:
  • eeprom_clear
  • eeprom_read
  • eeprom_write

Ethernet

  • BarometricPressureWebServer
  • ChatServer
  • PachubeClient
  • PachubeClientString
  • TwitterClient
  • WebClient
  • WebServer
to:
  • EEPROM Clear: clear the bytes in the EEPROM.
  • EEPROM Read: read the EEPROM and send its values to the computer.
  • EEPROM Write: stores values from an analog input to the EEPROM.

Ethernet Library

Changed lines 135-145 from:

LiquidCrystal

  • Autoscroll
  • Blink
  • Cursor
  • Display
  • HelloWorld
  • Scroll
  • SerialDisplay
  • TextDirection
  • setCursor
to:

LiquidCrystal Library

  • Hello World - displays "hello world!" and the seconds since reset
  • Blink - control of the block-style cursor
  • Cursor - control of the underscore-style cursor
  • Display - quickly blank the display without losing what's on it.
  • TextDirection - control which way text flows from the cursor
  • Scroll - scroll text left and right
  • Serial input - accepts serial input, displays it
  • SetCursor - set the cursor position
  • Autoscroll - shift text right and left
Changed lines 151-158 from:

SPI

  • BarometricPressureSensor
  • DigitalPotControl

Servo

  • Knob
  • Sweep
to:

SPI Library

Servo Library

  • Knob: control the shaft of a servo motor by turning a potentiometer.
  • Sweep: sweeps the shaft of a servo motor back and forth.
Changed lines 162-173 from:

Stepper

  • MotorKnob

Wire

  • SFRRanger_reader
  • digital_potentiometer
  • master_reader
  • master_writer
  • slave_receiver
  • slave_sender
to:

Need examples

Stepper Library

  • Motor Knob: control a stepper motor with a potentiometer.

Wire Library

Arduino as ISP Programmer

ISP programmer Turn your Arduino into an in-circuit programmer to re-program Atmega chips. Useful when you need to re-load the bootloader on an Arduino, or if you're making your own Arduino-compatible circuit on a breadboard.

More

For a huge list of examples from the Arduino community, see the interfacing with hardware page on the playground wiki. Also see the list of old examples.

August 13, 2010, at 09:52 PM by Tom Igoe -
Changed line 11 from:
to:
Changed lines 88-89 from:
to:
August 13, 2010, at 09:52 PM by Tom Igoe -
Changed lines 110-111 from:

ServoFirmata

to:
  • ServoFirmata
August 13, 2010, at 09:52 PM by Tom Igoe -
Changed lines 100-101 from:

TwitterClient

to:
  • TwitterClient
Changed lines 103-104 from:

Firmata

to:

Firmata

Changed lines 124-125 from:

TextDirection

to:
  • TextDirection
Changed lines 140-141 from:

Stepper

to:

Stepper

Changed line 143 from:
to:
August 13, 2010, at 09:49 PM by Tom Igoe -
Deleted line 0:
Changed line 11 from:
to:
Changed lines 88-89 from:
to:
August 13, 2010, at 09:49 PM by Tom Igoe -
Deleted line 1:
Changed line 12 from:
to:
Changed lines 89-90 from:
to:
August 13, 2010, at 09:48 PM by Tom Igoe -
Changed line 13 from:
to:
Changed line 156 from:
to:
August 13, 2010, at 09:48 PM by Tom Igoe -
Changed line 13 from:
to:
Changed lines 90-91 from:
to:
August 13, 2010, at 09:47 PM by Tom Igoe -
Changed line 13 from:
to:
Changed lines 90-91 from:
to:
August 13, 2010, at 09:47 PM by Tom Igoe -
Added lines 1-2:
Changed line 13 from:
to:
Changed lines 90-91 from:
to:
Changed lines 153-154 from:

slave_receiver

to:
  • slave_receiver
Changed line 156 from:
to:
August 13, 2010, at 09:46 PM by Tom Igoe -
Changed lines 88-89 from:
to:
Changed line 155 from:
to:
August 13, 2010, at 09:45 PM by Tom Igoe -
Changed lines 86-87 from:
to:
August 13, 2010, at 09:45 PM by Tom Igoe -
Changed line 11 from:
to:
Changed lines 86-89 from:
to:
Changed line 154 from:
to:
August 13, 2010, at 09:44 PM by Tom Igoe -
Changed line 11 from:
to:
Added line 89:
August 13, 2010, at 09:44 PM by Tom Igoe -
Deleted line 0:
Changed line 88 from:
to:
Changed line 154 from:
to:
August 13, 2010, at 09:44 PM by Tom Igoe -
Deleted line 1:
Changed line 12 from:
to:
Changed line 89 from:
to:
August 13, 2010, at 09:43 PM by Tom Igoe -
Changed line 13 from:
to:
Changed line 90 from:
to:
Changed line 156 from:
to:
August 13, 2010, at 09:43 PM by Tom Igoe -
Changed line 13 from:
to:
Changed line 90 from:
to:
August 13, 2010, at 09:42 PM by Tom Igoe -
Added lines 1-2:
Changed lines 12-20 from:
to:
Changed lines 88-90 from:
to:
Changed line 155 from:
to:
Deleted line 156:
August 13, 2010, at 09:37 PM by Tom Igoe -
Changed lines 9-17 from:
to:
Added lines 13-18:
August 13, 2010, at 09:36 PM by Tom Igoe -
Deleted line 0:
Changed lines 9-10 from:
to:
August 13, 2010, at 09:35 PM by Tom Igoe -
Deleted line 1:
Changed lines 89-90 from:
to:
August 13, 2010, at 09:34 PM by Tom Igoe -
Changed lines 13-15 from:
to:
Changed line 91 from:
to:
August 13, 2010, at 09:31 PM by Tom Igoe -
Changed lines 90-92 from:
to:
Changed line 156 from:
to:
August 13, 2010, at 09:29 PM by Tom Igoe -
Changed lines 14-15 from:
to:
Changed lines 157-158 from:
to:
August 13, 2010, at 09:29 PM by Tom Igoe -
Added line 2:
Changed lines 14-15 from:
to:
Changed lines 90-92 from:
to:
Changed lines 157-158 from:
to:
August 13, 2010, at 09:27 PM by Tom Igoe -
Deleted line 1:
Changed lines 13-14 from:
to:
Changed lines 156-157 from:
to:
August 13, 2010, at 09:26 PM by Tom Igoe -
Changed lines 13-15 from:
to:
Changed line 92 from:
to:
August 13, 2010, at 09:24 PM by Tom Igoe -
Changed lines 13-15 from:
to:
Changed line 92 from:
to:
August 13, 2010, at 09:24 PM by Tom Igoe -
Changed lines 13-15 from:
to:
Changed line 92 from:
to:
August 13, 2010, at 09:22 PM by Tom Igoe -
Added lines 1-2:
Changed lines 11-15 from:
to:
Changed lines 92-95 from:
to:
Changed lines 157-158 from:
to:
August 13, 2010, at 09:18 PM by Tom Igoe -
Changed lines 2-116 from:
to:
December 20, 2007, at 06:37 AM by David A. Mellis -
Changed lines 110-115 from:

Bionic Arduino: another Arduino class from TodBot, this one focusing on physical sensing and making motion:

  • bionic_arduino_class1.pdf (7.7MB PDF)
  • bionic_arduino_class2.pdf (9.2MB PDF)
  • bionic_arduino_class3.pdf (4.9MB PDF)
  • bionic_arduino_class4.pdf (6.6MB PDF)
to:

Bionic Arduino: another Arduino class from TodBot, this one focusing on physical sensing and making motion.

December 20, 2007, at 06:36 AM by David A. Mellis -
Changed line 104 from:

Spooky Arduino Longer presentation-format documents introducing Arduino from a Halloween hacking class taught by TodBot:

to:

Spooky Arduino: Longer presentation-format documents introducing Arduino from a Halloween hacking class taught by TodBot:

Added lines 110-115:

Bionic Arduino: another Arduino class from TodBot, this one focusing on physical sensing and making motion:

  • bionic_arduino_class1.pdf (7.7MB PDF)
  • bionic_arduino_class2.pdf (9.2MB PDF)
  • bionic_arduino_class3.pdf (4.9MB PDF)
  • bionic_arduino_class4.pdf (6.6MB PDF)
December 20, 2007, at 06:25 AM by David A. Mellis -
Changed lines 104-105 from:

Spooky Arduino and more from Todbot

to:

Spooky Arduino Longer presentation-format documents introducing Arduino from a Halloween hacking class taught by TodBot:

  • class 1 (getting started)
  • class 2 (input and sensors)
  • class 3 (communication, servos, and pwm)
  • class 4 (piezo sound & sensors, arduino+processing, stand-alone operation)
December 20, 2007, at 06:17 AM by David A. Mellis -
Added lines 91-92:

Arduino Booklet (pdf): an illustrated guide to the philosophy and practice of Arduino.

December 20, 2007, at 06:12 AM by David A. Mellis -
Changed lines 100-106 from:

Other Arduino Tutorials

  • Tutorials from the Arduino playground
  • Example labs from ITP
  • Spooky Arduino and more from Todbot
  • Examples from Tom Igoe
  • Examples from Jeff Gray
to:

Example labs from ITP

Spooky Arduino and more from Todbot

Examples from Tom Igoe

Examples from Jeff Gray

December 20, 2007, at 06:11 AM by David A. Mellis -
Changed lines 91-92 from:

Learn electronics using Arduino: an introduction to programming, input / output, communication, etc. using Arduino.

to:

Learn electronics using Arduino: an introduction to programming, input / output, communication, etc. using Arduino. By ladyada.

December 20, 2007, at 06:10 AM by David A. Mellis -
Changed lines 93-99 from:
  • <a href="http://www.ladyada.net/learn/arduino/lesson0.html">Lesson 0 </a>: Pre-flight check...Is your Arduino and computer ready?
  • <a href="http://www.ladyada.net/learn/arduino/lesson1.html">Lesson 1</a>: The "Hello World!" of electronics, a simple blinking light
  • <a href="http://www.ladyada.net/learn/arduino/lesson2.html">Lesson 2</a>: Sketches, variables, procedures and hacking code
  • <a href="http://www.ladyada.net/learn/arduino/lesson3.html">Lesson 3</a>: Breadboards, resistors and LEDs, schematics, and basic RGB color-mixing
  • <a href="http://www.ladyada.net/learn/arduino/lesson4.html">Lesson 4</a>: The serial library and binary data - getting chatty with Arduino and crunching numbers
  • <a href="http://www.ladyada.net/learn/arduino/lesson5.html">Lesson 5</a>: Buttons & switches, digital inputs, pull-up and pull-down resistors, if/if-else statements, debouncing and your first contract product design.
to:
  • Lesson 0: Pre-flight check...Is your Arduino and computer ready?
  • Lesson 1: The "Hello World!" of electronics, a simple blinking light
  • Lesson 2: Sketches, variables, procedures and hacking code
  • Lesson 3: Breadboards, resistors and LEDs, schematics, and basic RGB color-mixing
  • Lesson 4: The serial library and binary data - getting chatty with Arduino and crunching numbers
  • Lesson 5: Buttons & switches, digital inputs, pull-up and pull-down resistors, if/if-else statements, debouncing and your first contract product design.
December 20, 2007, at 06:09 AM by David A. Mellis -
Changed lines 74-75 from:

Tutorials created by the Arduino community. Hosted on the publicly-editable playground wiki and other websites.

to:

Tutorials created by the Arduino community. Hosted on the publicly-editable playground wiki.

Changed lines 89-99 from:
to:

Manuals, Curricula, and Other Resources

Learn electronics using Arduino: an introduction to programming, input / output, communication, etc. using Arduino.

  • <a href="http://www.ladyada.net/learn/arduino/lesson0.html">Lesson 0 </a>: Pre-flight check...Is your Arduino and computer ready?
  • <a href="http://www.ladyada.net/learn/arduino/lesson1.html">Lesson 1</a>: The "Hello World!" of electronics, a simple blinking light
  • <a href="http://www.ladyada.net/learn/arduino/lesson2.html">Lesson 2</a>: Sketches, variables, procedures and hacking code
  • <a href="http://www.ladyada.net/learn/arduino/lesson3.html">Lesson 3</a>: Breadboards, resistors and LEDs, schematics, and basic RGB color-mixing
  • <a href="http://www.ladyada.net/learn/arduino/lesson4.html">Lesson 4</a>: The serial library and binary data - getting chatty with Arduino and crunching numbers
  • <a href="http://www.ladyada.net/learn/arduino/lesson5.html">Lesson 5</a>: Buttons & switches, digital inputs, pull-up and pull-down resistors, if/if-else statements, debouncing and your first contract product design.
December 20, 2007, at 06:03 AM by David A. Mellis -
Deleted lines 75-76:

Board Setup and Configuration: information on bootloaders, power supplies, and other ways to fiddle with an Arduino board.

December 20, 2007, at 06:02 AM by David A. Mellis -
Added lines 76-77:

Board Setup and Configuration: information on bootloaders, power supplies, and other ways to fiddle with an Arduino board.

Changed lines 89-91 from:

to:

Electronics Techniques: tutorials on soldering and other electronics resources.

December 20, 2007, at 05:59 AM by David A. Mellis -
Changed lines 85-87 from:

to:

Code Library and Tutorials: Arduino functions for performing specific tasks and other programming tutorials.

December 20, 2007, at 05:57 AM by David A. Mellis -
Changed lines 83-85 from:

to:

Interfacing with Software: how to get an Arduino board talking to software running on the computer (e.g. Processing, PD, Flash, Max/MSP).

December 20, 2007, at 05:55 AM by David A. Mellis -
Changed lines 76-85 from:
  • Interfacing With Hardware: Code, circuits, and instructions for using various electronic components with an Arduino board.
    • Output
    • Input
    • Interaction
    • Storage
    • Communication

to:

Interfacing With Hardware: Code, circuits, and instructions for using various electronic components with an Arduino board.

  • Output
  • Input
  • Interaction
  • Storage
  • Communication

December 20, 2007, at 05:54 AM by David A. Mellis -
Changed lines 76-88 from:

Interfacing With Hardware

Code, circuits, and instructions for using various electronic components with an Arduino board.

  • Output
  • Input
  • Interaction
  • Storage
  • Communication

to:
  • Interfacing With Hardware: Code, circuits, and instructions for using various electronic components with an Arduino board.
    • Output
    • Input
    • Interaction
    • Storage
    • Communication

December 20, 2007, at 05:53 AM by David A. Mellis -
Changed lines 72-75 from:

Interfacing with Hardware

Code, circuits, and instructions for connecting various electronic components to the Arduino. Hosted on the community-edited playground wiki.

to:

Tutorials

Tutorials created by the Arduino community. Hosted on the publicly-editable playground wiki and other websites.

Interfacing With Hardware

Code, circuits, and instructions for using various electronic components with an Arduino board.

December 20, 2007, at 05:51 AM by David A. Mellis -
Changed line 79 from:
  • http://www.arduino.cc/playground/Main/InterfacingWithHardware#Storage | Storage]]
to:
  • Storage
December 20, 2007, at 05:50 AM by David A. Mellis -
Changed lines 74-77 from:

to:

Code, circuits, and instructions for connecting various electronic components to the Arduino. Hosted on the community-edited playground wiki.

  • Output
  • Input
  • Interaction
  • http://www.arduino.cc/playground/Main/InterfacingWithHardware#Storage | Storage]]
  • Communication

December 20, 2007, at 05:47 AM by David A. Mellis -
Added lines 1-85:

Share