Workshop Projects
Eight complete projects built around pins wired straight into the Uno's header.
About these projects
Several of these sketches plug parts straight into header sockets: a potentiometer across A0/A2/A4 and an LED between pins 11 and 12. Each article explains that arrangement. Always put a resistor in series with the LED, and give larger servos their own supply.
- Variable-Duty LED Blinking
A potentiometer sets how much of each one-second cycle an LED stays on, from 20% to 80%.BeginnerLEDResistorPotentiometerSerial - Analog Five-Position Servo Control
A potentiometer snaps a servo between five fixed angles: 0°, 45°, 90°, 135° and 180°.BeginnerServoPotentiometer - Seven-Segment Character Display: LUCE
Spell L-U-C-E on one common-cathode seven-segment digit using pins 2–9.IntermediateSeven-segmentResistor - Servo Stepping with a Pushbutton
Each button press turns a servo 45° further, wrapping from 180° back to 0°.BeginnerServoPushbutton - Five-Speed Symmetrical LED Blinking
A potentiometer picks one of five blink speeds; on and off times are always equal.BeginnerLEDResistorPotentiometerSerial - Custom Servo Angle Sequence
A button steps a servo through a list of angles stored in an array: 90, 45, 135, 0, 180.BeginnerServoPushbutton - Seven-Segment Character Display: LAOS
Spell L-A-O-S on a common-cathode seven-segment digit with the same pins as LUCE.IntermediateSeven-segmentResistor - Three-Zone Potentiometer Servo Indicator
A servo rests at 90° and repeatedly waves toward 45° or 135° depending on which third of the knob is selected.IntermediateServoPotentiometer