Blink:turn an LED on and off.Blink Without Delay:blinking an LED without usingthe delay() function.Button:use a pushbutton to control an LED.Debounce:read a pushbutton, filtering noise.Loop: controlling multiple LEDs with a loop and anarray.
Analog Input: use a potentiometer to control theblinking of an LED.Fading:uses an analog output (PWM pin) to fade anLED.Knock: detect knocks with a piezo element.Smoothing: smooth multiple readings of an analoginput.
These examples include code that allows the Arduino to talkto Processing sketches running on the computer. For moreinformation or to download Processing, seeprocessing.org.
ASCII Table:demonstrates Arduino's advanced serialoutput functions.Dimmer:move the mouse to change the brightnessof an LED.Graph: sending data to the computer and graphing itin Processing.Physical Pixel:turning on and off an LED by sendingdata from Processing.Virtual Color Mixer: sending multiple variables fromArduino to the computer and reading them inProcessing.
These are more complex examples for using particularelectronic components or accomplishing specific tasks. Thecode is included on the page.
This page contains explanations of some of the elements of the Arduino hardware and software and the concepts behindthem.Page Discussion
Sketch: The various components of a sketch and how they work.
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.PWM: How the analogWrite() function simulates an analog output using pulse-width modulation.Memory: The various types of memory available on the Arduino board.
Bootloader: A small program pre-loaded on the Arduino board to allow uploading sketches.