Parking Indicator

by Dorfina 1451 in Circuits > Arduino

202 Views, 0 Favorites, 0 Comments

Parking Indicator

unnamed (9).jpg
Arduino project _ 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

下載 (1).png
下載 (2).png
FireShot Capture 101 - Arduino - Google Slides - docs.google.com.png
下載 (3).png

Please connect the circuit as shown in the figure above and replace the button with two wires.

Step 2: Upload the Code

未命名.png
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
  }
}

Step 3: Decoration (optional Step)

unnamed (9).jpg
IMG_9694.jpg

The decorative components make the device look more beautiful, but you can skip this step.

THANK YOU!

Step 4: Final Production

Arduino project _ Parking indicator

Link: https://youtu.be/ZhMqFZgbSWY