Learn Arduino: learn electronics by building in 3D
Learn Arduino is a free 3D electronics lab that runs in your browser. You get an UNO-compatible board, a breadboard and real parts (LEDs, resistors, buttons, a potentiometer, a buzzer, sensors, motors and an OLED screen). You wire them with jumper wires, write Arduino code, and run it. The code is compiled by the real AVR compiler and runs on a simulated ATmega328P, so what you see is what a real board would do.
Mistakes are safe here. Forget the resistor and the LED burns, with a puff of smoke, and the lab tells you why. Short 5V to GND and you see it happen. Nothing costs money and nothing gets damaged, so you can try things before you buy a single part.
What you can do in the lab
- Explore the board in 3D: tap a part to learn what it does and which pins it uses.
- Build circuits on a breadboard and watch the current flow through the wires.
- Write and run real Arduino code, and read what it prints in the Serial Monitor.
- See your circuit as a schematic, and edit it like a real schematic editor.
- Follow guided projects, from Blink to a parking sensor and a plant monitor.
Read all 49 tutorials. Every project tutorial has the same circuit live in 3D inside the page.
Projects
Step-by-step builds: the parts, the wiring, the code line by line, and what to try next.
- Arduino UNO board explained — the pins, the LEDs and your first sketch
A beginner's tour of the Arduino UNO: what each pin and LED does, setup() and loop(), and a first sketch that blinks the L LED. Try it live in 3D. - Blink an LED with Arduino — your first circuit, explained
Make an LED blink with an Arduino UNO: the wiring, why the LED needs a resistor, and the code line by line. Try it live in 3D — no hardware needed. - Push button with Arduino — digitalRead() and the pull-down resistor
Wire a push button to an Arduino UNO, read it with digitalRead(), and learn why a 10 kΩ pull-down resistor stops the pin floating. Try it live in 3D. - Potentiometer with Arduino — analogRead(), map() and a dimming LED
Read a potentiometer on A0 with analogRead(), scale it with map(), and dim an LED with analogWrite() PWM. Wiring, code and math explained. Try it live in 3D. - RGB LED with Arduino — mix any colour with three PWM pins
Wire a common-cathode RGB LED to an Arduino UNO, mix colours with analogWrite() on pins 9, 10 and 11, and write a setColor() function. Try it live in 3D. - LDR light sensor with Arduino — build an automatic night light
Build an Arduino night light: an LDR and a 10 kΩ resistor make a voltage divider on A0, and an LED glows brighter as the room gets darker. Try it live in 3D. - Measure distance with Arduino and the HC-SR04 ultrasonic sensor
How the HC-SR04 ultrasonic sensor measures distance with sound: wiring to an Arduino UNO, the pulseIn() code explained, and the math. Try it live in 3D. - Play a tune with an Arduino buzzer — tone(), arrays and Ode to Joy
Make a passive buzzer play Ode to Joy with an Arduino UNO: how tone() turns frequencies into notes, and how arrays and a loop hold a tune. Try it live in 3D. - Arduino piano with 8 buttons and a buzzer — INPUT_PULLUP explained
Build an 8-key Arduino piano: buttons with INPUT_PULLUP (no resistors), a for loop that scans the keys, and tone() on a buzzer. Try it live in 3D. - Control a DC motor with Arduino — TIP120 transistor and PWM speed
Drive a DC motor from an Arduino UNO with a TIP120 transistor and a flyback diode, and set its speed with PWM. The real numbers, explained. Try it live in 3D. - Arduino thermostat with a TMP36 sensor — a fan that turns itself on
Build an Arduino thermostat: read a TMP36 temperature sensor, turn volts into °C, and switch a fan with hysteresis. The code explained. Try it live in 3D. - Servo motor with Arduino — sweep an SG90 from 0° to 180°, explained
Control an SG90 servo with an Arduino UNO: three wires, the Servo library, and a sweep from 0° to 180° with for loops, explained. Try it live in 3D. - Stepper motor with Arduino — a 28BYJ-48 prize wheel that stops exactly
Drive a 28BYJ-48 stepper motor with a ULN2003 board and an Arduino UNO: exact steps, random() prizes and a push button, explained. Try it live in 3D. - Plant watering monitor with Arduino — soil sensor and OLED screen
Build a smart plant monitor: a capacitive soil-moisture sensor, map() to a percentage, and a 128×64 I²C OLED showing a bar and a mood. Try it live in 3D. - Force sensor with Arduino — a strength tester with a servo needle
Build a fairground strength tester: an FSR force sensor in a voltage divider, a servo needle that holds your best with millis(), and a bell. Try it live in 3D. - Arduino parking sensor — HC-SR04 and a traffic light that says STOP
Build an Arduino parking sensor: an HC-SR04 measures distance and a traffic-light module shows green, yellow or red. Code explained. Try it live in 3D.
Components
How each part works, its pins, and the mistakes beginners make with it.
- Arduino UNO pinout explained — digital, analog, PWM and power pins
Every pin on the Arduino UNO explained simply: D0–D13, the ~ PWM pins, A0–A5, 5V, 3.3V and GND, and how much current each can give. Try it live in 3D. - How an LED works — anode, cathode and why it needs a resistor
What an LED is, which leg is + and which is −, why every LED needs a resistor, and how to work out the right value. With an Arduino example — try it live in 3D. - What is a resistor? How it limits current in Arduino circuits
What a resistor does, how Ohm's law picks its value, and its three jobs in Arduino projects: protect an LED, pull a pin down, make a divider. Try it in 3D.$ - How a push button works with Arduino — legs, pull-down and code
How a 4-leg push button works, which legs are joined inside, why it needs a pull-down resistor or INPUT_PULLUP, and the Arduino code. Try it in 3D.$ - What is a potentiometer? How a knob talks to your Arduino
How a potentiometer works inside, what its three legs do, and how analogRead() turns the knob into 0–1023 to dim an LED. Try it live in 3D.$ - How an RGB LED works — common cathode, wiring and colour mixing
How an RGB LED mixes red, green and blue into any colour, which leg is which, why each colour needs its own resistor, and the Arduino code. Try it in 3D.$ - Passive buzzer explained — how tone() plays notes on Arduino
How a passive piezo buzzer makes sound, active vs passive, the frequencies of musical notes, and Arduino code with tone() to play a tune. Try it in 3D.$ - LDR light sensor explained — how a photoresistor works with Arduino
How an LDR (photoresistor) changes with light, why it needs a 10 kΩ resistor as a voltage divider, and the readings to expect on A0. Try it live in 3D.$ - TMP36 temperature sensor explained — pinout, formula and Arduino code
How the TMP36 turns temperature into a voltage, which leg is which, the formula from analogRead() to °C, and why it burns if wired backwards. Try it in 3D.$ - Force-sensing resistor (FSR) explained — how to measure a press
How a force-sensing resistor works, why it needs a 10 kΩ resistor, what it reads from a light touch to a hard press, and the Arduino code. Try it in 3D. - What is a diode? The 1N4001 flyback diode for Arduino motors
What a diode does, how to find its band, and why a 1N4001 sits across every Arduino motor to catch the spike when it stops. Try it live in 3D. - TIP120 transistor explained: switch a motor with an Arduino pin
How a TIP120 Darlington transistor lets a 20 mA Arduino pin switch a 0.5 A motor: pins B, C, E, the 1 kΩ base resistor and the maths. Try it live in 3D. - Traffic light LED module with Arduino: wiring, pins and code
The traffic light LED module explained: red, yellow and green LEDs with built-in 220 Ω resistors, its 4 pins, the wiring and the code. Try it live in 3D. - DC motor explained: how it spins and how to drive it with Arduino
How a small DC hobby motor works inside, why it needs 0.5 A and a transistor, how PWM sets its speed and how to reverse it. Try it live in 3D with a fan. - How a servo works: SG90 pulses, angles and Arduino code explained
How an SG90 micro servo turns to any angle from 0° to 180°: what's inside, the 20 ms pulses, its three wires and the Servo library code. Try it live in 3D. - HC-SR04 ultrasonic sensor pinout: VCC, TRIG, ECHO and GND explained
The HC-SR04 ultrasonic sensor's 4 pins explained: power, the 10 µs trigger, the echo pulse and its timing, range and wiring to an Arduino. Try it live in 3D. - 28BYJ-48 stepper motor and ULN2003 driver with Arduino, explained
How the 28BYJ-48 stepper and its ULN2003 driver turn in exact steps: 2048 a turn, the four coils, the IN1–IN4 wiring and the Stepper library. Try it live in 3D. - SSD1306 OLED display with Arduino: I²C wiring and drawing code
The 0.96" SSD1306 OLED explained: 128 × 64 pixels over two I²C wires, the A4/A5 wiring, how pixels are stored and code to draw text and bars. Try it live in 3D. - Capacitive soil moisture sensor with Arduino: wiring and calibration
How a capacitive soil moisture sensor works, why wetter soil reads lower, its 3 pins, and how map() turns 520–260 into 0–100 %. Try it live in 3D with a plant.
Guides
The ideas behind every project: voltage and current, digital and analog, PWM, schematics.
- What is a breadboard? How the holes are connected (beginner guide)
A breadboard explained simply: which holes are joined inside, what the rails and the middle gap are for, and the 4 mistakes every beginner makes. With 3D pictures. - What is Arduino? A beginner's guide to the UNO and what it can build
What Arduino is, in plain words: the UNO board, the code you write, the things you can build, and how to start for free in your browser. Try it live in 3D. - Arduino code basics — setup(), loop(), variables, if and for explained
Learn Arduino code from zero: setup() and loop(), variables, pinMode, digitalWrite, delay, comments, semicolons, if and for, with real examples. Try it in 3D. - Voltage, current and resistance — Ohm's law for Arduino beginners
Voltage, current and resistance explained with water pipes, then Ohm's law (V = I × R) worked out for a real LED and resistor on an Arduino. Try it live in 3D. - Digital vs analog on Arduino — HIGH, LOW and analogRead 0–1023
Digital vs analog on the Arduino UNO: HIGH and LOW, why analogRead gives 0–1023, how to turn a reading into volts, and pins D0–D13 vs A0–A5. Try it live in 3D. - PWM explained — Arduino analogWrite, duty cycle and the ~ pins
PWM explained simply: what duty cycle means, how analogWrite 0–255 dims an LED and sets a motor's speed, and which UNO pins can do it (3, 5, 6, 9, 10, 11). - Arduino Serial Monitor explained — Serial.print, baud rate and input
How the Arduino Serial Monitor works: Serial.begin(9600), print vs println, reading what you type, and using it to find bugs fast. Try it live in 3D. - Pull-up and pull-down resistors on Arduino — and INPUT_PULLUP
Why a button input needs a pull-down or pull-up resistor: floating pins, the 10 kΩ pull-down, and Arduino's built-in INPUT_PULLUP, with code. Try it live in 3D. - Resistor color code — how to read the bands (220 Ω, 1 kΩ, 10 kΩ)
Read any resistor's color bands in seconds: the full color code table, 4-band and 5-band resistors, and worked examples for 220 Ω, 1 kΩ and 10 kΩ. - How to read a schematic — circuit symbols for Arduino beginners
Learn to read circuit diagrams: the symbols for resistor, LED, diode, switch, potentiometer, transistor, GND and VCC, plus net labels. Try it live in 3D. - Short circuits — how not to burn your Arduino (5 mistakes to avoid)
What a short circuit is, the 40 mA pin limit, why an LED needs a resistor, and 5 wiring mistakes that kill Arduinos. Make them safely in our 3D lab. - Arduino millis() vs delay() — do two things at once, without stopping
Why delay() freezes your Arduino, how millis() works, and the blink-without-delay pattern that lets one sketch blink, read buttons and beep at the same time. - Arduino map() and constrain() — turn any reading into the range you need
How Arduino map() rescales a sensor reading (0–1023 to 0–255, 0–180°, 0–100 %), the formula inside it, why it rounds down, and when to add constrain(). - Arduino variables and data types — int, long, float, bool, explained
Arduino variables for beginners: int, long, unsigned long, float, byte, bool and char, their ranges on the UNO, overflow, integer division, const and scope.
Based on open-source work by Ajeet Jain · hosted by Robotics Kits. Not affiliated with or endorsed by Arduino. “Arduino” is a trademark of Arduino SA. Board layout based on Arduino UNO Rev3 design files (CC BY-SA 4.0).