8 Easy Arduino Mini Projects for Kids – Circuit, Code & Steps | MakeMindz

🤖 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 min

The 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 pinArduino
HC-SR04 VCC / GND5V / GND
HC-SR04 Trig / EchoD9 / D10
Moisture sensor VCC / GND / AO5V / GND / A0
Servo signal (red / brown)D6 (5V / GND)

Steps

  1. Make a bin with a WET side (green) and DRY side (blue). Glue the servo under a flat flap in the middle.
  2. Put the ultrasonic sensor on top, facing the opening. Place the moisture probe where waste lands on the flap.
  3. Wire everything using the table, then upload the code.
  4. 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 min

A 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 pinArduino
HC-SR04 VCC / GND5V / GND
Trig / EchoD9 / D10
Buzzer + / −D8 / GND
Battery packVIN and GND (or USB power bank)

Steps

  1. Tape the sensor near the bottom front of the PVC pipe, facing forward.
  2. Tape the Arduino and battery pack to the pipe handle area and wire the buzzer near the handle.
  3. Upload the code and switch on the battery.
  4. 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 min

A 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 pinArduino
Flame sensor VCC / GND / DO5V / GND / D2
Relay VCC / GND / IN5V / GND / D7
PumpBattery + → relay COM, relay NO → pump +, pump − → battery −

Steps

  1. Fix the flame sensor on the wooden rig, pointing at the plate.
  2. Put the pump in the water cup and aim the tubing nozzle at the plate.
  3. Wire the relay as shown so it switches the pump battery, not the Arduino pin directly.
  4. 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 min

When 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 pinArduino
HC-SR04 VCC / GND / Trig / Echo5V / GND / D9 / D10
Servo signal (red / brown)D6 (5V / GND)
Red LED (long leg via 220Ω)D13 (short leg to GND)

Steps

  1. Glue the gate arm on the servo horn and fix the servo on a stand beside the road.
  2. Place the sensor so it sees the car coming along the road.
  3. Upload the code. When the car is within 12 cm the gate swings to STOP and the LED turns on.
  4. 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 min

Put 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 pinArduino
IR sensor VCC / GND / OUT5V / GND / D2
Relay VCC / GND / IN5V / GND / D7
PumpVia relay COM and NO, with its own battery

Steps

  1. Build a stand. Fix the tube so the nozzle points down into the bowl area.
  2. Mount the IR sensor just beside the nozzle, facing down.
  3. Test with plain water first. Upload the code.
  4. 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 min

A 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 pinArduino
HC-SR04 VCC / GND / Trig / Echo5V / GND / D9 / D10
Servo signal (red / brown)D6 (5V / GND)

Steps

  1. Fix the servo at the back edge of the bin and connect the lid with a stick lever.
  2. Stick the sensor on the front, facing outwards.
  3. 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 min

Wave 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 pinArduino
HC-SR04 VCC / GND / Trig / Echo5V / GND / D9 / D10
LED (via 220Ω)D13
Buzzer +D8 (− to GND)

Steps

  1. Build an arch frame and mount the sensor on the top inside, pointing down at the gap.
  2. Place the LED and buzzer on the side pillar.
  3. Upload the code and open the Serial Monitor (9600) to see the count.
  4. 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 min

When 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 pinArduino
Rain sensor VCC / GND / AO5V / GND / A0
Servo signal (red / brown)D6 (5V / GND)

Steps

  1. Build the house corner with a clothesline. Add a roof sheet attached to the servo so it can slide over the clothes.
  2. Place the rain sensor board outside, where raindrops land. Keep Arduino dry!
  3. Upload the code, then dip a finger in the cup and touch the sensor.
  4. 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.

© MakeMindz – Learn, Build, Innovate. Made for young makers 🌟

Comments

Product Cards
Buddy Bot eBook
⭐ New 2026 Release
Build Your
Own Robot!
3D design, wiring &
Arduino coding.
★★★★★ Young inventors love it!
🖨️
3D Print
All parts
⚡
Wire it
Circuit guide
💻
Code it
Arduino IDE
🤖
Watch it
Walk & react
📋 Your Details
Enter your name
Valid 10-digit no.
Enter a valid email
Special Website Offer
₹499 ₹300
🌍 International: $5 USD
One-time · Instant digital delivery
🔒 Secured by Razorpay · Your data is safe
📄 Download Free Sample Copy
🔒 Secured by Razorpay · Your data is safe
🍓
Raspberry Pi Pico Mastery
21 Projects
⚡ Launch Price — 80% OFF
Learn Pico
Build 21 Projects!
MicroPython · Wokwi
IoT · Certificate
★★★★★ Perfect for beginners!
🖥️
Wokwi
No hardware
🐍
MicroPy
From zero
🔨
21 Projects
IoT + sensors
📄
Certificate
Verified cert
📋 Your Details
Enter your name
Valid 10-digit no.
Enter a valid email
Special Launch Offer
₹999 ₹200 80% OFF
🌍 International: $5 USD
One-time · Lifetime access · No subscription
🔒 Secured by Razorpay · UPI · Cards · NetBanking
🎉

You're in!

Payment successful! Your Buddy Bot eBook is ready. Time to build!

📖 Access Your eBook Now
🎉

Enrolled!

Payment successful! Lifetime access to all 21 Pico Projects is yours!

🍓 Go to My Course