Complete for freeBeginner to intermediate

Course 10

Hardware Lab: Electronics and Robotics

Every circuit in this course runs on a simulated Arduino Uno in Wokwi, a free in-browser simulator, so you can wire LEDs, buttons, potentiometers, light and temperature sensors, servos, and motors without buying parts or risking damage. You write real Arduino C++ (the same code runs unchanged on a physical Uno), and you check the electrical math first with short Python programs that show their real output and charts on the page: Ohm's law, LED resistor sizing, voltage dividers, and ADC conversions. Each module has notes that teach the ideas, a build-along that makes one working project step by step, and a practice set with hints and full solutions. Later modules drive motors safely through a driver, organize robot behavior as state machines with feedback, test robots under changing conditions, and finish with an obstacle-avoiding or line-following robot capstone. Tinkercad Circuits works as a backup simulator, and an optional starter kit lets you build everything for real with Arduino IDE 2.

Free completion promise: Every lesson can be finished for $0 in a web browser: circuits run in Wokwi's free simulator without an account, and the Python calculations show their output right on the lesson page. Hardware is optional, and no lesson requires buying anything.

What's inside

  • 24hand-written lessons
  • 24videos
  • 4step-through animations
  • 48diagrams, charts & live previews
  • 47quiz questions
  • 142code examples

Before you begin

Requirements & setup for Hardware Lab: Electronics and Robotics

Start with the complete free pathway below. Hardware, subscriptions, paid APIs, and cloud credits are never required.

Start here ยท free path

Your complete $0 setup

Every lesson can be finished for $0 in a web browser: circuits run in Wokwi's free simulator without an account, and the Python calculations show their output right on the lesson page. Hardware is optional, and no lesson requires buying anything.

$0 required

Setup checklist

0 of 15 complete

This checklist is a temporary setup aid and resets when the page reloads. Saved course progress begins in the setup lessons below.

  1. Everything required for this course is free. Paid software, APIs, cloud credits, GPUs, and physical equipment are optional.

    About 2 min
  2. Open wokwi.com in Chrome, Edge, Firefox, or Safari.

  3. Click the Arduino (Uno, Mega, Nano) tile, then choose Arduino Uno under Start from Scratch.

    About 5 min
  4. Paste the lesson's code into sketch.ino and, when given, its circuit into diagram.json.

    About 5 min
  5. Press the green play button to compile and run the simulation.

    About 5 min
  6. Every lesson works in Wokwi (free Arduino simulator in the browser), so Arduino Uno starter kit is never required.

  7. If you have Arduino Uno starter kit, use it where a lesson mentions it and compare your result with the lesson's.

    About 5 min
  8. If it doesn't match, finish that step in Wokwi (free Arduino simulator in the browser) and keep going.

    About 5 min
  9. Every lesson works in Wokwi (free Arduino simulator in the browser), so Extra sensors is never required.

  10. If you have Extra sensors, use it where a lesson mentions it and compare your result with the lesson's.

    About 5 min
  11. If it doesn't match, finish that step in Wokwi (free Arduino simulator in the browser) and keep going.

    About 5 min
  12. Every lesson works in Wokwi (free Arduino simulator in the browser), so 2WD robot chassis kit is never required.

  13. If you have 2WD robot chassis kit, use it where a lesson mentions it and compare your result with the lesson's.

    About 5 min
  14. If it doesn't match, finish that step in Wokwi (free Arduino simulator in the browser) and keep going.

    About 5 min
  15. Wokwi (free Arduino simulator in the browser): The official Blink project runs and the small L LED on the simulated Uno blinks about once per second. Arduino Uno starter kit: The official Blink project runs and the small L LED on the simulated Uno blinks about once per second. Extra sensors: The official Blink project runs and the small L LED on the simulated Uno blinks about once per second. 2WD robot chassis kit: The official Blink project runs and the small L LED on the simulated Uno blinks about once per second.

    About 5 min

Software

1 item

Wokwi (free Arduino simulator in the browser)

Wokwi simulates an Arduino Uno together with LEDs, resistors, buttons, potentiometers, sensors, servos, and more, right in a web browser. Nothing to install, nothing to buy, and nothing can burn out, so you can test every circuit before touching real parts. A free account is only needed to save projects online.

Course need
Wokwi (free Arduino simulator in the browser)
Free

Wokwi simulates an Arduino Uno together with LEDs, resistors, buttons, potentiometers, sensors, servos, and more, right in a web browser. Nothing to install, nothing to buy, and nothing can burn out, so you can test every circuit before touching real parts. A free account is only needed to save projects online. Every lesson is readable text with copyable code, keyboard-friendly quizzes and step-throughs, and videos with YouTube captions.

  1. Open wokwi.com in Chrome, Edge, Firefox, or Safari.
  2. Click the Arduino (Uno, Mega, Nano) tile, then choose Arduino Uno under Start from Scratch.
  3. Paste the lesson's code into sketch.ino and, when given, its circuit into diagram.json.
  4. Press the green play button to compile and run the simulation.

Hardware

3 items

Arduino Uno starter kit

Optional. A Uno (or compatible) board with a USB cable, breadboard, LEDs, resistors, buttons, and a potentiometer lets you build Modules 2 to 4 for real. Wokwi covers every lesson without it.

Optional
Wokwi (free Arduino simulator in the browser)
Free

Optional. Every lesson can be completed with Wokwi (free Arduino simulator in the browser); Arduino Uno starter kit is an extra for learners who have it. Optional equipment: every assessed outcome can be completed without it.

  1. Every lesson works in Wokwi (free Arduino simulator in the browser), so Arduino Uno starter kit is never required.
  2. If you have Arduino Uno starter kit, use it where a lesson mentions it and compare your result with the lesson's.
  3. If it doesn't match, finish that step in Wokwi (free Arduino simulator in the browser) and keep going.

Extra sensors

Optional. A photoresistor, a TMP36 temperature sensor, an ultrasonic distance sensor, or a soil moisture probe for building the sensor projects on a desk.

Optional
Wokwi (free Arduino simulator in the browser)
Free

Optional. Every lesson can be completed with Wokwi (free Arduino simulator in the browser); Extra sensors is an extra for learners who have it. Optional equipment: every assessed outcome can be completed without it.

  1. Every lesson works in Wokwi (free Arduino simulator in the browser), so Extra sensors is never required.
  2. If you have Extra sensors, use it where a lesson mentions it and compare your result with the lesson's.
  3. If it doesn't match, finish that step in Wokwi (free Arduino simulator in the browser) and keep going.

2WD robot chassis kit

Optional. A small chassis with two DC motors and wheels for building the capstone robot physically. Most kits also need a motor driver board and a AA battery pack.

Optional
Wokwi (free Arduino simulator in the browser)
Free

Optional. Every lesson can be completed with Wokwi (free Arduino simulator in the browser); 2WD robot chassis kit is an extra for learners who have it. Optional equipment: every assessed outcome can be completed without it.

  1. Every lesson works in Wokwi (free Arduino simulator in the browser), so 2WD robot chassis kit is never required.
  2. If you have 2WD robot chassis kit, use it where a lesson mentions it and compare your result with the lesson's.
  3. If it doesn't match, finish that step in Wokwi (free Arduino simulator in the browser) and keep going.

Accounts

Nothing required

No external account is needed for this course.

What you will be able to do

Learning outcomes

  • Apply Ohm's law and power calculations to size resistors and keep circuits within safe current and heat limits.
  • Lay out breadboard circuits with LEDs, buttons, and potentiometers, and find wiring faults by tracing nodes.
  • Read digital and analog sensors, convert raw readings to volts and real units, and smooth noisy signals.
  • Drive servos and DC motors safely through a motor driver with a separate power supply.
  • Organize robot behavior as a state machine with feedback, and test it under varied conditions.
  • Build, test, and present a simulated or physical obstacle-avoiding or line-following robot.

Build real work

Assignments & capstone

Free tools accepted

Sensor and button panel

Wire a pushbutton, a potentiometer, and a light or temperature sensor in Wokwi, then debounce the button, convert and smooth the sensor readings, and switch LEDs on thresholds using millis() timers instead of delay().

Every lesson can be finished for $0 in a web browser: circuits run in Wokwi's free simulator without an account, and the Python calculations show their output right on the lesson page. Hardware is optional, and no lesson requires buying anything. Submit your project file, or screenshots with descriptions, or a short demo.

Motor controller with a state machine

Build a Wokwi controller that drives a motor through driver signals with a speed ramp and a stop button, and runs a state machine with millis() timers, such as a sliding door that reverses when something blocks it.

Every lesson can be finished for $0 in a web browser: circuits run in Wokwi's free simulator without an account, and the Python calculations show their output right on the lesson page. Hardware is optional, and no lesson requires buying anything. Submit your project file, or screenshots with descriptions, or a short demo.

Final assessment

Obstacle-avoiding or line-following robot

Build a robot in Wokwi, or on a real chassis, that avoids obstacles or follows a line, with filtered sensor readings, motor control through driver signals, one case per state, and safety features like a stop button and a speed limit. Deliverables: Wokwi project with a circuit diagram and pin plan, State diagram that matches the code, Safety checklist, 10-test plan with logged results, Iteration report, and Two-minute demo.

Prerequisites & pacing

Skills assumed

  • Write simple programs with variables, if/else, and loops (in any language)
  • Comfortable using a web browser and copying text between windows

Recommended prior courses

These are advisory, not locks. If you already have the skills listed above, enroll directly.

Choose your pace

  • self paced: 10 weeks at 4 hours per week
  • weekly: 10 weeks at 4 hours per week

Part of this learning path

  • ๐Ÿค– Hardware and Robotics ยท step 2 of 4

    Go from first LED to a connected, sensing, machine-learning device โ€” every step has a browser simulator.

Course created by Zafir Shamsi.