Distancing Box
![1.jpg](/proxy/?url=https://content.instructables.com/F62/VQH9/KQ2CESYJ/F62VQH9KQ2CESYJ.jpg&filename=1.jpg)
Different parameters can be set according to different requirements, so that within a certain distance, the light of a specific color.
The function of this project is to light a red light with an alarm when the distance is less than 10cm to remind the distance is too close. Blue light at 10 to 20 cm; Green light at more than 20cm.
Downloads
Material Appliances
Aduino breadboard;
Several Dupont lines;
The RGB light;
Ultrasonic sensor;
Buzzer;
3×110-ohm resistors;
A number of resistance;
Some of the wooden board;
Connections
![图片1.png](/proxy/?url=https://content.instructables.com/FZZ/BZ8A/KQ3RT4O2/FZZBZ8AKQ3RT4O2.png&filename=图片1.png)
RedPin -- 7
GreenPin -- 6;
BluePin -- 5;
Buzzer -- 12
Ucc -- 5V
Trig -- 2
Echa -- 3