RGB LED Based on Distance

Make a circuit that show how far away something is by either shinning a red, green, or blue LED.

Oct 17, 2020

11939 views

5 respects

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

Image

Comments

Only logged in users can leave comments

codernoob

0 Followers

0 Projects

0