Simple parking sensor using an Arduino and a Parallax Ping))) sensor. 100K linear potentiometer is used to set the distance at which the light turns from green to red. It ranges from 12 to 72 inches.
Ping))) Sensor:
- +V lead attached to +5V
- GND lead attached to ground
- SIG lead attached to digital pin 7
Bicolor LED
- +V lead attached to pin 8
- GND lead attached to pin 9
Linear 100K Potentiometer
- GND lead attached to ground
- SIG lead attached to A0
- +V lead attached to +3.3V