How to Make Automatic Smart Car Barrier System Using Arduino | Arduino Project | Easy to Make | DIY

by KMTECH in Circuits > Arduino

5999 Views, 2 Favorites, 0 Comments

How to Make Automatic Smart Car Barrier System Using Arduino | Arduino Project | Easy to Make | DIY

How to make Automatic Smart Car Barrier System Using Arduino | Arduino Project | Easy To Make | DIY

Here we will make a Smart Car Barrier System which is used in toll tax systems on highways, smart car parking systems, automatic gates etc by using Arduino, a servo motor and ultrasonic sensor.

I hope you guys enjoy learning this project and this DIY tutorial will be useful for you!.

Components Required

arduino.png
ultrasonic.jpg
servo motor.jpg
jumper wires.jpeg

Components : Buy Links

1. Arduino Uno - https://amzn.to/3b3gUZ7

2. Servo Motor & Ultrasonic Sensor - https://amzn.to/3qwIkwQ

3. Ice Cream Sticks - https://amzn.to/3qwIkwQ

4. Jumper Wires - https://amzn.to/3qwIkwQ

5. Black Paper - https://amzn.to/3qwIkwQ

6.Hot Glue Gun - https://amzn.to/3qwIkwQ

Circuit Diagram

Arduino radar.png

Programming - JUST COPY & PASTE

/*Like & Subscribe To KMTECH To See More Videos /*

* Channel Link - https://www.youtube.com/channel/UCoLbkkHaqJPFbWU0NxZjkYQ

* How To Make Arduino Radar - https://www.youtube.com/watch?v=zP_y0rMx7Kg&t=2s

* How To Make Arduino Smart Lock System - https://www.youtube.com/watch?v=Zpl87lYEhQg&t=49s

* How To Make Free Energy Torch - https://www.youtube.com/watch?v=m3939_iW5Ek&t=3s

*/






#include<Servo.h>

Servo myservo;

const int trigPin=4;

const int echoPin=5;

long tmeduration;

int distance;




void setup() {


myservo.attach(6);

pinMode(trigPin,OUTPUT);

pinMode(echoPin,INPUT);

Serial.begin(9600);


}


void loop() {

digitalWrite(trigPin,LOW);

delayMicroseconds(2);

digitalWrite(trigPin,HIGH);

delayMicroseconds(10);

digitalWrite(trigPin,LOW);

tmeduration=pulseIn(echoPin,HIGH);

distance=(0.034*tmeduration)/2;


if(distance<=20){

myservo.write(90);

}

else{

myservo.write(0);}

Serial.print("distance:");

Serial.println(distance);

delay(1);


}



MORE VIDEOS

Easiest Home Automation Ever | Make Your Home &quot;Smart&quot; | Arduino Uno FULL Setup | Easy &amp;amp; Cheap
How To Make Password Lock System | Simple Arduino Project | Easy To Make Smart Door Lock
How to Make a Radar System with Arduino | Ultrasonic Radar | Arduino Project
Battery-less Torch || How To Make Free Energy Torch ll Emergency Light || DIY Project | Easy To Make

HERE SOME MORE ARDUINO UNO PROJECTS