Tutorial.HomePage History

Show minor edits - Show changes to markup

September 23, 2014, at 07:38 PM by Federico -
Deleted line 120:
  • Xively Client? : Send data from multiple sensors to Xively with strings.
Changed lines 162-164 from:
to:
Changed lines 181-183 from:
to:
September 18, 2014, at 03:43 PM by Federico -
Added lines 269-272:
June 16, 2014, at 10:25 PM by Federico -
Changed line 133 from:
to:
June 10, 2014, at 03:00 PM by Xun Yang - Added tutorial for Arduino Robot compass calibration(Honeywell HMC 6352)
Changed lines 219-220 from:
to:
  • Calibrate Compass? - Calibrate the compass module so it rotates evenly(for old models, using Honeywell HMC 6352).
May 05, 2014, at 10:39 AM by Federico -
Changed line 133 from:
to:
May 02, 2014, at 05:13 PM by Federico -
Deleted line 117:
  • MailboxReadMessage: Send text messages to the Arduino processor using REST API through a browser.
Changed lines 123-124 from:
to:
  • MailboxReadMessage: Send text messages to the Arduino processor using REST API through a browser.
May 02, 2014, at 05:12 PM by Federico -
Added line 118:
  • MailboxReadMessage: Send text messages to the Arduino processor using REST API through a browser.
March 19, 2014, at 12:13 PM by Arturo -
March 18, 2014, at 06:41 PM by Roberto Guido -
November 08, 2013, at 03:48 PM by Scott Fitzgerald -
Changed lines 162-163 from:
to:
Changed lines 183-185 from:
to:
November 08, 2013, at 01:25 PM by Scott Fitzgerald -
Deleted line 169:
Deleted line 182:
September 30, 2013, at 09:30 PM by Roberto Guido - merged with todo's corrections
Changed lines 1-2 from:
to:
Changed lines 4-10 from:

See the foundations page for in-depth description of core concepts of the Arduino hardware and software; the hacking page for information on extending and modifying the Arduino hardware and software; and the links page for other documentation.

Note: these examples are written for Arduino 1.0 and later. Certain functions may not work in earlier versions. For best results, download the latest version.

Here's a style guide that helps with writing examples for beginners.

to:

See the following examples for an overview of the Arduino Core functions and Libraries; the foundations page for in-depth description of core concepts of the Arduino hardware and software; the hacking page for information on extending and modifying the Arduino hardware and software; and the links page for other documentation.

Note: these examples are written for Arduino 1.0 and later.
Certain functions may not work in earlier versions. For best results, download the latest version.

Changed lines 10-11 from:
to:
Changed line 87 from:

9.USB (Leonardo, Micro, and Due specific examples)

to:

9.USB (Leonardo, Micro, and Due specific examples)

Changed lines 101-104 from:
to:
Changed line 139 from:

Esplora Library

to:

Esplora Library

Deleted lines 220-227:

SD Library

  • Datalogger: Log data from three analog sensors to a SD card using the SD library
  • DumpFile: Read a file from a SD card using the SD library and send it over the serial port
  • Files: Create and destroy a file on a SD card
  • ReadWrite: Read and write data to and from a file on a SD card
  • CardInfo: Get information about a SD card
Deleted line 272:
Added lines 275-276:

Writing examples

Here's a style guide that helps with writing examples for beginners.

September 22, 2013, at 09:28 AM by Scott Fitzgerald -
Added lines 225-232:

SD Library

  • Datalogger: Log data from three analog sensors to a SD card using the SD library
  • DumpFile: Read a file from a SD card using the SD library and send it over the serial port
  • Files: Create and destroy a file on a SD card
  • ReadWrite: Read and write data to and from a file on a SD card
  • CardInfo: Get information about a SD card
September 09, 2013, at 06:59 PM by Scott Fitzgerald -
Added lines 128-136:

Temboo examples The Temboo website has a section dedicated to the reference of the Temboo library and examples contained inside the Arduino IDE. See this page for more information.

Spacebrew examples There are a number of examples for Spacebrew on the Yún included in the software. For more on Spacebrew, see the project documentation pages.

Linux tips&tricks

September 09, 2013, at 06:57 PM by Scott Fitzgerald -
Changed lines 263-293 from:

Arduino Yún examples

Bridge library

  • Bridge: Access the pins of the board with a web browser
  • Console ASCII Table: Demonstrates printing various formats to the Console
  • Console Pixel: Control an LED through the Console
  • Console Read: Parse information from the Console and repeat it back
  • Datalogger: store sensor information on a SD card
  • File Write Script: Demonstrates how to write and execute a shell script with Process
  • HTTP Client: create a simple client that downloads a webpage and prints it to the serial monitor
  • Process: demonstrates how to use Process to run Linux commands
  • Shell Commands: Use Process to run shell commands
  • Temperature Web Panel: Post sensor data on a webpage when requested by a browser
  • TimeCheck: get the time from a network time server and print it to the serial monitor.
  • WiFiStatus: runs a pre-configured script that reports back the strength of the current WiFi network
  • Xively Client? : send data from multiple sensors to Xively with strings
  • Yun Serial Terminal: Access the Linux Terminal through the serial monitor.

Temboo examples

The Temboo website has a section dedicated to the reference of the Temboo library and examples contained inside the Arduino IDE. See this page for the documentation.

Spacebrew examples

There are a number of examples for Spacebrew on the Yún included in the software. For more on Spacebrew, see the project documentation pages.

Linux tips&tricks

to:
September 09, 2013, at 05:54 PM by Federico -
Changed lines 263-293 from:
to:

Arduino Yún examples

Bridge library

  • Bridge: Access the pins of the board with a web browser
  • Console ASCII Table: Demonstrates printing various formats to the Console
  • Console Pixel: Control an LED through the Console
  • Console Read: Parse information from the Console and repeat it back
  • Datalogger: store sensor information on a SD card
  • File Write Script: Demonstrates how to write and execute a shell script with Process
  • HTTP Client: create a simple client that downloads a webpage and prints it to the serial monitor
  • Process: demonstrates how to use Process to run Linux commands
  • Shell Commands: Use Process to run shell commands
  • Temperature Web Panel: Post sensor data on a webpage when requested by a browser
  • TimeCheck: get the time from a network time server and print it to the serial monitor.
  • WiFiStatus: runs a pre-configured script that reports back the strength of the current WiFi network
  • Xively Client? : send data from multiple sensors to Xively with strings
  • Yun Serial Terminal: Access the Linux Terminal through the serial monitor.

Temboo examples

The Temboo website has a section dedicated to the reference of the Temboo library and examples contained inside the Arduino IDE. See this page for the documentation.

Spacebrew examples

There are a number of examples for Spacebrew on the Yún included in the software. For more on Spacebrew, see the project documentation pages.

Linux tips&tricks

September 05, 2013, at 10:11 PM by Scott Fitzgerald -
Added lines 112-127:

Bridge Library (for the Arduino Yún)

  • Bridge: Access the pins of the board with a web browser
  • Console ASCII Table: Demonstrates printing various formats to the Console
  • Console Pixel: Control an LED through the Console
  • Console Read: Parse information from the Console and repeat it back
  • Datalogger: store sensor information on a SD card
  • File Write Script: Demonstrates how to write and execute a shell script with Process
  • HTTP Client: create a simple client that downloads a webpage and prints it to the serial monitor
  • Process: demonstrates how to use Process to run Linux commands
  • Shell Commands: Use Process to run shell commands
  • Temperature Web Panel: Post sensor data on a webpage when requested by a browser
  • TimeCheck: get the time from a network time server and print it to the serial monitor.
  • WiFiStatus: runs a pre-configured script that reports back the strength of the current WiFi network
  • Xively Client? : send data from multiple sensors to Xively with strings
  • Yun Serial Terminal: Access the Linux Terminal through the serial monitor.
May 18, 2013, at 08:25 AM by Scott Fitzgerald -
Changed lines 220-227 from:
to:
Changed lines 229-235 from:
  • TFT Bitmap Logo?: Read an image file from a micro-SD card and draw it at random locations.
  • TFT Display Text? : Read the value of a sensor and print it on the screen.
  • TFT Pong?: An Arduino implementation of the classic game
  • Etch a Sketch?: An Arduino version of the classic Etch-a-Sketch
  • Color Picker?: With three sensors, change the color of the TFT screen
  • Graph?: Graph the values from a variable resistor to the TFT
to:
  • TFT Bitmap Logo: Read an image file from a micro-SD card and draw it at random locations.
  • TFT Display Text : Read the value of a sensor and print it on the screen.
  • TFT Pong: An Arduino implementation of the classic game
  • Etch a Sketch: An Arduino version of the classic Etch-a-Sketch
  • Color Picker: With three sensors, change the color of the TFT screen
  • Graph: Graph the values from a variable resistor to the TFT
May 16, 2013, at 03:18 PM by Alberto Cicchi -
May 15, 2013, at 12:30 PM by Scott Fitzgerald -
Changed line 218 from:

The TFT library has Arduino and Esplora-compatible examples\\

to:
May 15, 2013, at 12:30 PM by Scott Fitzgerald -
Added lines 187-199:

Robot Library

  • Logo - tell your robot where to go through the on-board keyboard
  • Line Following - draw a racing track and get your robot to run on it
  • Disco Bot - turn your robot into an 8-bit jukebox and dance to the beat
  • Compass - plan a treasure hunt with this digital compass
  • Inputs - learn how to control the knob and the keyboard
  • Wheel Calibration - tune the wheels to perform even better
  • Runaway Robot - play tag with your robot using a distance sensor
  • Remote control - reuse that old tv-remote to command the bot on distance
  • Picture browser - want to use your own images? This is how
  • Rescue - train your robot to look for hidden pearls in a maze
  • Hello User - hack the robot's welcome demo and make your own
Changed lines 217-235 from:
to:

TFT Library

The TFT library has Arduino and Esplora-compatible examples
Esplora

Arduino

  • TFT Bitmap Logo?: Read an image file from a micro-SD card and draw it at random locations.
  • TFT Display Text? : Read the value of a sensor and print it on the screen.
  • TFT Pong?: An Arduino implementation of the classic game
  • Etch a Sketch?: An Arduino version of the classic Etch-a-Sketch
  • Color Picker?: With three sensors, change the color of the TFT screen
  • Graph?: Graph the values from a variable resistor to the TFT
March 26, 2013, at 09:06 AM by Scott Fitzgerald -
Added lines 118-135:

Esplora Library

Esplora Beginner examples

Esplora Expert examples

  • EsploraKart : Use the Esplora as a controller to play a kart racing game.
  • EsploraTable : Print the Esplora sensor information to a table format.
  • EsploraRemote : Connect the Esplora to Processing and control the outputs.
  • EsploraPong : Play Pong with the Esplora using Processing.
Deleted line 136:
Deleted line 151:
Added lines 155-175:

GSM Library

GSM Examples

GSM Tools

Deleted line 176:
Deleted line 201:
Changed lines 216-237 from:

Esplora Library

Beginners

Experts

  • EsploraKart : Use the Esplora as a controller to play a kart racing game.
  • EsploraTable : Print the Esplora sensor information to a table format.
  • EsploraRemote : Connect the Esplora to Processing and control the outputs.
  • EsploraPong : Play Pong with the Esplora using Processing.

to:
December 24, 2012, at 04:30 AM by Tom Igoe -
Changed lines 183-191 from:
  • EsploraKart: transform your esplora in a video-game controller.
  • EsploraTable: save the readings of the accelerometer on a spreadsheet.
  • EsploraRemote: remote your Esplora on a processing application.
  • EsploraLedShow: change the color of the RGB led with the joystick and the slider.
  • EsploraLedShow2: change the color of the RGB led with the readings from the light sensor, microphone and slider.
  • EsploraMusic: use the Esplora as a musical instrument.

to:

Beginners

Experts

  • EsploraKart : Use the Esplora as a controller to play a kart racing game.
  • EsploraTable : Print the Esplora sensor information to a table format.
  • EsploraRemote : Connect the Esplora to Processing and control the outputs.
  • EsploraPong : Play Pong with the Esplora using Processing.

December 08, 2012, at 08:21 PM by Federico -
Changed line 185 from:
to:
December 05, 2012, at 06:17 PM by Federico -
Changed lines 178-179 from:

The WiFi Library will be included in a future release of the Arduino IDE. You can download the most recent version, and install it as you would any other library.

to:
Changed lines 181-191 from:
to:

Esplora Library

  • EsploraKart: transform your esplora in a video-game controller.
  • EsploraTable: save the readings of the accelerometer on a spreadsheet.
  • EsploraSlave?: remote your Esplora on a processing application.
  • EsploraLedShow: change the color of the RGB led with the joystick and the slider.
  • EsploraLedShow2: change the color of the RGB led with the readings from the light sensor, microphone and slider.
  • EsploraMusic: use the Esplora as a musical instrument.

November 05, 2012, at 05:07 PM by Scott Fitzgerald -
Changed line 92 from:
to:
October 31, 2012, at 10:02 PM by Scott Fitzgerald -
Added line 101:
Changed line 103 from:
to:
October 31, 2012, at 09:39 PM by Scott Fitzgerald -
Changed lines 90-91 from:

9.USB (Leonardo and Due specific examples)

The Keyboard and Mouse examples are specific to the Leonardo, they demonstrate the use of libraries that are unique to the board.

to:

9.USB (Leonardo, Micro, and Due specific examples)

The Keyboard and Mouse examples are unique to the Leonardo, Micro and Due. They demonstrate the use of libraries that are unique to the board.

Changed lines 101-102 from:
  • MouseContinuousDrawing: Controls the mouse computer's cursor movement with two potentiometers, for drawing continuous lines on the screen, like in the famous game Etch-a-sketch.
to:
  • MouseContinuousDrawing: Controls the mouse computer's cursor movement with two potentiometers, for drawing continuous lines on the screen, like an Etch-a-sketch.
October 22, 2012, at 02:26 PM by Scott Fitzgerald -
Changed line 90 from:

9.USB (Leonardo specific examples)

to:

9.USB (Leonardo and Due specific examples)

September 10, 2012, at 01:53 AM by Scott Fitzgerald -
September 10, 2012, at 01:53 AM by Scott Fitzgerald -
Changed lines 123-124 from:
to:
September 08, 2012, at 09:42 PM by Scott Fitzgerald -
Changed lines 123-124 from:
to:
August 09, 2012, at 02:42 PM by Scott Fitzgerald -
Changed line 177 from:

The WiFi Library will be included in a future release of the Arduino IDE. You can download the most recent version?, and install it as you would any other library.

to:

The WiFi Library will be included in a future release of the Arduino IDE. You can download the most recent version, and install it as you would any other library.

August 08, 2012, at 03:12 PM by Scott Fitzgerald -
Changed line 177 from:

The WiFi Library will be included in a future release of the Arduino IDE. You can download the most recent version, and install it as you would any other library.

to:

The WiFi Library will be included in a future release of the Arduino IDE. You can download the most recent version?, and install it as you would any other library.

August 07, 2012, at 05:37 PM by Scott Fitzgerald -
Changed line 177 from:

The WiFi Library will be included in a future version of the Arduino IDE. You can download the most recent version, and install it as you would any other library.

to:

The WiFi Library will be included in a future release of the Arduino IDE. You can download the most recent version, and install it as you would any other library.

August 07, 2012, at 04:07 PM by Scott Fitzgerald -
Changed line 177 from:

The WiFi Library will be bundled with a future version of the Arduino IDE. Currently, you may download it from here, and install it as you would any other library.

to:

The WiFi Library will be included in a future version of the Arduino IDE. You can download the most recent version, and install it as you would any other library.

July 31, 2012, at 11:06 PM by Scott Fitzgerald -
Added lines 177-178:

The WiFi Library will be bundled with a future version of the Arduino IDE. Currently, you may download it from here, and install it as you would any other library.

July 30, 2012, at 05:05 PM by Scott Fitzgerald -
Changed line 175 from:
to:
Changed lines 178-179 from:
to:
July 21, 2012, at 11:16 AM by Federico -
Changed lines 101-102 from:
  • MouseContinousDrawing?: Controls the mouse computer's cursor movement with two potentiometers, for drawing continuous lines on the screen, like in the famous game Etch-a-sketch.
to:
  • MouseContinuousDrawing: Controls the mouse computer's cursor movement with two potentiometers, for drawing continuous lines on the screen, like in the famous game Etch-a-sketch.
July 21, 2012, at 11:14 AM by Federico -
Changed lines 101-102 from:
to:
  • MouseContinousDrawing?: Controls the mouse computer's cursor movement with two potentiometers, for drawing continuous lines on the screen, like in the famous game Etch-a-sketch.
May 18, 2012, at 11:24 PM by Scott Fitzgerald -
Added line 174:
Changed lines 177-178 from:
to:
May 14, 2012, at 10:37 PM by Tom Igoe -
Changed lines 122-123 from:
to:
April 27, 2012, at 05:32 PM by Scott Fitzgerald -
April 25, 2012, at 06:15 PM by Scott Fitzgerald -
Changed line 90 from:

Leonardo specific examples

to:

9.USB (Leonardo specific examples)

Changed lines 92-93 from:

9.Keyboard

to:

Keyboard

Added line 95:
Changed lines 97-99 from:

10.Mouse

to:
  • KeyboardReprogram : opens a new window in the Arduino IDE and reprograms the Leonardo with a simple blink program

Mouse

April 23, 2012, at 07:09 PM by Scott Fitzgerald -
Added line 116:
April 20, 2012, at 11:44 PM by Scott Fitzgerald -
Changed lines 170-180 from:
to:
April 20, 2012, at 11:43 PM by Scott Fitzgerald -
Changed lines 169-180 from:
to:

WiFi Library

Changed line 188 from:
to:
April 16, 2012, at 07:49 PM by Scott Fitzgerald - Added Read ASCII String example
Added line 40:
March 15, 2012, at 02:34 AM by Scott Fitzgerald - replaced Digital examples with DigitalSeeAlsoIncludes
Changed lines 25-34 from:
  • 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.
  • Input Pullup Serial: Demonstrates the use of INPUT_PULLUP with pinMode().
  • 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.
to:
March 15, 2012, at 02:29 AM by Scott Fitzgerald - added input_pullup example
Added line 29:
December 07, 2011, at 01:37 AM by Scott Fitzgerald -
Added lines 96-103:

Leonardo specific examples

The Keyboard and Mouse examples are specific to the Leonardo, they demonstrate the use of libraries that are unique to the board.

9.Keyboard

10.Mouse

  • JoystickMouseControl: Controls a computer's cursor movement with a Joystick when a button is pressed.
December 01, 2011, at 04:22 PM by Scott Fitzgerald -
Added line 54:
November 30, 2011, at 02:36 AM by Scott Fitzgerald - Removing Keyboard and Mouse examples for 1.0
Changed lines 166-175 from:

Leonardo specific examples

The Keyboard and Mouse examples are specific to the Leonardo, they demonstrate the use of libraries that are unique to the board.

Keyboard

Mouse

  • JoystickMouseControl: Controls a computer's cursor movement with a Joystick when a button is pressed.
to:
November 20, 2011, at 07:59 PM by Scott Fitzgerald -
Changed lines 166-168 from:

Leonardo specific Libraries

These libraries are specific to the Arduino Leonardo Board.

to:

Leonardo specific examples

The Keyboard and Mouse examples are specific to the Leonardo, they demonstrate the use of libraries that are unique to the board.

November 19, 2011, at 06:15 PM by Scott Fitzgerald - added Leonardo examples
Added lines 166-175:

Leonardo specific Libraries

These libraries are specific to the Arduino Leonardo Board.

Keyboard

Mouse

  • JoystickMouseControl: Controls a computer's cursor movement with a Joystick when a button is pressed.
November 01, 2011, at 06:00 PM by Scott Fitzgerald -
Changed lines 114-115 from:
to:
November 01, 2011, at 05:20 PM by Scott Fitzgerald -
Changed lines 7-8 from:

Note: these examples are written for Arduino version 0020 and later. Certain functions, like the String functions, or the use of A0 through A5 to refer to analog pins, may not work in earlier versions. For best results, download the latest version.

to:

Note: these examples are written for Arduino 1.0 and later. Certain functions may not work in earlier versions. For best results, download the latest version.

October 31, 2011, at 05:34 PM by Scott Fitzgerald -
Changed lines 118-124 from:
to:

October 28, 2011, at 10:22 PM by Scott Fitzgerald -
Changed lines 145-147 from:
  • Simple Software Serial: how to use the SoftwareSerial Library...Because sometimes one serial port just isn't enough!
  • TwoPortReceive: how to work with multiple software serial ports.
to:
November 21, 2010, at 07:57 PM by David A. Mellis -
Changed lines 159-160 from:

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.

to:

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

November 21, 2010, at 07:52 PM by David A. Mellis -
Changed lines 11-13 from:
to:
Changed lines 95-97 from:
to:
Changed line 165 from:
to:
October 11, 2010, at 10:21 PM by Tom Igoe -
Changed lines 44-45 from:

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

to:

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. For Pd patches that can communicate with these sketches, see Scott Fitzgerald's examples.

October 03, 2010, at 11:06 PM by David Cuartielles -
Changed lines 7-8 from:

Note: these examples are written for Arduino version 0020 and later. Certain functions, like the String functions, or the use of A0 through A5 to refer to analog pins, may not work in earlier versions. For best results, [[Main/Software| download the latest version.

to:

Note: these examples are written for Arduino version 0020 and later. Certain functions, like the String functions, or the use of A0 through A5 to refer to analog pins, may not work in earlier versions. For best results, download the latest version.

October 03, 2010, at 08:21 PM by Tom Igoe -
Added lines 7-8:

Note: these examples are written for Arduino version 0020 and later. Certain functions, like the String functions, or the use of A0 through A5 to refer to analog pins, may not work in earlier versions. For best results, [[Main/Software| download the latest version.

September 23, 2010, at 10:55 PM by Christian Cerrito -
Changed line 140 from:

SoftwareSerial Library

to:

Software Serial Library

September 23, 2010, at 08:55 PM by Christian Cerrito -
Changed lines 99-100 from:

EEPROM Library

to:

EEPROM Library

Deleted lines 129-132:

Matrix Library

  • hello_matrix
  • sprite_animation
September 23, 2010, at 08:38 PM by Christian Cerrito -
Changed lines 95-96 from:

Libraries

to:
September 23, 2010, at 08:20 PM by Christian Cerrito -
Changed lines 112-114 from:
to:
Changed lines 116-117 from:
to:
September 23, 2010, at 08:18 PM by Christian Cerrito -
Changed lines 116-117 from:
to:
September 23, 2010, at 04:14 PM by Christian Cerrito -
September 23, 2010, at 04:13 PM by Christian Cerrito -
Changed line 173 from:
to:
September 23, 2010, at 08:28 AM by Christian Cerrito -
Changed lines 153-154 from:
  • Simple Software Serial: a straightforward example illustrating how to use the SoftwareSerial Library...Because sometimes one serial port just isn't enough!
to:
  • Simple Software Serial: how to use the SoftwareSerial Library...Because sometimes one serial port just isn't enough!
September 23, 2010, at 08:27 AM by Christian Cerrito -
Changed lines 144-146 from:
to:
Changed lines 152-154 from:

SoftwareSerial

Need examples

to:

SoftwareSerial Library

  • Simple Software Serial: a straightforward example illustrating how to use the SoftwareSerial Library...Because sometimes one serial port just isn't enough!
September 23, 2010, at 08:10 AM by Christian Cerrito -
Changed line 162 from:
to:
September 23, 2010, at 08:09 AM by Christian Cerrito -
Changed line 79 from:

8.String Library

to:

8.Strings

September 23, 2010, at 08:09 AM by Christian Cerrito -
Changed line 79 from:

8.Strings

to:

8.String Library

Changed lines 99-100 from:

EEPROM

to:

EEPROM Library

Changed line 115 from:

Firmata

to:

Firmata Libraries

Changed line 138 from:

Matrix

to:

Matrix Library

September 23, 2010, at 08:07 AM by Christian Cerrito -
Changed lines 157-159 from:
  • Motor Knob: control a stepper motor with a potentiometer.

to:
  • Motor Knob: control a highly accurate stepper motor using a potentiometer.

September 23, 2010, at 08:07 AM by Christian Cerrito -
Changed line 162 from:
to:
September 23, 2010, at 08:06 AM by Christian Cerrito -
Changed lines 161-169 from:
to:
September 23, 2010, at 04:50 AM by Christian Cerrito -
Changed lines 53-54 from:
to:
  • MultiSerialMega: use two of the serial ports available on the Arduino Mega.
September 22, 2010, at 08:21 AM by Christian Cerrito -
Changed line 25 from:
to:
September 22, 2010, at 07:50 AM by Christian Cerrito -
Changed lines 164-165 from:
to:
September 22, 2010, at 07:50 AM by Christian Cerrito -
Changed lines 164-165 from:
to:
September 22, 2010, at 07:49 AM by Christian Cerrito -
Changed lines 163-164 from:
to:
September 19, 2010, at 10:12 PM by Christian Cerrito -
Changed line 76 from:
to:
September 19, 2010, at 10:11 PM by Christian Cerrito -
Changed line 76 from:
  • LED Bar Graph: how to make an LED bar graph.
to:
September 17, 2010, at 11:05 PM by Tom Igoe -
Changed line 87 from:
to:
September 17, 2010, at 06:42 PM by Tom Igoe -
Deleted line 33:
September 17, 2010, at 06:40 PM by Tom Igoe -
Changed lines 18-19 from:
(include BasicsSeeAlsoIncludes
)
to:
September 17, 2010, at 05:37 PM by Tom Igoe -
Changed lines 18-19 from:
to:
(include BasicsSeeAlsoIncludes
)
Changed lines 22-23 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.
September 17, 2010, at 05:27 PM by Tom Igoe -
Changed lines 22-30 from:
  • 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.
to:
September 17, 2010, at 05:24 PM by Tom Igoe -
Changed lines 18-19 from:
(include BasicsSeeAlsoIncludes
)
to:
September 17, 2010, at 05:24 PM by Tom Igoe -
Changed lines 18-24 from:
  • BareMinimum - bare minimum code needed to start a sketch.
  • Blink - turn an LED on and off.
  • DigitalReadSerial - read a switch, print the state out to the Serial Monitor.
  • AnalogReadSerial - read a potentiometer, print the state out to the Serial Monitor.
  • Fade - demonstrates the use of analog output to fade an LED.

to:
(include BasicsSeeAlsoIncludes
)
September 17, 2010, at 04:28 PM by Tom Igoe -
Deleted line 116:
Changed lines 118-120 from:
to:
September 16, 2010, at 11:23 PM by Tom Igoe -
Changed lines 97-98 from:
  • ArduinoISP: use an Arduino as an AVR in-system programmer.
to:
September 07, 2010, at 08:49 PM by Tom Igoe -
Changed line 19 from:
  • Blink? - turn an LED on and off.
to:
  • Blink - turn an LED on and off.
September 07, 2010, at 08:44 PM by Tom Igoe -
Deleted line 26:
  • Blink: turn an LED on and off.
August 27, 2010, at 09:25 AM by Christian Cerrito -
Changed line 59 from:
  • MIDI: how to send MIDI note messages serially.
to:
  • MIDI: send MIDI note messages serially.
August 27, 2010, at 07:47 AM by Christian Cerrito -
Changed line 54 from:
  • Physical Pixel: turn and LED on and off by sending data to your Arduino from Processing or Max/MSP.
to:
  • Physical Pixel: turn a LED on and off by sending data to your Arduino from Processing or Max/MSP.
August 27, 2010, at 07:29 AM by Christian Cerrito -
Changed line 58 from:
to:
August 27, 2010, at 07:29 AM by Christian Cerrito -
Changed line 58 from:
to:
August 27, 2010, at 07:27 AM by Christian Cerrito -
Changed lines 53-58 from:
  • 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.
to:
  • Graph: send data to the computer and graph it in Processing.
  • Physical Pixel: turn and LED on and off by sending data to your Arduino from Processing or Max/MSP.
  • Virtual Color Mixer: send multiple variables from Arduino to your computer and read them in Processing or Max/MSP.
  • Serial Call Response: send multiple vairables using a call-and-response (handshaking) method.
  • Serial Call Response ASCII: send multiple variables using a call-and-response (handshaking) method, and ASCII-encode the values before sending.
  • Serial input (SwitchCase2): how to take different actions based on characters received by the serial port.
August 27, 2010, at 05:43 AM by Christian Cerrito -
Changed line 42 from:
  • AnalogWriteMega: fade 12 LEDs up and the down, one by one, using an Arduino Mega board.
to:
  • AnalogWriteMega: fade 12 LEDs on and off, one by one, using an Arduino Mega board.
August 26, 2010, at 09:07 AM by Christian Cerrito -
Changed line 42 from:
  • AnalogWriteMega: fades12 LEDs up and the down, one by one, using an Arduino Mega board.
to:
  • AnalogWriteMega: fade 12 LEDs up and the down, one by one, using an Arduino Mega board.
Changed line 44 from:
  • Fading: uses an analog output (PWM pin) to fade an LED.
to:
  • Fading: use an analog output (PWM pin) to fade an LED.
August 26, 2010, at 09:06 AM by Christian Cerrito -
Changed line 18 from:
  • BareMinimum - bare minimum code needed to start a sketch
to:
  • BareMinimum - bare minimum code needed to start a sketch.
Changed lines 20-24 from:
  • DigitalReadSerial - read a switch, print the state out to the Serial Monitor
  • AnalogReadSerial - read a potentiometer, print the state out to the Serial Monitor
  • Fade - demonstrates the use of analog output to fade an LED

to:
  • DigitalReadSerial - read a switch, print the state out to the Serial Monitor.
  • AnalogReadSerial - read a potentiometer, print the state out to the Serial Monitor.
  • Fade - demonstrates the use of analog output to fade an LED.

Changed line 39 from:
  • AnalogInOutSerial: read an analog input pin, map the result, and then use that data to dim or brighten an LED
to:
  • AnalogInOutSerial: read an analog input pin, map the result, and then use that data to dim or brighten an LED.
Changed lines 42-43 from:
  • AnalogWriteMega: fades12 LEDs up and the down, one by one, on an Arduino Mega board
  • Calibration: define a maximum and minimum for expected analog sensor values
to:
  • AnalogWriteMega: fades12 LEDs up and the down, one by one, using an Arduino Mega board.
  • Calibration: define a maximum and minimum for expected analog sensor values.
August 26, 2010, at 09:05 AM by Christian Cerrito -
Changed line 44 from:
 * Fading: uses an analog output (PWM pin) to fade an LED.
to:
  • Fading: uses an analog output (PWM pin) to fade an LED.
August 26, 2010, at 09:03 AM by Christian Cerrito -
Changed lines 43-44 from:
  • Calibration: for analog sensor readings.
  • Fading: uses an analog output (PWM pin) to fade an LED.
to:
  • Calibration: define a maximum and minimum for expected analog sensor values
 * Fading: uses an analog output (PWM pin) to fade an LED.
August 26, 2010, at 08:21 AM by Christian Cerrito -
Changed lines 39-40 from:
to:
Changed line 42 from:
to:
  • AnalogWriteMega: fades12 LEDs up and the down, one by one, on an Arduino Mega board
August 24, 2010, at 07:47 AM by Christian Cerrito -
Changed lines 19-24 from:
  • Blink?: turn an LED on and off.
  • DigitalReadSerial - Read a switch, print the state out to the Serial Monitor
  • AnalogReadSerial - Read a potentiometer, print the state out to the Serial Monitor
  • Fade - Demonstrates the use of analog output to fade an LED

to:
  • Blink? - turn an LED on and off.
  • DigitalReadSerial - read a switch, print the state out to the Serial Monitor
  • AnalogReadSerial - read a potentiometer, print the state out to the Serial Monitor
  • Fade - demonstrates the use of analog output to fade an LED

August 23, 2010, at 08:52 PM by Christian Cerrito -
Changed lines 22-24 from:
  • Simple Fade? - Demonstrates the use of analog output to fade an LED

to:
  • Fade - Demonstrates the use of analog output to fade an LED

August 23, 2010, at 08:51 PM by Christian Cerrito -
Changed lines 22-24 from:
  • Fade - read a potentiometer, use the result to fade an LED

to:
  • Simple Fade? - Demonstrates the use of analog output to fade an LED

August 16, 2010, at 03:30 PM by Tom Igoe -
August 15, 2010, at 08:14 PM by Tom Igoe -
Changed line 18 from:
to:
  • BareMinimum - bare minimum code needed to start a sketch
Changed lines 20-23 from:
to:
  • DigitalReadSerial - Read a switch, print the state out to the Serial Monitor
  • AnalogReadSerial - Read a potentiometer, print the state out to the Serial Monitor
  • Fade - read a potentiometer, use the result to fade an LED

August 15, 2010, at 03:39 PM by Tom Igoe -
Deleted line 17:
Added line 21:
August 15, 2010, at 01:01 AM by Christian Cerrito -
Changed lines 119-120 from:
to:
August 15, 2010, at 12:42 AM by Christian Cerrito -
Changed line 30 from:
to:
Changed line 32 from:
  • Pitch follower: play a pitch on a piezo speaker depending on an analog input
to:
  • Pitch follower: play a pitch on a piezo speaker depending on an analog input.
Changed line 42 from:
to:
Changed lines 75-78 from:
  • Memsic2125 : two-axis acceleromoter
  • Ping: detecting objects with an ultrasonic range finder

to:
  • Memsic2125 : two-axis acceleromoter.
  • Ping: detecting objects with an ultrasonic range finder.

Changed lines 82-84 from:
to:
Changed lines 86-90 from:
to:
Changed lines 92-98 from:
to:
Changed lines 114-120 from:
to:
Changed lines 134-143 from:
  • 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
to:
  • 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 150-152 from:
to:
August 15, 2010, at 12:28 AM by Christian Cerrito -
Changed line 20 from:
  • Blink? turn an LED on and off.
to:
  • Blink?: turn an LED on and off.
Changed line 26 from:
  • Blink turn an LED on and off.
to:
  • Blink: turn an LED on and off.
Changed lines 33-35 from:
  • 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.
to:
  • 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.
Changed lines 57-58 from:
  • Serial input how to take different actions based in characters received in the serial port.
  • MIDI How to send MIDI note messages serially.
to:
  • Serial input: how to take different actions based in characters received in the serial port.
  • MIDI: how to send MIDI note messages serially.
Changed line 65 from:
  • Array: A variation on the For Loop example that demonstrates how to use an array.
to:
  • Array: a variation on the For Loop example that demonstrates how to use an array.
Changed lines 68-70 from:
  • Switch Case 2 A second switch-case example, showing how to take different actions based in characters received in the serial port.

to:
  • Switch Case 2: a second switch-case example, showing how to take different actions based in characters received in the serial port.

Changed line 73 from:
  • ADXL3xx: Read an ADXL3xx accelerometer.
to:
  • ADXL3xx: read an ADXL3xx accelerometer.
Changed lines 82-84 from:
to:
Changed lines 86-98 from:
to:
Changed lines 114-120 from:
to:
August 15, 2010, at 12:17 AM by Christian Cerrito -
Changed line 95 from:
to:
August 15, 2010, at 12:16 AM by Christian Cerrito -
Changed lines 97-98 from:
to:
  • ArduinoISP: Using an Arduino as an AVR in-system programmer.
August 15, 2010, at 12:14 AM by Christian Cerrito -
Changed lines 114-120 from:
to:
August 15, 2010, at 12:06 AM by Christian Cerrito -
Changed lines 86-95 from:
to:
Changed line 96 from:
to:
August 15, 2010, at 12:00 AM by Christian Cerrito -
Changed lines 86-95 from:
to:
August 13, 2010, at 11:47 PM by Tom Igoe -
August 13, 2010, at 11:46 PM by Tom Igoe -
Changed lines 71-72 from:

Sensors

to:

6.Sensors

August 13, 2010, at 11:46 PM by Tom Igoe -
Added line 2:
Changed lines 9-12 from:
to:
Changed lines 16-18 from:

Digital I/O

  • Blink: turn an LED on and off.
to:

1.Basics

2.Digital

  • Blink turn an LED on and off.
Added line 29:
  • Debounce: read a pushbutton, filtering noise.
Deleted line 30:
  • Debounce: read a pushbutton, filtering noise.
Changed lines 36-37 from:

Analog I/O

to:
Added line 41:
Changed lines 46-62 from:

Control Structures

to:

4.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.
  • MultiSerialMega

5.Control Structures

Changed lines 69-70 from:
to:
Changed lines 78-93 from:

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.

Display

to:

7.Display

Changed lines 85-88 from:
to:
Changed lines 107-108 from:

EEPROM Library

to:

EEPROM

Added lines 122-132:
Deleted line 134:
Changed lines 145-153 from:
to:

Matrix

  • hello_matrix
  • sprite_animation

SPI Library

Changed lines 159-163 from:

SPI Library

to:

SoftwareSerial

Need examples

Added lines 166-175:
Added line 178:
Changed line 183 from:
to:
August 13, 2010, at 03:34 PM by Tom Igoe -
August 11, 2010, at 11:47 PM by Tom Igoe -
Added lines 81-89:
August 11, 2010, at 11:39 PM by Tom Igoe -
Changed lines 103-104 from:
to:
August 04, 2010, at 11:34 PM by Tom Igoe -
Added lines 100-103:

SPI Library

March 23, 2010, at 09:40 PM by Tom Igoe -
Added lines 104-105:

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.

March 08, 2010, at 04:55 PM by Tom Igoe -
Changed lines 24-25 from:
to:
  • Tone4 Play tones on multiple speakers sequentially using the tone() command.
February 09, 2010, at 01:53 PM by Tom Igoe -
Changed lines 21-22 from:
  • Melody: play melodies with a Piezo speaker.
to:
  • 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.
December 23, 2009, at 11:18 PM by David A. Mellis -
Changed lines 59-60 from:

Display

to:

Display

December 23, 2009, at 11:18 PM by David A. Mellis -
Deleted lines 58-59:
Added lines 65-67:
September 24, 2009, at 12:18 AM by David A. Mellis -
Changed line 84 from:
to:
Changed lines 88-90 from:
  • Shift? - shift text right and left

to:

July 09, 2009, at 10:26 PM by Tom Igoe -
Added lines 77-90:

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.
  • IncrementDecrement? - 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
  • Shift? - shift text right and left

July 05, 2009, at 08:56 PM by Tom Igoe -
Deleted lines 30-32:
  • For Loop and Array: controlling multiple LEDs with a for loop and an array.
  • While Loop: how to use a while loop to calibrate a sensor while a button is being read.
Added lines 32-34:
  • 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.
July 05, 2009, at 07:06 PM by Tom Igoe -
July 03, 2009, at 12:52 AM by Tom Igoe -
Changed lines 57-58 from:
to:
  • MIDI How to send MIDI note messages serially.
July 01, 2009, at 08:26 PM by Tom Igoe -
Added line 36:
  • Switch Case 2 A second switch-case example, showing how to take different actions based in characters received in the serial port.
Changed lines 56-57 from:
to:
  • Serial input how to take different actions based in characters received in the serial port.
July 01, 2009, at 07:47 PM by Tom Igoe -
Deleted line 20:
Changed line 35 from:
  • Switch Case: how to choose between a discrete number of values. Equivalent to multiple If statemtns.
to:
  • 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.
July 01, 2009, at 07:46 PM by Tom Igoe -
Changed lines 36-37 from:
to:
  • Switch Case: how to choose between a discrete number of values. Equivalent to multiple If statemtns.
July 01, 2009, at 01:02 PM by Tom Igoe -
Added lines 6-7:

Here's a style guide that helps with writing examples for beginners.

June 30, 2009, at 05:26 PM by Tom Igoe -
Changed lines 59-60 from:

LED Bar Graph How to make an LED bar graph Row Column Scanning How to control an 8x8 matrix of LEDs

to:
June 30, 2009, at 05:26 PM by Tom Igoe -
Added lines 55-60:

Display

Examples of basic display control LED Bar Graph How to make an LED bar graph Row Column Scanning How to control an 8x8 matrix of LEDs

June 25, 2009, at 09:39 PM by Tom Igoe -
Changed lines 33-34 from:
to:
  • If Statement (Conditional): how to use an if statement to change output conditions based on changing input conditions.
June 25, 2009, at 08:59 PM by Tom Igoe -
Changed line 19 from:
  • Loop: controlling multiple LEDs with a loop and an array.
to:
Added lines 29-33:

Control Structures

  • For Loop and Array: controlling multiple LEDs with a for loop and an array.
  • While Loop: how to use a while loop to calibrate a sensor while a button is being read.
June 25, 2009, at 01:01 AM by Tom Igoe -
Added line 17:
April 16, 2009, at 12:03 PM by Tom Igoe -
Added line 43:
  • Virtual Color Mixer: sending multiple variables from Arduino to the computer and reading them in Processing.
Deleted lines 44-45:
  • 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.
April 16, 2009, at 12:58 AM by Tom Igoe -
Changed lines 37-38 from:

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.

to:

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

April 16, 2009, at 12:55 AM by Tom Igoe -
Added line 43:
Changed lines 45-47 from:
to:
  • 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.
February 10, 2009, at 10:47 AM by David A. Mellis -
Changed lines 27-28 from:
to:
February 10, 2009, at 04:11 AM by Paul Badger -
Changed lines 27-28 from:
to:
February 06, 2009, at 06:30 PM by David A. Mellis -
Deleted lines 64-93:
Changed lines 67-68 from:

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

to:

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.

February 06, 2009, at 06:19 PM by David A. Mellis -
Deleted line 75:
Changed lines 77-78 from:
  • Heartbeat
to:
Added lines 95-98:

More

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

February 06, 2009, at 06:16 PM by David A. Mellis -
Changed lines 19-20 from:
to:
  • Melody: play melodies with a Piezo speaker.
Deleted line 22:
  • ADXL3xx: Read an ADXL3xx accelerometer.
Added line 24:
Deleted line 25:
  • Knock: detect knocks with a piezo element.
Added lines 28-34:

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
Deleted lines 80-81:
  • Ping: detecting objects with an ultrasonic range finder
  • Memsic2125: two-axis acceleromoter
Changed lines 82-83 from:
to:
Changed lines 84-86 from:
to:
February 06, 2009, at 05:10 AM by Paul Badger -
Changed lines 71-72 from:
to:
  • Heartbeat
December 27, 2008, at 01:12 AM by Paul Badger -
Added line 69:
December 10, 2008, at 01:02 PM by David A. Mellis -
Deleted line 68:
November 22, 2008, at 06:33 PM by David A. Mellis -
Deleted lines 83-84:
November 07, 2008, at 10:27 AM by David A. Mellis -
Changed lines 76-77 from:
to:
November 07, 2008, at 10:25 AM by David A. Mellis -
Changed lines 74-75 from:
to:
November 03, 2008, at 03:53 PM by David A. Mellis -
Added line 73:
  • Ping: detecting objects with an ultrasonic range finder
October 29, 2008, at 10:27 PM by David A. Mellis -
Changed lines 76-77 from:
to:
October 20, 2008, at 11:06 PM by David A. Mellis -
Changed line 78 from:
to:
October 13, 2008, at 09:08 PM by David A. Mellis -
Added line 51:
  • Knob: control the shaft of a servo motor by turning a potentiometer.
October 12, 2008, at 12:38 PM by David A. Mellis -
Changed lines 79-80 from:
  • MIDI Output (from ITP physcomp labs) and from Spooky Arduino
to:
Deleted line 83:
  • Driving a DC Motor with an L293 (from ITP physcomp labs).
Changed line 87 from:
  • RS-232 computer interface
to:
October 12, 2008, at 12:32 PM by David A. Mellis -
Changed lines 8-11 from:

Examples

Simple programs that demonstrate the use of the Arduino board. These are included with the Arduino environment; to open them, click the Open button on the toolbar and look in the examples folder. (If you're looking for an older example, check the Arduino 0007 tutorials page.)

to:

Basics

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.

October 12, 2008, at 12:30 PM by David A. Mellis -
Added lines 49-52:

Servo Library

  • Sweep: sweeps the shaft of a servo motor back and forth.
October 11, 2008, at 11:52 PM by David A. Mellis -
Added lines 38-42:
Deleted lines 52-53:
October 11, 2008, at 11:45 PM by David A. Mellis -
Added line 22:
  • ADXL3xx: Read an ADXL3xx accelerometer.
Deleted line 64:
September 26, 2008, at 11:29 PM by Paul Badger -
Changed lines 61-62 from:
to:
July 02, 2008, at 10:11 PM by David A. Mellis -
Changed lines 2-3 from:

Arduino Examples

to:

Examples

July 02, 2008, at 10:11 PM by David A. Mellis -
Changed lines 4-5 from:

See the foundations page for in-depth description of core concepts of the Arduino hardware and software, and the links page for other documentation.

to:

See the foundations page for in-depth description of core concepts of the Arduino hardware and software; the hacking page for information on extending and modifying the Arduino hardware and software; and the links page for other documentation.

July 02, 2008, at 09:07 PM by David A. Mellis -
Added line 63:
May 22, 2008, at 04:44 AM by David A. Mellis -
Deleted lines 42-45:

Matrix Library

May 22, 2008, at 04:43 AM by David A. Mellis -
Added lines 43-46:

Matrix Library

May 22, 2008, at 04:36 AM by David A. Mellis -
Added lines 43-46:

Stepper Library

  • Motor Knob: control a stepper motor with a potentiometer.
May 22, 2008, at 04:25 AM by David A. Mellis - adding EEPROM examples.
Added lines 37-42:

EEPROM Library

  • 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.
May 22, 2008, at 04:22 AM by David A. Mellis -
Changed line 15 from:
to:
April 30, 2008, at 01:55 AM by David A. Mellis - moving the resources to the links page.
Changed lines 2-5 from:

Arduino Tutorials

Here you will find a growing number of examples and tutorials for accomplishing specific tasks or interfacing to other hardware and software with Arduino. For instructions on getting the board and environment up and running, see the Arduino Getting Started.

to:

Arduino Examples

See the foundations page for in-depth description of core concepts of the Arduino hardware and software, and the links page for other documentation.

Added line 15:
Changed lines 37-42 from:
to:
Changed lines 41-42 from:

These are more complex examples for using particular electronic components or accomplishing specific tasks. The code is included in the tutorial.

to:

These are more complex examples for using particular electronic components or accomplishing specific tasks. The code is included on the page.

Deleted lines 43-44:
Added lines 49-51:

Timing & Millis

Deleted lines 75-125:
April 24, 2008, at 05:29 AM by David A. Mellis -
Changed line 6 from:
to:
April 23, 2008, at 12:59 AM by Paul Badger -
Changed line 39 from:
to:
Changed line 41 from:
to:
April 23, 2008, at 12:56 AM by Paul Badger -
Added lines 40-41:
April 18, 2008, at 02:22 PM by Paul Badger -
Added lines 36-39:
Changed line 46 from:
to:
April 09, 2008, at 03:22 AM by David A. Mellis - moving TwoSwitchesOnePin to "other examples" since it's not (yet) in the distribution.
Changed lines 18-19 from:
to:
Added line 43:
April 09, 2008, at 02:41 AM by Paul Badger -
Changed lines 18-19 from:
to:
March 10, 2008, at 01:20 AM by David A. Mellis -
Changed lines 73-78 from:
to:

See the foundations page for explanations of the concepts involved in the Arduino hardware and software.

March 08, 2008, at 04:26 AM by Paul Badger -
Changed lines 73-75 from:

to:
March 08, 2008, at 04:24 AM by Paul Badger -
Changed lines 74-107 from:
to:
March 08, 2008, at 04:09 AM by Paul Badger -
Added lines 80-81:
February 16, 2008, at 01:00 AM by David A. Mellis -
Changed lines 72-73 from:

Tutorials

to:

Foundations

Changed lines 108-109 from:

More Tutorials

to:

Tutorials

February 14, 2008, at 05:42 AM by Paul Badger -
Changed lines 4-5 from:

Here you will find a growing number of examples and tutorials for accomplishing specific tasks or interfacing to other hardware and software with Arduino. For instructions on getting the board and environment up and running, see the Arduino guide.

to:

Here you will find a growing number of examples and tutorials for accomplishing specific tasks or interfacing to other hardware and software with Arduino. For instructions on getting the board and environment up and running, see the Arduino Getting Started.

February 14, 2008, at 05:06 AM by David A. Mellis -
February 14, 2008, at 04:58 AM by David A. Mellis -
Added lines 100-103:
  • Optimization?: What to do when your program runs too slowly.

  • Debugging?: Figuring out what's wrong with your hardware or software and how to fix it.
February 14, 2008, at 04:41 AM by David A. Mellis -
Added lines 90-99:
  • Numbers?: The various types of numbers available and how to use them.

  • Variables: How to define and use variables.

  • Arrays?: How to store multiple values of the same type.

  • Pointers?:

  • Functions?: How to write and call functions.
February 14, 2008, at 04:38 AM by David A. Mellis -
Changed lines 86-87 from:
to:
  • Serial Communication?: How to send serial data from an Arduino board to a computer or other device (including via the USB connection).

  • Interrupts?: Code that interrupts other code under certain conditions.
February 14, 2008, at 04:36 AM by David A. Mellis -
Added lines 80-81:
Added lines 84-89:
February 14, 2008, at 04:31 AM by David A. Mellis -
Changed lines 80-81 from:
  • PWM (Pulse-Width Modulation): The method used by analogWrite() to simulate an analog output with digital pins.
to:
February 14, 2008, at 04:30 AM by David A. Mellis -
Added lines 80-81:
  • PWM (Pulse-Width Modulation): The method used by analogWrite() to simulate an analog output with digital pins.
February 14, 2008, at 04:22 AM by David A. Mellis -
Added lines 80-81:
  • Bootloader: A small program pre-loaded on the Arduino board to allow uploading sketches.
February 14, 2008, at 04:12 AM by David A. Mellis -
Added lines 74-81:
  • Memory: The various types of memory available on the Arduino board.

  • Digital Pins: How the pins work and what it means for them to be configured as inputs or outputs.

  • Analog Input Pins: Details about the analog-to-digital conversion and other uses of the pins.

More Tutorials

January 11, 2008, at 06:31 PM by David A. Mellis - linking to board setup and configuration on the playground.
Added lines 76-77:

Board Setup and Configuration: Information about the components and usage of Arduino hardware.

December 20, 2007, at 06:54 AM by David A. Mellis - adding links to other pages: the tutorial parts of the playground, ladyada's tutorials, todbot, etc.
Changed lines 36-42 from:
to:

Other Examples

These are more complex examples for using particular electronic components or accomplishing specific tasks. The code is included in the tutorial.

Changed lines 71-78 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:
December 14, 2007, at 06:08 AM by David A. Mellis - adding debounce example.
Added line 16:
  • Debounce: read a pushbutton, filtering noise.
August 29, 2007, at 06:15 AM by Tom Igoe -
Changed lines 71-72 from:
to:
  • X10 output control devices over AC powerlines using X10

June 16, 2007, at 12:04 AM by David A. Mellis - adding link to Processing (for the communication examples)
Added lines 27-28:

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.

June 12, 2007, at 03:57 PM by David A. Mellis - removing link to obsolete joystick example.
Deleted line 43:
June 12, 2007, at 06:14 AM by David A. Mellis -
Changed lines 10-11 from:

Simple programs that demonstrate the use of the Arduino board. These are included with the Arduino environment; to open them, click the Open button on the toolbar and look in the examples folder. (If you're looking for an older example, check the Arduino 0007 tutorials page.

to:

Simple programs that demonstrate the use of the Arduino board. These are included with the Arduino environment; to open them, click the Open button on the toolbar and look in the examples folder. (If you're looking for an older example, check the Arduino 0007 tutorials page.)

June 12, 2007, at 06:13 AM by David A. Mellis -
Changed lines 10-11 from:

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

to:

Simple programs that demonstrate the use of the Arduino board. These are included with the Arduino environment; to open them, click the Open button on the toolbar and look in the examples folder. (If you're looking for an older example, check the Arduino 0007 tutorials page.

June 12, 2007, at 06:10 AM by David A. Mellis - updating to 0008 examples
Changed lines 10-11 from:

Digital Output

to:
Deleted lines 42-51:

Digital Input

Deleted lines 43-45:

Analog Input

Deleted lines 45-46:
Changed lines 52-53 from:
  • Use two Arduino pins as a capacitive sensor
to:
Deleted line 54:
  • More sound ideas
Added line 64:
Changed lines 70-72 from:
to:

Other Arduino Tutorials

  • Tutorials from the Arduino playground
Added line 75:
  • Spooky Arduino and more from Todbot
Deleted lines 78-105:
May 11, 2007, at 01:06 PM by Paul Badger -
Changed lines 17-18 from:
to:
  • PWM all of the digital pins in a sinewave pattern
May 11, 2007, at 02:07 AM by Paul Badger -
Changed lines 36-37 from:
  • http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1171076259 |Use a couple of Arduino pins as a capacitive sensor]]
to:
  • Use two Arduino pins as a capacitive sensor
May 11, 2007, at 02:05 AM by Paul Badger -
Changed lines 36-37 from:
  • http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1171076259 Use a couple of Arduino pins as a capacitive sensor
to:
  • http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1171076259 |Use a couple of Arduino pins as a capacitive sensor]]
May 11, 2007, at 02:04 AM by Paul Badger -
Changed lines 36-37 from:
to:
  • http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1171076259 Use a couple of Arduino pins as a capacitive sensor
May 11, 2007, at 01:59 AM by Paul Badger -
Added line 39:
  • More sound ideas
February 08, 2007, at 07:02 PM by Carlyn Maw -
Changed lines 52-53 from:
to:
February 06, 2007, at 09:52 PM by Carlyn Maw -
Changed lines 52-54 from:
to:
February 06, 2007, at 09:51 PM by Carlyn Maw -
Changed lines 52-53 from:
to:
January 30, 2007, at 10:37 PM by David A. Mellis -
Deleted line 46:
December 26, 2006, at 06:57 AM by David A. Mellis -
Added line 20:
December 07, 2006, at 01:04 PM by David A. Mellis - adding link to todbot's C serial port code.
Changed lines 69-70 from:
to:
  • Arduino + C
December 02, 2006, at 05:43 PM by David A. Mellis -
Added line 1:
November 21, 2006, at 05:13 PM by David A. Mellis -
Added line 64:
  • Arduino + MaxMSP
Changed lines 67-68 from:
to:
  • Arduino + Ruby
November 18, 2006, at 09:42 AM by David A. Mellis -
Changed lines 20-21 from:
to:
Added line 24:
November 09, 2006, at 10:10 PM by Carlyn Maw -
Changed lines 50-51 from:
to:
November 06, 2006, at 05:49 PM by David A. Mellis -
Changed lines 37-38 from:
  • MIDI Output (from ITP physcomp labs)
to:
  • MIDI Output (from ITP physcomp labs) and from Spooky Arduino
November 04, 2006, at 07:25 PM by David A. Mellis -
Deleted line 53:
Deleted line 54:
November 04, 2006, at 07:24 PM by David A. Mellis -
Added lines 51-58:

Other Arduino Examples

  • Example labs from ITP

  • Examples from Tom Igoe

  • Examples from Jeff Gray
Deleted lines 83-89:

Other Arduino Examples

  • Example labs from ITP

  • Examples from Tom Igoe.

  • Examples from Jeff Gray.
November 04, 2006, at 07:24 PM by David A. Mellis -
Changed lines 50-51 from:

Example labs from ITP

to:
Changed lines 77-78 from:

Also, see the examples from Tom Igoe and those from Jeff Gray.

to:
  • Example labs from ITP

  • Examples from Tom Igoe.

  • Examples from Jeff Gray.
November 04, 2006, at 07:23 PM by David A. Mellis -
Changed line 77 from:

Other Arduino Sites

to:

Other Arduino Examples

Deleted lines 79-81:

Do you need extra help?

Is there a sensor you would like to see characterized for Arduino, or is there something you would like to see published in this site? Refer to the forum for further help.

November 04, 2006, at 05:38 PM by David A. Mellis -
Changed lines 3-4 from:

Here you will find a growing number of examples and tutorials for accomplishing specific tasks or interfacing to other hardware and software with Arduino. For instructions on getting the board and environment up and running, see the Arduino guide?.

to:

Here you will find a growing number of examples and tutorials for accomplishing specific tasks or interfacing to other hardware and software with Arduino. For instructions on getting the board and environment up and running, see the Arduino guide.

November 04, 2006, at 05:37 PM by David A. Mellis - lots of content moved to the new guide.
Deleted lines 52-67:

The Arduino board

This guide to the Arduino board explains the functions of the various parts of the board.

The Arduino environment

This guide to the Arduino IDE (integrated development environment) explains the functions of the various buttons and menus.

The libraries page explains how to use libraries in your sketches and how to make your own.

Video Lectures by Tom Igoe

Watch Tom introduce Arduino. Thanks to Pollie Barden for the great videos.

Course Guides

todbot has some very detailed, illustrated tutorials from his Spooky Projects course: 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)

Deleted lines 82-87:

External Resources

Instant Soup is an introduction to electronics through a series of beautifully-documented fun projects.

Make magazine has some great links in its electronics archive.

hack a day has links to interesting hacks and how-to articles on various topics.

November 04, 2006, at 05:17 PM by David A. Mellis -
Changed lines 3-4 from:

Here you will find a growing number of examples and tutorials for accomplishing specific tasks or interfacing to other hardware and software with Arduino. For instructions on getting the board and environment up and running, see the Howto.

to:

Here you will find a growing number of examples and tutorials for accomplishing specific tasks or interfacing to other hardware and software with Arduino. For instructions on getting the board and environment up and running, see the Arduino guide?.

November 02, 2006, at 01:54 AM by Carlyn Maw -
Deleted line 49:
November 02, 2006, at 01:06 AM by Carlyn Maw -
Added line 50:
October 31, 2006, at 05:47 PM by Tod E. Kurt -
Changed lines 67-68 from:

todbot has some very detailed, illustrated tutorials from his Spooky Projects course: class 1 (getting started), class 2 (input and sensors), class 3 (communication, servos, and pwm).

to:

todbot has some very detailed, illustrated tutorials from his Spooky Projects course: 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)

October 22, 2006, at 07:52 PM by David A. Mellis -
Changed lines 1-4 from:

Learning to use Arduino

Here you will find a growing number of step by step guides on how to learn the basics of arduino and the things you can do with it. For instructions on getting the board and IDE up and running, see the Howto.

to:

Arduino Tutorials

Here you will find a growing number of examples and tutorials for accomplishing specific tasks or interfacing to other hardware and software with Arduino. For instructions on getting the board and environment up and running, see the Howto.

October 22, 2006, at 07:51 PM by David A. Mellis -
Changed lines 67-68 from:

todbot has some very detailed, illustrated tutorials from his Spooky Projects course: class 1 (getting started), class 2 (input and sensors).

to:

todbot has some very detailed, illustrated tutorials from his Spooky Projects course: class 1 (getting started), class 2 (input and sensors), class 3 (communication, servos, and pwm).

October 21, 2006, at 11:25 PM by David A. Mellis - adding links to todbot's class notes.
Added lines 66-68:

Course Guides

todbot has some very detailed, illustrated tutorials from his Spooky Projects course: class 1 (getting started), class 2 (input and sensors).

October 09, 2006, at 12:46 AM by David A. Mellis -
Changed lines 59-62 from:

This guide to the Arduino IDE? (integrated development environment) explains the functions of the various buttons and menus.

The libraries? page explains how to use libraries in your sketches and how to make your own.

to:

This guide to the Arduino IDE (integrated development environment) explains the functions of the various buttons and menus.

The libraries page explains how to use libraries in your sketches and how to make your own.

October 09, 2006, at 12:45 AM by David A. Mellis -
Changed lines 3-4 from:

Here you will find a growing number of step by step guides on how to learn the basics of arduino and the things you can do with it. For instructions on getting the board and IDE up and running, see the Howto?.

to:

Here you will find a growing number of step by step guides on how to learn the basics of arduino and the things you can do with it. For instructions on getting the board and IDE up and running, see the Howto.

October 09, 2006, at 12:38 AM by David A. Mellis -
Added lines 1-102:

Share