🤖 8 Easy Arduino Mini Projects for Kids
Build smart bins, a talking cane, a fire-fighting rig and more! Every project has a parts list, circuit wiring, simple steps and ready-to-upload code.
🧰 Before You Start
Common parts: Arduino Uno + USB cable, breadboard, jumper wires, 9V battery or power bank. Software: free Arduino IDE (arduino.cc). Choose Tools → Board → Arduino Uno, pick your port, then click Upload.
How sensors work (super simple):
- Ultrasonic sensor (HC-SR04): sends a sound ping and listens for the echo, like a bat! It tells how far something is.
- Servo motor: a motor that turns to an exact angle (0°–180°). Brown/black = GND, red = 5V, orange/yellow = signal.
- Relay + water pump: a relay is a switch controlled by Arduino so a small pump can run safely.
⚠️ Safety first: Ask an adult to help. Never use more than a tiny candle flame in Project 3, do it on a ceramic plate away from paper, and keep water away from the Arduino board.
1. WET & DRY Smart Dustbin
Level: MediumTime: 60 minThe bin checks if waste is wet or dry and tilts its flap to the right side. Great for learning about waste segregation!
Parts
Arduino Uno, HC-SR04, soil moisture sensor, SG90 servo, cardboard bin with two compartments and a tilting flap.
Circuit
| Part pin | Arduino |
|---|---|
| HC-SR04 VCC / GND | 5V / GND |
| HC-SR04 Trig / Echo | D9 / D10 |
| Moisture sensor VCC / GND / AO | 5V / GND / A0 |
| Servo signal (red / brown) | D6 (5V / GND) |
Steps
- Make a bin with a WET side (green) and DRY side (blue). Glue the servo under a flat flap in the middle.
- Put the ultrasonic sensor on top, facing the opening. Place the moisture probe where waste lands on the flap.
- Wire everything using the table, then upload the code.
- Hold waste in front of the sensor. The flap tilts left for wet and right for dry, then returns to the middle.
Code
#include <Servo.h>
Servo flap;
const int trig=9, echo=10, moist=A0;
long cm(){
digitalWrite(trig,LOW); delayMicroseconds(2);
digitalWrite(trig,HIGH); delayMicroseconds(10);
digitalWrite(trig,LOW);
return pulseIn(echo,HIGH)*0.034/2;
}
void setup(){
pinMode(trig,OUTPUT); pinMode(echo,INPUT);
flap.attach(6); flap.write(90);
}
void loop(){
long d=cm();
if(d>0 && d<15){ // waste detected
delay(800); // wait for it to settle
int m=analogRead(moist); // low value = WET
if(m<500) flap.write(30); // wet side
else flap.write(150); // dry side
delay(2500);
flap.write(90); // back to middle
}
delay(200);
}
💡 Try this: Change 500 to a bigger or smaller number to make the bin more or less sensitive.
2. Smart Ultrasonic Cane
Level: EasyTime: 45 minA helper stick that beeps faster when an obstacle is near, designed to help people who cannot see well.
Parts
Arduino Nano or Uno, HC-SR04, buzzer, 9V battery pack with switch, white PVC pipe, tape.
Circuit
| Part pin | Arduino |
|---|---|
| HC-SR04 VCC / GND | 5V / GND |
| Trig / Echo | D9 / D10 |
| Buzzer + / − | D8 / GND |
| Battery pack | VIN and GND (or USB power bank) |
Steps
- Tape the sensor near the bottom front of the PVC pipe, facing forward.
- Tape the Arduino and battery pack to the pipe handle area and wire the buzzer near the handle.
- Upload the code and switch on the battery.
- Walk slowly. The closer the object, the faster the beeps!
Code
const int trig=9, echo=10, buzz=8;
long cm(){
digitalWrite(trig,LOW); delayMicroseconds(2);
digitalWrite(trig,HIGH); delayMicroseconds(10);
digitalWrite(trig,LOW);
return pulseIn(echo,HIGH)*0.034/2;
}
void setup(){ pinMode(trig,OUTPUT); pinMode(echo,INPUT); pinMode(buzz,OUTPUT); }
void loop(){
long d=cm();
if(d>0 && d<100){
digitalWrite(buzz,HIGH); delay(40);
digitalWrite(buzz,LOW); delay(d*4); // near = fast beeps
} else delay(100);
}
3. Mini Fire-Fighting Water Sprayer
Level: MediumTime: 60 minA flame sensor spots fire and turns on a pump that sprays water through tubing, just like a mini fire engine.
Adult needed: use only a tiny tea-light flame on a ceramic plate. Keep paper and the electronics dry and far away.
Parts
Arduino Uno, flame sensor module, 5V relay module, small 5V/6V submersible pump, clear tubing, water cup, separate battery pack for the pump, wooden base.
Circuit
| Part pin | Arduino |
|---|---|
| Flame sensor VCC / GND / DO | 5V / GND / D2 |
| Relay VCC / GND / IN | 5V / GND / D7 |
| Pump | Battery + → relay COM, relay NO → pump +, pump − → battery − |
Steps
- Fix the flame sensor on the wooden rig, pointing at the plate.
- Put the pump in the water cup and aim the tubing nozzle at the plate.
- Wire the relay as shown so it switches the pump battery, not the Arduino pin directly.
- Upload, then ask an adult to light the tea-light. The pump sprays until the flame is out.
Code
const int flame=2, relay=7;
void setup(){
pinMode(flame,INPUT); pinMode(relay,OUTPUT);
digitalWrite(relay,HIGH); // most relay modules are OFF when HIGH
}
void loop(){
if(digitalRead(flame)==LOW){ // LOW = fire seen
digitalWrite(relay,LOW); // pump ON
} else {
digitalWrite(relay,HIGH); // pump OFF
}
delay(100);
}
💡 If the pump runs backwards, swap the relay logic (HIGH ↔ LOW) for your module.
4. Smart STOP Gate for a Toy Car
Level: EasyTime: 40 minWhen the toy car comes close, a red-and-white barrier lifts or lowers to STOP it, like a railway gate.
Parts
Arduino Uno, HC-SR04, SG90 servo, red-and-white card strip as the gate arm, toy car, optional red LED + 220Ω resistor.
Circuit
| Part pin | Arduino |
|---|---|
| HC-SR04 VCC / GND / Trig / Echo | 5V / GND / D9 / D10 |
| Servo signal (red / brown) | D6 (5V / GND) |
| Red LED (long leg via 220Ω) | D13 (short leg to GND) |
Steps
- Glue the gate arm on the servo horn and fix the servo on a stand beside the road.
- Place the sensor so it sees the car coming along the road.
- Upload the code. When the car is within 12 cm the gate swings to STOP and the LED turns on.
- When the car goes away, the gate opens again.
Code
#include <Servo.h>
Servo gate;
const int trig=9, echo=10, led=13;
long cm(){
digitalWrite(trig,LOW); delayMicroseconds(2);
digitalWrite(trig,HIGH); delayMicroseconds(10);
digitalWrite(trig,LOW);
return pulseIn(echo,HIGH)*0.034/2;
}
void setup(){
pinMode(trig,OUTPUT); pinMode(echo,INPUT); pinMode(led,OUTPUT);
gate.attach(6); gate.write(0); // gate open
}
void loop(){
long d=cm();
if(d>0 && d<12){ gate.write(90); digitalWrite(led,HIGH); } // STOP
else { gate.write(0); digitalWrite(led,LOW); } // GO
delay(150);
}
5. Automatic Liquid Dispenser
Level: MediumTime: 50 minPut a bowl under the nozzle and the dispenser pours liquid by itself. No touching needed, so it is perfect for hand wash or sanitiser (use water to test!).
Parts
Arduino Uno, IR proximity sensor, 5V relay, mini water pump, silicone tube, bottle or container, bowl, separate pump battery.
Circuit
| Part pin | Arduino |
|---|---|
| IR sensor VCC / GND / OUT | 5V / GND / D2 |
| Relay VCC / GND / IN | 5V / GND / D7 |
| Pump | Via relay COM and NO, with its own battery |
Steps
- Build a stand. Fix the tube so the nozzle points down into the bowl area.
- Mount the IR sensor just beside the nozzle, facing down.
- Test with plain water first. Upload the code.
- Place the bowl under the nozzle. The pump runs for 2 seconds and stops.
Code
const int ir=2, relay=7;
void setup(){
pinMode(ir,INPUT); pinMode(relay,OUTPUT);
digitalWrite(relay,HIGH); // pump OFF
}
void loop(){
if(digitalRead(ir)==LOW){ // bowl or hand detected
digitalWrite(relay,LOW); // pump ON
delay(2000); // pour time
digitalWrite(relay,HIGH); // pump OFF
delay(2000); // wait before next pour
}
}
6. Mini Smart Dustbin
Level: EasyTime: 40 minA touch-free dustbin! Bring a crumpled paper close and the lid opens by itself.
Parts
Arduino Uno, HC-SR04, SG90 servo, small box or bin with a lid, tape, popsicle stick for the lever.
Circuit
| Part pin | Arduino |
|---|---|
| HC-SR04 VCC / GND / Trig / Echo | 5V / GND / D9 / D10 |
| Servo signal (red / brown) | D6 (5V / GND) |
Steps
- Fix the servo at the back edge of the bin and connect the lid with a stick lever.
- Stick the sensor on the front, facing outwards.
- Upload the code and bring your hand close. The lid lifts, waits, and closes.
Code
#include <Servo.h>
Servo lid;
const int trig=9, echo=10;
long cm(){
digitalWrite(trig,LOW); delayMicroseconds(2);
digitalWrite(trig,HIGH); delayMicroseconds(10);
digitalWrite(trig,LOW);
return pulseIn(echo,HIGH)*0.034/2;
}
void setup(){
pinMode(trig,OUTPUT); pinMode(echo,INPUT);
lid.attach(6); lid.write(0); // closed
}
void loop(){
long d=cm();
if(d>0 && d<20){
lid.write(90); delay(3000); // open for 3 seconds
lid.write(0); delay(500);
}
delay(100);
}
💡 Challenge: Add a green LED on D13 that glows while the lid is open.
7. Magic Hand Arch
Level: EasyTime: 35 minWave your hand through the arch and it reacts with a light and beep, and even counts how many times you passed! Use this idea for a visitor counter or a touch-free doorbell.
Parts
Arduino Uno or Nano, HC-SR04, LED + 220Ω resistor, buzzer, yellow cardboard or wooden arch.
Circuit
| Part pin | Arduino |
|---|---|
| HC-SR04 VCC / GND / Trig / Echo | 5V / GND / D9 / D10 |
| LED (via 220Ω) | D13 |
| Buzzer + | D8 (− to GND) |
Steps
- Build an arch frame and mount the sensor on the top inside, pointing down at the gap.
- Place the LED and buzzer on the side pillar.
- Upload the code and open the Serial Monitor (9600) to see the count.
- Pass your hand under the arch. The light flashes, the buzzer beeps and the count goes up!
Code
const int trig=9, echo=10, led=13, buzz=8;
int count=0; bool seen=false;
long cm(){
digitalWrite(trig,LOW); delayMicroseconds(2);
digitalWrite(trig,HIGH); delayMicroseconds(10);
digitalWrite(trig,LOW);
return pulseIn(echo,HIGH)*0.034/2;
}
void setup(){
pinMode(trig,OUTPUT); pinMode(echo,INPUT);
pinMode(led,OUTPUT); pinMode(buzz,OUTPUT);
Serial.begin(9600);
}
void loop(){
long d=cm();
bool near=(d>0 && d<15);
if(near && !seen){ // new pass only
count++; Serial.println(count);
digitalWrite(led,HIGH); tone(buzz,1000,200);
}
if(!near) digitalWrite(led,LOW);
seen=near;
delay(100);
}
8. Rain Alert Clothes-Saver House
Level: MediumTime: 60 minWhen rain touches the sensor, a blue roof slides over the tiny hanging clothes to keep them dry. A cup of water is used to pretend it is raining!
Parts
Arduino Uno, rain/water sensor, SG90 servo, cardboard mini house, mini clothes and string, blue sliding roof cover, cup of water.
Circuit
| Part pin | Arduino |
|---|---|
| Rain sensor VCC / GND / AO | 5V / GND / A0 |
| Servo signal (red / brown) | D6 (5V / GND) |
Steps
- Build the house corner with a clothesline. Add a roof sheet attached to the servo so it can slide over the clothes.
- Place the rain sensor board outside, where raindrops land. Keep Arduino dry!
- Upload the code, then dip a finger in the cup and touch the sensor.
- The blue roof slides shut. When the sensor dries, it opens again.
Code
#include <Servo.h>
Servo roof;
const int rain=A0;
void setup(){
roof.attach(6);
roof.write(0); // roof open
}
void loop(){
int v=analogRead(rain); // lower = wetter
if(v<600) roof.write(90); // rain! close roof
else roof.write(0); // dry, open roof
delay(300);
}
💡 Open the Serial Monitor and print v to find the best number for your sensor.
❓ Troubleshooting & FAQ
Servo jitters or Arduino resets? Power the servo from a separate 5V supply and join the grounds together.
Ultrasonic reads 0? Check Trig and Echo are not swapped, and that the sensor faces a flat surface.
Which age is this for? Ages 8+ with adult help. Younger kids can enjoy projects 2, 4 and 6.
What will kids learn? Sensors, inputs and outputs, loops, if-else logic and real-world problem solving.

Comments
Post a Comment