Explore how real electronics projects behave. Move the virtual person, change sensor readings, press switches and watch the circuit respond — just like an Arduino on your workbench.
These are simplified educational models, not safety-certified alarm systems or exact hardware emulators. Each project explains what its sensor, controller and output are doing.
20interactive projects
01 · MOTION
Motion-activated security light
A virtual person stays still, then moves through the PIR sensor's field of view. The LED and buzzer activate and remain on for a hold time after the last movement.
ROOM SIMULATION
PERSON
PIR
AREA CLEAR · SENSOR IDLE
PIR outputLOW · NO MOTION
LED / buzzerOFF
What to notice
When the room is still, the PIR output is LOW. Movement triggers a HIGH signal and starts the output hold timer.
Real PIR modules detect changes in infrared energy; they do not identify a person. The simulation uses a simplified retriggerable timer.
02 · DIGITAL I/O
Digital read & digital write
Press a tactile push button connected to a digital input. The Arduino reads HIGH or LOW and writes the matching state to an LED output.
ARDUINO INPUT / OUTPUT
D2 · INPUTLOW · 0
D13 · OUTPUTLOW · 0
LED
Button stateRELEASED
Arduino outputLED OFF
What to notice
Digital signals have two logic states. With the pull-down model used here, a pressed button reads HIGH (1); released reads LOW (0).
Hardware note: use an INPUT_PULLUP wiring pattern or a correctly wired external pull-down resistor to avoid a floating input.
03 · ANALOG & PWM
Potentiometer to LED dimmer
Turn a virtual potentiometer. The analog input changes from 0–1023 and the Arduino maps it to a PWM output from 0–255 to dim an LED.
10 kΩ POTENTIOMETER
PWM LED
analogRead()512
analogWrite()128 / 255
LED brightness50%
What to notice
The potentiometer provides a variable voltage. The Arduino ADC converts it to a number; PWM then controls perceived LED brightness.
On common Arduino Uno boards, analogRead is 10-bit (0–1023) and analogWrite uses an 8-bit PWM value (0–255) on supported pins.
04 · FIRE SENSOR
Flame detection alarm
Change the flame intensity in the room. A flame sensor detects stronger infrared light, then the Arduino activates an alarm output.
FLAME SENSOR
NO FLAME DETECTED
Sensor outputLOW · CLEAR
AlarmOFF
What to notice
Below the threshold, the simulated flame sensor reports a clear condition. Raise the intensity to trigger the alarm.
This is a learning simulation only. Real fire detection needs certified smoke/heat systems and proper installation. Never test with an open flame.
05 · MQ-2 GAS
Gas & smoke leak alarm
Simulate the gas concentration around an MQ-2 sensor. Watch the analogue reading rise and the buzzer respond when the set threshold is crossed.
MQ-2
LOW
AIR QUALITY NORMAL
ADC reading (illustrative)51 / 1023
BuzzerOFF
What to notice
The simulated reading is below the alarm threshold. MQ-2 sensors need warm-up and calibration; raw ADC values are not universal ppm measurements.
Educational model only. Do not use this simulation or an uncalibrated MQ-2 module as a life-safety gas detector.
06 · WATER PUMP
Automatic tank filling pump
A level sensor monitors a water tank. When the level falls below the start point, the pump fills it and stops at the upper level.
FULL
LOW
PUMP
TANK LEVEL OK · PUMP OFF
Pump stateOFF
What to notice
The pump uses two thresholds (hysteresis) to avoid rapid switching around one level. The tank level slider represents the sensor input.
Real pumps require a correctly rated relay/contactor or driver, flyback/surge protection where appropriate, and dry-run protection.
07 · SOLENOID VALVE
Sensor-controlled smart valve
Simulate a soil-moisture sensor controlling a water valve. Dry soil opens the valve; sufficiently wet soil closes it.
SOIL
SOIL MOISTURE OK · VALVE CLOSED
Valve stateCLOSED
What to notice
The controller opens the valve when soil moisture falls below the threshold and closes it after the soil becomes wet enough.
Real irrigation systems should include maximum watering time, leak detection and a manual shut-off.
08 · DHT + LCD
Weather station with 16×2 LCD
Change the virtual room temperature and humidity. A DHT sensor sends readings to the Arduino, which updates a character LCD.
COMFORTABLE ROOMVIRTUAL ENVIRONMENT
Temp: 26.0 C
Humidity: 55 %
16 × 2 CHARACTER LCD
DHT22
SensorDHT22
LCD lines16 × 2
What to notice
The sensor readings are formatted into two 16-character display lines. Try high temperature and humidity to see the environment status change.
DHT22 is used in this simulation; a DHT11 has a narrower range and lower resolution.
09 · LDR
Automatic night light
An LDR changes resistance with light. The Arduino reads the divider voltage and switches a lamp on when the environment gets dark.
LDR
DAYLIGHT · LIGHT OFF
ADC reading (model)819 / 1023
Night lightOFF
What to notice
Bright surroundings produce a high ADC reading in this chosen divider arrangement. Reduce the light level to turn on the lamp.
The ADC direction depends on which side of the voltage divider contains the LDR.
10 · SEQUENCING
Traffic light controller
Run a simple timed traffic light sequence. Learn how digital outputs and timing states coordinate multiple LEDs.
REDSTOP · 5s
Controller stateRED · STOP
What to notice
The controller cycles through red, green and yellow states. A real sketch uses millis() or a carefully designed timer rather than blocking delays for more responsive systems.
11 · SERVO
Automatic door opener
A proximity sensor detects someone approaching. The servo opens the door, waits, then closes it when the area is clear.
SERVO
DOOR CLOSED · STANDBY
Servo angle0° · CLOSED
SensorCLEAR
What to notice
The sensor is clear and the servo holds the door closed. Trigger detection to command the servo to 90 degrees.
Use a suitable power supply for real servos; do not power larger servos directly from an Arduino I/O pin.
12 · LEVEL ALARM
Water tank overflow alarm
Use a level sensor to detect when a tank is nearly full. The buzzer warns the user before overflow occurs.
MAX
LEVEL NORMAL · BUZZER OFF
AlarmOFF
What to notice
The alarm activates when the water level reaches the configured high-level threshold.
13 · ROBOTICS
Ultrasonic servo radar
Sweep an ultrasonic sensor across an area. Move the virtual target and servo angle to see when an echo is detected and how distance changes.
TOP-DOWN RADAR VIEW
AIM THE SENSOR AT THE TARGET
Echo—
Servo90°
Range—
What to notice
The sensor only sees the target when its beam points close enough to the target bearing.
Real radar-style scanners use a servo to aim an ultrasonic sensor; the display is a simplified angle-and-range model.
14 · DISTANCE
Ultrasonic parking assistant
Move a virtual car toward a wall. The measured distance changes the warning state and the simulated buzzer's beep rate.
REVERSE PARKING VIEW
CAR
SAFE DISTANCE
Echo time5.83 ms
WarningSAFE
BeeperOFF
What to notice
At a large distance, no warning is needed. As the car approaches, the warning changes from slow beeps to a continuous alert.
Echo time uses the approximate round-trip speed of sound at room temperature.
15 · CONTROL
Temperature-controlled fan
Adjust the room temperature and thermostat setpoint. The controller increases fan PWM as the temperature rises above the setpoint.
ROOM COOLING SIMULATION
28°CROOM
FAN IDLE
PWM output30%
Motor stateON
CoolingLOW
What to notice
The controller compares measured temperature with the setpoint and adjusts fan speed using a proportional output.
Illustrative control model: real fan drivers need a suitable transistor or MOSFET and a flyback diode for brushed DC motors.
16 · ROBOTICS
Two-sensor line follower
Switch the left and right infrared line sensors between white floor and black line. Watch the controller choose forward, left, right or stop.
ROBOT TRACK · TOP VIEW
BOTH SENSORS ON WHITE · STOP
Left sensor sees black line?NO · WHITE
Right sensor sees black line?NO · WHITE
Left motor0%
ActionSTOP
Right motor0%
What to notice
This basic two-sensor truth table is a teaching model. A real robot may need calibrated thresholds and more sensors for smoother curves.
Assumes active-HIGH sensor flags mean black line detected; some modules have inverted digital outputs.
17 · STEPPER MOTOR
Stepper motor positioning
Set a target angle and see how direction, step pulses and microstepping position a stepper motor.
SHAFT POSITION0°HOLDING
READY
Required pulses50
What to notice
A 1.8° motor needs 50 full steps to rotate 90°.
Real accuracy depends on torque, driver current, acceleration and missed-step prevention.
18 · IR REMOTE
Infrared remote control
Press a virtual remote button and watch an IR receiver decode the command and map it to an action.
VIRTUAL REMOTE
WAITINGIR RECEIVER
POINT REMOTE AT RECEIVER
Decoded commandNONE
Example HEX code—
Mapped actionNo action
What to notice
The receiver decodes modulated infrared pulses; your sketch decides what each command does.
Codes are illustrative. Actual values depend on remote protocol and manufacturer.
19 · BATTERY MONITOR
Battery voltage monitor
Adjust battery voltage and load current. Explore a voltage-divider ADC reading and a low-voltage warning.
70%
BATTERY VOLTAGE11.7 VNORMAL
BATTERY LEVEL NORMAL
ADC (5 V ref)798
Divider output3.90 V
Load power11.7 W
What to notice
A 3:1 divider scales battery voltage for the analog input. Voltage-based charge is only a rough estimate.
Never connect a battery directly to an Arduino analog pin. Use a correctly rated divider and common ground.
20 · ROTARY ENCODER
Wheel encoder speed counter
Change motor RPM and encoder resolution to calculate pulse frequency and pulse period.
WHEEL
ROTATIONAL SPEED120 RPMWHEEL TURNING
PULSES DETECTED
Frequency40 Hz
Pulse period25 ms
Counts / sec40
What to notice
At 120 RPM and 20 pulses/revolution, the encoder produces 40 pulses per second.
Quadrature decoding can provide more counts and direction information.
MORE IDEAS FOR THE WORKBENCH
This is only the beginning.
We can keep expanding into robotics, control systems, power electronics and practical home automation.