Friday, January 28, 2022

Smart car parking device using Arduino

 INTRODUCTION:-

In today’s world there is a huge demand of automatic appliances. As we are getting modernized, thus we always have an urgency for developing circuits that would ease the complexity of life. Every time when we try to park our cark in a parking area, there always comes a risk that our car’s rear part might get hit by any obstacle, if the obstacle is not clearly visible. To provide a solution for this problem, we are going to implement a project called “SMART CAR PARKING DEVICE USING ARDUINO”.  The basic concept behind this project is to sense that whether any object is present close to the rear part of the car and to make the driver alert for the danger. 

LIST OF COMPONENTS:-

1Arduino Uno

2Bread Board

3Ultrasonic Sensor

4Jumper Cables

51K Ohm resistor

6LED lights


Features of the Arduino UNO
Microcontroller: ATmega328
Operating Voltage: 5V
Input Voltage (recommended): 7-12V
Input Voltage (limits): 6-20V
Digital I/O Pins: 14 (of which 6 provide PWM output)
Analog Input Pins: 6
DC Current per I/O Pin: 40 mA
DC Current for 3.3V Pin: 50 mA
Flash Memory: 32 KB of which 0.5 KB used by boot loader
SRAM: 2 KB (ATmega328)
EEPROM: 1 KB (ATmega328)
Clock Speed: 16 MHz

DIAGRAM OF ARDUINO UNO



CIRCUIT DIAGRAM




THEORY
It is designed to help people park car in efficient ways and also save their cars from colliding with other cars and getting scratched.It is designed using Arduino Uno, IR sensor and LED lights, here IR sensor has been used as distance sensor and six led lights are used as distance indicator. When the lights start to lit up one after another then the car is getting closer to the object and as the lights gradually start to shut down one after another, that means the car is going away from the object. The device will start its indication when the object will be the range of 1 meter from the car.

ARDUINO CODE 
const int trig = 11;
const int echo = 12;

const int LED1 = 2;
const int LED2 = 3;
const int LED3 = 4;
const int LED4 = 5;
const int LED5 = 6;
const int LED6 = 7;
const int LED7 = 8;

int duration = 0;
int distance = 0;

void setup()
{
pinMode(trig , OUTPUT);
pinMode(echo , INPUT);

pinMode(LED1 , OUTPUT);
pinMode(LED2 , OUTPUT);
pinMode(LED3 , OUTPUT);
pinMode(LED4 , OUTPUT);
pinMode(LED5 , OUTPUT);
pinMode(LED6 , OUTPUT);
pinMode(LED7 , OUTPUT);
Serial.begin(9600);
}
void loop()
{
digitalWrite(trig , HIGH);
delayMicroseconds(1000);
digitalWrite(trig , LOW);


  duration = pulseIn(echo , HIGH);
  distance = (duration/2) / 28.5 ;
Serial.println(distance);
  if ( distance<= 20 )
  {
digitalWrite(LED1, HIGH);
  }
  else
  {
digitalWrite(LED1, LOW);
  }
  if ( distance<= 28 )
  {
digitalWrite(LED2, HIGH);
  }
  else
  {
digitalWrite(LED2, LOW);
  }
  if ( distance<= 40 )
  {
digitalWrite(LED3, HIGH);
  }
  else
  {
digitalWrite(LED3, LOW);
  }
  if ( distance<= 60 )
  {
digitalWrite(LED4, HIGH);
  }
  else
  {
digitalWrite(LED4, LOW);
  }
  if ( distance<= 68 )
  {
digitalWrite(LED5, HIGH);
  }
  else
  {
digitalWrite(LED5, LOW);
  }
  if ( distance<= 80 )
  {
digitalWrite(LED6, HIGH);
  }
  else
  {
digitalWrite(LED6, LOW);
  }
  if ( distance<= 100 )
  {
digitalWrite(LED7, HIGH);
  }
  else
  {
digitalWrite(LED7, LOW);
  }
}



CONCLUSIONS 
This Project will help people save their cars from getting scratched and also from accident. The smart car parking system is cost effective, easy to maintain and portable. The bigger is the target, stronger will be the reflected signal. Which will result the car not get hit backwards. Hence the smart car parking device is an extremely useful device.



REFERENCES
1) https://www.semanticscholar.org/paper/Smart-Distance-Measurement-Device-Using-UltrasonicRungtaTiwari/a16ea1392cff82ba9ef3377d3a6124336599d02a

2)https://www.semanticscholar.org/paper/Comparative-Study-of-Burst-And-Beams-Types-Sensor-Darwito-
Raditya/5e593663b6c54615d297d78bc4caabe24d78bbdf
 3)https://www.semanticscholar.org/paper/Design-of-an-Ultrasonic-Distance-Meter-Arefin-
Mollick/77294abd05ded6b01dbfff20f30c493bd13bf19e
⮚ http://www.ijsrd.com/articles/IJSRDV3I50440.pdf




No comments:

Post a Comment

Smart car parking device using Arduino

 INTRODUCTION:- In today’s world there is a huge demand of automatic appliances. As we are getting modernized, thus we always have an urgenc...