top of page

Traffic Light Distance Sensor

20210102_221341.jpg

Description

A RBG LED changes colors from green to yellow, and then from yellow to red as an object approaches closer to the LED light.  This is accomplished using a proximity distance sensor to detect the distance of an approaching object.

20210102_215654.jpg

The proximity distance sensor is the Sharp GP2Y0A21YK0F model. When an object is greater than 30cm from the sensor, the LED light is green.  The RBG light changes to yellow when an object is between 20-30 cm from the sensor, and finally, the RBG LED turns red if an object is less than 20 cm away.  Additionally, three 330 ohm resistors were used to control current through RBG LED light.

Additional Data

trafficLightProximitySensor_bb.png

Fritzing schematic of Traffic Light Distance Sensor project

20210102_221341.jpg

Overhead view of project

bottom of page