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 guide.


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.

Digital I/O

  • Blink: turn an LED on and off.
  • Button: use a pushbutton to control an LED.
  • Loop: controlling multiple LEDs with a loop and an array.

Analog I/O

  • Analog Input: use a potentiometer to control the blinking of an LED.
  • Fading: uses an analog output (PWM pin) to fade an LED.
  • Knock: detect knocks with a piezo element.
  • Smoothing: smooth multiple readings of an analog input.


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


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


Complex Sensors


Interfacing w/ Hardware

Other Arduino Tutorials