Smart Recycling Bin
Ultrasonic sensor detects when the bin is full
Ultrasonic
Sensors
Recycling
STEM
What you will learn
- How ultrasonic sensors work — they emit a high-frequency sound pulse and listen for the echo
- Distance = (time × speed of sound) ÷ 2 — same principle as bat echolocation
- How to apply the "fullness" threshold — at what distance should the bin be considered "full"
- The engineering design process: define the problem → design a solution → build → test → iterate
What you will need
| Component |
|---|
| 1× 9V battery |
| 1× HC-SR04 ultrasonic sensor |
| 1× 220Ω resistor |
| 1× LED (red, "full" indicator) |
| 1× buzzer |
| Breadboard |
| 6× jumper wires |
Step by step
Take it further
- Mount the sensor in a real cardboard box and test it. Try different threshold values.
- Add an LCD or 7-segment display to show the current "fullness" percentage.
- Connect an ESP32 and send the bin status to a phone via WiFi — a real IoT bin!
- Try the IET / DiscoverE "engineering for the environment" project: design a smarter bin that compacts, sorts, or weighs its contents.
Practise it before you build it
Wire this circuit in the ThinkEdge Learn simulator first. The simulator runs a real Arduino sketch against a modified-nodal-analysis solver, so the LED on screen actually lights when the current is right — no hardware, no burnt components, and a class can try it in a browser.
Related projects
Ultrasonic — Distance SensorMeasure how far away an object is
Arduino Nano — Parking Sensor4 distance zones — 1 slow low beep far, 2 fast high-pitch beeps close (like a real car reversing buzzer)
LDR — Automatic Night LightThe room gets dark, the LED turns on
DHT11 — Digital ThermometerRead the room temperature on your laptop
Servo — The Hello World of MotorsSweep back and forth forever
Servo — Two Buttons, Two PositionsPress A → go to 0°. Press B → go to 180°.
Where this project sits
It is also part of these lists, which is how a class usually finds it.
Arduino LED projects for beginners36 projects in this list
Arduino ultrasonic distance sensor projects10 projects in this list
Arduino buzzer and tone projects19 projects in this list
Engineering projects for school students12 projects in this list
Try the full simulator with your class
103 guided circuit projects, 21 lessons and an in-browser Arduino simulator. The first 15 projects are free, no account needed. One licence covers a whole school.