T ThinkEdge Learn

Smart Recycling Bin

Ultrasonic sensor detects when the bin is full

Ultrasonic Sensors Recycling STEM
Arduino ultrasonic distance sensor project for students · Tier 2 · Logic & Sensors · Easy · 30 min · Arduino Uno

What you will learn

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

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.

Open the interactive lab See plans for your class

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.