Skip to content
Engineering · Maker

Electronics & Arduino

Write an Arduino sketch and run it on a 3D board — no hardware needed.

Also on your phone · Learn Electronics & Arduino
Loading 3D lab…

Report a mistake

What is wrong?
0 / 2000 · at least 10 characters
Sent along with your report
  • Page
  • About Electronics & Arduino · electronics
Plus your browser type. Reports go to our support system; see the privacy notice.
The course

18 worlds · 264 lessons

World 1 · Foundations

FREEElectricity from absolute zero
  1. 01What is electricity?Electrons, charge and flow · 5 min
  2. 02Voltage, Current, ResistanceThe three core quantities · 7 min
  3. 03Your first circuitBattery → resistor → LED · 7 min
  4. 04Ohm’s Law in practiceV = I × R · 8 min
  5. 05Reading resistor colorsDecode the color bands · 6 min
  6. 06Inside the atomProtons, neutrons and free electrons · 6 min
  7. 07Electric chargePositive, negative and attraction · 5 min
  8. 08Conductors vs insulatorsWhat lets current through · 6 min
  9. 09Current, up closeAmps and the direction of flow · 6 min
  10. 10Voltage, up closeThe pressure that drives current · 6 min
  11. 11Resistance, up closeOpposing the flow · 6 min
  12. 12Rearranging Ohm’s LawSolve for V, I or R · 7 min
  13. 13The closed loopWhy a circuit must complete · 5 min
  14. 14Batteries & cellsWhere the voltage comes from · 6 min
  15. 15Cells in seriesStacking voltage · 6 min
  16. 16The LEDA one-way light · 6 min
  17. 17Current-limiting resistorsProtecting the LED · 7 min
  18. 18The resistor color codeReading every band · 7 min
  19. 19Power & wattsHow fast energy is used · 7 min
  20. 20Energy & your billWatts over time · 6 min
  21. 21Short circuitsWhen current finds a shortcut · 6 min
  22. 22Open circuitsA break in the path · 5 min
  23. 23SwitchesOpening and closing on demand · 5 min
  24. 24Ground & referenceThe zero-volt baseline · 6 min
  25. 25Schematic symbolsThe language of circuits · 6 min
  26. 26Using a multimeterVolts, amps and ohms · 7 min
  27. 27Ammeter vs voltmeterSeries and parallel meters · 6 min
  28. 28AC vs DCTwo kinds of current · 6 min
  29. 29FrequencyCounting the cycles · 6 min
  30. 30Static electricityCharge at rest · 5 min
  31. 31ElectromagnetismCurrent makes magnetism · 6 min
  32. 32A taste of parallelMore than one path · 6 min

World 2 · Circuits

PROBuild and combine components
  1. 01Series vs ParallelTwo ways to wire components · 6 minPRO
  2. 02The breadboardPrototype without soldering · 5 minPRO
  3. 03Switches & buttonsControlling the flow · 5 minPRO
  4. 04The voltage dividerMake any voltage you need · 6 minPRO
  5. 05Series circuits in depthOne path, shared current · 6 minPRO
  6. 06Parallel circuits in depthMany paths, shared voltage · 7 minPRO
  7. 07Choosing series or parallelWhen to use which · 6 minPRO
  8. 08Building on a breadboardFrom schematic to board · 6 minPRO
  9. 09Momentary vs latchingTwo kinds of switch · 5 minPRO
  10. 10Pull-up resistorsDefaulting an input HIGH · 6 minPRO
  11. 11Pull-down resistorsDefaulting an input LOW · 5 minPRO
  12. 12Voltage divider mathSolving for Vout · 7 minPRO
  13. 13The potentiometerAn adjustable divider · 6 minPRO
  14. 14The LDR (light sensor)Resistance that follows light · 6 minPRO
  15. 15The thermistor (temp sensor)Resistance vs temperature · 6 minPRO
  16. 16CapacitorsStoring charge · 7 minPRO
  17. 17What capacitors are forSmoothing and timing · 6 minPRO
  18. 18The diodeA one-way valve · 6 minPRO
  19. 19The LED as a diodeLight from one-way current · 6 minPRO
  20. 20Rectification introTurning AC into DC · 6 minPRO
  21. 21Transistor as a switchA tiny signal controls a big load · 7 minPRO
  22. 22Transistor as amplifierMaking signals bigger · 7 minPRO
  23. 23The relayAn electrically-driven switch · 6 minPRO
  24. 24Logic gatesAND, OR, NOT · 7 minPRO
  25. 25Combining gatesNAND, NOR and beyond · 6 minPRO
  26. 26RC timingResistor + capacitor delays · 7 minPRO
  27. 27Current limiting in depthSizing the series resistor · 7 minPRO
  28. 28Kirchhoff’s voltage lawVoltages around a loop · 6 minPRO
  29. 29Kirchhoff’s current lawCurrents at a junction · 6 minPRO
  30. 30Measuring a dividerProbe Vout with a meter · 6 minPRO
  31. 31Decoupling capacitorsKeeping the rail clean · 6 minPRO
  32. 32Troubleshooting a dead circuitA debugging checklist · 7 minPRO

World 3 · Arduino 101

PROWrite code that controls hardware
  1. 01Meet Arduino UnoThe board and its pins · 5 minPRO
  2. 02Blink — your first sketchTurn an LED on and off · 8 minPRO
  3. 03Digital output: traffic lightDrive three LEDs in sequence · 10 minPRO
  4. 04Digital input: a buttonReact to the real world · 10 minPRO
  5. 05The Serial MonitorPrint and debug · 8 minPRO
  6. 06The Arduino IDE & sketchWhere code becomes hardware · 6 minPRO
  7. 07Blink speed & timingdelay() controls the beat · 7 minPRO
  8. 08LED_BUILTINThe onboard LED constant · 6 minPRO
  9. 09Two LEDs alternatingBack-and-forth flasher · 8 minPRO
  10. 10Traffic light with helperReuse code with a function · 10 minPRO
  11. 11LED chase (array + for)Light pins one after another · 10 minPRO
  12. 12Knight Rider scannerBounce the light back · 11 minPRO
  13. 13Variables & mathStore and compute values · 8 minPRO
  14. 14if / else decisionsBranch on a condition · 8 minPRO
  15. 15for loopsRepeat a known number of times · 8 minPRO
  16. 16while loopsRepeat until a condition fails · 8 minPRO
  17. 17Writing functionsName a block of code · 9 minPRO
  18. 18Blink without delay (millis)Do many things at once · 11 minPRO
  19. 19Button controls an LEDInput drives output · 9 minPRO
  20. 20Why INPUT_PULLUP?Floating pins & pull resistors · 7 minPRO
  21. 21Toggle on each pressEdge detection basics · 11 minPRO
  22. 22Debouncing a buttonTame the bounce · 8 minPRO
  23. 23Button press counterCount and report · 10 minPRO
  24. 24Two buttons, up & downMultiple inputs · 11 minPRO
  25. 25Serial: print vs printlnSame line or new line · 7 minPRO
  26. 26Serial number basesDEC, HEX & BIN · 8 minPRO
  27. 27Random blinksUnpredictable timing · 8 minPRO
  28. 28Digital vs analog pinsKnow your pin types · 7 minPRO
  29. 29do / while loopsRun at least once · 8 minPRO
  30. 30Capstone: non-blocking traffic lightPut it all together · 12 minPRO

World 4 · Arduino Projects

PROPWM, sensors, servos & more
  1. 01Fading an LED (PWM)analogWrite & duty cycle · 10 minPRO
  2. 02Reading a potentiometeranalogRead & map · 10 minPRO
  3. 03Servo controlMove a motor to an angle · 12 minPRO
  4. 04Buzzer & toneMake some noise · 9 minPRO
  5. 05Automatic night-lightSense light, react · 12 minPRO
  6. 06How PWM really worksDuty cycle & average voltage · 8 minPRO
  7. 07Breathing LEDSmooth fade with sine · 10 minPRO
  8. 08RGB LED colour mixingThree channels, any colour · 11 minPRO
  9. 09RGB rainbow fadeSmoothly cycle the colour wheel · 12 minPRO
  10. 10Mood lampRandom RGB colours · 9 minPRO
  11. 11Inside a servoPulse width = angle · 8 minPRO
  12. 12Servo sweepPan back and forth · 9 minPRO
  13. 13Smooth servo steeringPot → angle, with easing · 11 minPRO
  14. 14Play a melodyNotes & durations in arrays · 12 minPRO
  15. 15Police sirenSweeping tone alarm · 9 minPRO
  16. 16Reaction-time gameButton + LED + millis · 13 minPRO
  17. 17Serial bar meterVisualise a value with text · 10 minPRO
  18. 18How analog sensors workResistance → voltage → number · 8 minPRO
  19. 19Light-level loggerStream readings to Serial · 9 minPRO
  20. 20Light thereminWave your hand, change the pitch · 11 minPRO
  21. 21Reading temperatureTMP36 → degrees Celsius · 11 minPRO
  22. 22ThermostatTemp → heater LED, with hysteresis · 12 minPRO
  23. 23DC motor speed controlPWM a motor with the pot · 10 minPRO
  24. 24Smart fan controllerTemperature → fan speed · 12 minPRO
  25. 25Ultrasonic distancePing-echo ranging · 11 minPRO
  26. 26Parking sensorCloser = faster beeps · 13 minPRO
  27. 27Radar sweepServo scans, reports distance · 13 minPRO
  28. 28Pedestrian crossingTraffic light + request button · 13 minPRO
  29. 29Two-button dimmerUp / down brightness · 11 minPRO
  30. 30Combination lockA secret button sequence · 14 minPRO

World 17 · Build Projects

PROGuided builds: wire a real device step by step, then make it run
  1. 01Turn On Your First LEDOne LED, one line of code · 4 minPRO
  2. 02Your First BlinkOn, off, repeat · 4 minPRO
  3. 03Traffic LightRed, yellow, green — one timed cycle · 12 minPRO
  4. 04Distance AlarmUltrasonic echo → centimetres → alarm · 15 minPRO
  5. 05Night LightLight sensor → PWM brightness · 14 minPRO
  6. 06Morse BeaconLED + buzzer timing pattern · 10 minPRO
  7. 07Candle FlickerRandom PWM glow · 8 minPRO
  8. 08Heartbeat LEDExpressive PWM timing · 8 minPRO
  9. 09RGB Mood LampThree PWM channels, many colors · 12 minPRO
  10. 10Fan Speed ControllerPotentiometer → PWM motor · 12 minPRO
  11. 11Servo GaugeAnalog dial → servo angle · 13 minPRO
  12. 12Temperature WarningTemperature sensor → alert · 15 minPRO
  13. 13Plant Water MeterSoil dial → status LEDs · 13 minPRO
  14. 14Sunrise AlarmPWM fade + buzzer cue · 12 minPRO
  15. 15Parking AssistantUltrasonic distance → beep rate · 16 minPRO
  16. 16Button-Controlled LampDigital input → digital output · 10 minPRO
  17. 17Dimmer KnobPotentiometer → PWM brightness · 11 minPRO
  18. 18DoorbellButton → buzzer tone · 11 minPRO
  19. 19Breathing LEDPWM ramps with a for loop · 12 minPRO
  20. 20Light ThereminLight sensor → buzzer pitch · 13 minPRO
  21. 21Alternating BlinkersTwo LEDs, always opposite · 10 minPRO
  22. 22Cooling FanTemperature → PWM motor · 14 minPRO
  23. 23Barrier GateButton → servo position · 13 minPRO
  24. 24Distance ThereminEcho time → distance → pitch · 12 minPRO
  25. 25LCD ThermometerDHT22 → LCD readout · 16 minPRO
  26. 26Electronic Dicerandom() → segment patterns · 15 minPRO
  27. 27NeoPixel Level MeteranalogRead → how many pixels · 14 minPRO
  28. 28Stepper Seconds HandStepper.h, steps per revolution · 15 minPRO
  29. 29Joystick Camera PanAnalog stick → rate control · 15 minPRO
  30. 30Volume KnobEncoder clicks → counter → display · 18 minPRO
  31. 31Desk ClockDS3231 RTC → LCD · 18 minPRO
  32. 32Greenhouse LoggerDHT22 + Wi-Fi → POST /log · 18 minPRO
  33. 33Remote LampWi-Fi polling → GET /switch · 15 minPRO