Questo sito non è ne attivo ne aggiornato, specialmente la pagina del download รจ ferma a 5 vesioni fa , utilizzate il sito in inglese finchè questo sito non sarà annunciato ufficialmente

Learning   Examples | Foundations | Hacking | Links

Examples

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.

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.

Digital I/O

  • Blink: turn an LED on and off.
  • 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.
  • Loop: controlling multiple LEDs with a loop and an array.

Analog I/O

  • ADXL3xx: Read an ADXL3xx accelerometer.
  • 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.

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.

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

Libraries

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

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.

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.

Stepper Library

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

Other Examples

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

Miscellaneous

Timing & Millis

Complex Sensors

Sound

Interfacing w/ Hardware