Parking Indicator
Hi everyone, this is Doris, and today I will teach you how to make a parking indicator. The principle of this indicator is that when the circuit is not connected, that is, when there is no car in the range, the device will light up the green light, and when the circuit is connected, that is, when a car is parked in the range, the light will go out. Its function is to allow the car to quickly understand where there is a parking space when the car is in the basement, so that there is no need to slowly find a parking space.
You might want to say, this thing has the same design in many places? Yes, there are indeed many businesses that have introduced similar designs, but I am different from them, that is, whenever the car parks in the range When the time comes, my light will go out instead of lighting into red. I think this design can give a clearer instruction to the driver and will not cause other interference.
Supplies
1. 10 * wires
2. 1* LED (Green)
3. 1* Resistor 220 Ohm
4. Arduino Leonardo
5. Breadboard
6. Paper clip
7. 1* metal film resistor
Step 1: Connect the Circuits
Please connect the circuit as shown in the figure above and replace the button with two wires.
Step 2: Upload the Code
void setup(){ // put your setup code here, to run once:
pinMode( 2 , INPUT); // sets the digital pin as input pinMode( 11 , OUTPUT); // sets the digital pin as output pinMode( 10 , OUTPUT); // sets the digital pin as output }
void loop(){ // put your main code here, to run repeatedly: if (digitalRead( 2 )) { digitalWrite( 11 , LOW ); // sets the digital pin on/off digitalWrite( 10 , HIGH ); // sets the digital pin on/off } else { digitalWrite( 11 , HIGH ); // sets the digital pin on/off } }
Downloads
Step 3: Decoration (optional Step)
The decorative components make the device look more beautiful, but you can skip this step.
THANK YOU!
Step 4: Final Production
Link: https://youtu.be/ZhMqFZgbSWY