Aim of the Project
Automatic car parking indicator system
General application and Description of the project
Nowadays in many multiplex systems there is a severe problem for car parking systems. There are many lanes for car parking, so to park a car one has to look for the all lanes. Moreover there is a lot of men labor involved for this process for which there is lot of investment. So the need is to develop a system which indicates directly which parking slot is vacant in any lane. The project involves a system including infrared transmitter and receiver in every lane and a LED display outside the car parking gate. So the person entering parking area can view the LED display and can decide which lane to enter so as to park the car.
Conventionally, car parking systems does not have any intelligent monitoring system. Parking lots are monitored by human beings. All vehicles enter into the parking and waste time for searching for parking slot. Sometimes it creates blockage. Condition become worse when there are multiple parking lanes and each lane have multiple parking slots. Use of automated system for car parking monitoring will reduce the human efforts. Display unit is installed on entrance of parking lot which will show LEDs for all Parking slot and for all parking lanes. Empty slot is indicated by the respective glowing LED.
Working of the circuit and image of the model
IR Sensors are placed inside the parking slot to detect the presence of the vehicle in slot. If the slot is not vacant then a red led will glow under the specified slot number at the entrance of the parking area or else green led will glow. The Arduino takes the data from the IR sensors and compares the received value with the threshold value and accordingly supplies power to the desired led.
Fig. 1: Cardboard Model of Advanced Parking System
Connection for the IR sensors
Fig. 2: Circuit Diagram of IR Sensor
Block Diagram
Fig. 3: Block Diagram of Advanced Parking System
Description of the Circuit
In circuit there are 3 IR sensors are used each at 3 parking slot. These IR sensors are connected to the pin A0, A1, A2 respectively. The led’s are connected at the Digital I/O pins i.e., pin 2 for RED1, pin 3 for GREEN1, pin 4 for RED2, pin 5 for GREEN2, pin6 for RED3 and pin 7 for GREEN3.
When the slot1 will be vacant then IR receiver will not receive any signal. Hence GREEN1 will glow. If any signal is received by the IR receiver then it will be compared to the threshold value and if it is more than the threshold value then RED1 will glow. This process will be similar to all other slots.
Components Required
1.) ARDUINO UNO
Fig. 4: Typical Image of Arduino Uno
2.) IR SENSORS
Fig. 5: Typical Image of IR Transmitters and Receivers
3.) LED RED AND GREEN
Fig. 6: Typical Image of Red LED
4.) Breadboard
Fig. 8: Typical Image of Breadboard
5.) Male-male wire
Fig. 9: Typical Image of Male-Male Wires
6.) Battery
Fig. 10: Typical Image of Battery
7.) Soldering Iron and Wire
Fig. 11: Typical Image of Soldering Iron and Wire
Project Source Code
###
const int analogInPin0 = A0;
const int analogInPin1 = A1;
const int analogInPin2 = A2;// Analog input pin that the ir sensor is attached to
const int analogOutPin0 =2; //r1Analog output pin that the LED is attached to
const int analogOutPin1 =3; //g1
const int analogOutPin2 =4; //r2
const int analogOutPin3 =5; //g2
const int analogOutPin4 =6; //r3
const int analogOutPin5 =7; //g3
int sensorValue0 = 0; // value read from the ir sensor
int outputValue0 = 0; // value output to the PWM (analog out)
int sensorValue1 = 0; // value read from the ir sensor
int outputValue1 = 0;
int sensorValue2 = 0; // value read from the ir sensor
int outputValue2 = 0;
void setup() {
// initialize serial communications at 9600 bps:
Serial.begin(9600);
}
void loop() {
// read the analog in value:
sensorValue0 = analogRead(analogInPin0);
outputValue0 = map(sensorValue0, 0, 1023, 0, 255);
sensorValue1 = analogRead(analogInPin1);
outputValue1 = map(sensorValue1, 0, 1023, 0, 255);
sensorValue2 = analogRead(analogInPin2);
outputValue2 = map(sensorValue2, 0, 1023, 0, 255);
// change the analog out value:
if(outputValue0 < 240)
{
analogWrite(analogOutPin0, 255);
analogWrite(analogOutPin1,0);
}
else
{
analogWrite(analogOutPin0, 0);
analogWrite(analogOutPin1, 255);
}
if(outputValue1 > 150)
{
analogWrite(analogOutPin2, 255);
analogWrite(analogOutPin3,0);
}
else
{
analogWrite(analogOutPin2, 0);
analogWrite(analogOutPin3, 255);
}
if(outputValue2 > 150)
{
analogWrite(analogOutPin4, 255);
analogWrite(analogOutPin5,0);
}
if(outputValue2 < 150)
{
analogWrite(analogOutPin4, 0);
analogWrite(analogOutPin5,255);
}
// print the results to the serial monitor:
Serial.print("sensor0 = n" );
Serial.print(sensorValue0);
Serial.print("n output0 = ");
Serial.println(outputValue0);
Serial.print("sensor1 = " );
Serial.print(sensorValue1);
Serial.print("t output1 = ");
Serial.println(outputValue1);
Serial.print("sensor2 = " );
Serial.print(sensorValue2);
Serial.print("t output2 = ");
Serial.println(outputValue2);
}
###
Circuit Diagrams
Filed Under: Electronic Projects
Questions related to this article?
👉Ask and discuss on Electro-Tech-Online.com and EDAboard.com forums.
Tell Us What You Think!!
You must be logged in to post a comment.