Wiring schematic
BLINKING A LED
Turn an LED on for one second, off for one second,
and repeat forever.
Circuit function description
Circuit code
Wiring schematic
POTENTIOMETER
Measure the position of a potentiometer and use it to
control the blink rate of an LED. Turn the knob to make
it blink faster or slower!
Circuit function description
Circuit code
Wiring schematic
RGB LED
Make an RGB LED display a rainbow of colors!
Circuit function description
Wiring schematic
MULTIPLE LEDs
Make eight LEDs dance. Dance LEDs, dance!
Loops a group of functions that make the LEDs turn
on and off in different patterns.
Circuit function description
Wiring schematic
PUSH BUTTONS
If no buttons are pressed, the LED is off. If either button is being pressed, light up the LED. But, if BOTH buttons are being pressed, flash the LED.
Circuit function description
Wiring schematic
PHOTORESISTOR
Use a photoresistor (light sensor) to control the brightness of a LED. The closer your finger is to the photoresistor, the brighter the LED gets.
Code function description
Wiring schematic
TEMPERATURE SENSOR
The TMP36 is an easy-to-use temperature sensor that outputs a voltage that's proportional to the ambient temperature. Connecting to the computer, it reads the voltage, and then converts to fahrenheit and celsius.
Code function description
Wiring schematic
SINGLE SERVO
Sweep a servo back and forth through its full range of motion.
A "servo", short for servomotor, is a motor that includes feedback circuitry that allows it to be commanded to move to specific positions. Larger servos are used extensively in robotics to control mechanical arms, hands, etc.
Code function description