RGB LED Based on Distance
Make a circuit that show how far away something is by either shinning a red, green, or blue LED.
Components and supplies
1
Ultrasonic Sensor - HC-SR04 (Generic)
1
Arduino UNO
1
LED, Blue Green
1
Jumper wires (generic)
1
5 mm LED: Red
1
5 mm LED: Green
3
Resistor 220 ohm
Apps and platforms
1
Arduino IDE
Project description
Code
RGBbyDistance.ino
c_cpp
RGBbyDistance.ino
c_cpp
Downloadable files
Circuit Diagram
Circuit Diagram

Comments
Only logged in users can leave comments