Table Of Content:
- What is an automatic road blocker
- Components Used
- Circuit Diagram
- Video Demonstration
- Working of the project
- what is the SR04 ultrasonic sensor
- What is the servo motor
- Code of the project
- Application of Automatic Road Blocker
What is automatic road blocker:
These devices are typically used in emergency situations, such as when a particular road needs to be blocked of unwanted vehicles. They can also be used to block a road for construction purposes. here in this project if a random vehicle will try to enter the secured area then immediately road blocker will appear on the road. if the security guard will allow the vehicle to pass only then the road blocker will go down otherwise they will be in a high position all the time till the car is there. The Biggest application of the project is in the Navy / Airforce / Army where only authorised vehicles are allowed.
Automatic road blockers are typically large, heavy devices that can be lowered into place using a hydraulic system but here in our project we are using a servo motor to move the road blocker up and down. Once in place, the road blocker can be very difficult to move, which makes them effective at blocking a road. If you need to get past an automatic road blocker, you will likely need a heavy-duty vehicle, such as a tow truck, to move it out of the way.
Components Used:
- Arduino UNO. -buy from here
- Ultrasonic Sensor. – buy from here
- Servo Motor. – buy from here
- 9v Battery
- 5V USB charger for power supply.
- Male-Female cable for connections
Circuit Diagram:
Video Demonstration:
Working of the project:
An automatic road blocker is a device that is used to block a road or path in order to prevent vehicles from passing. There are a variety of different types of automatic road blockers, but they all work by using a variety of sensors to detect when a vehicle is approaching and then deploying a barrier to block the road. here in this project, we are using ultrasonic sensors to sense the vehicle and servo motor to rise the road blocker.
what is the SR04 ultrasonic sensor:
SR04 ultrasonic sensor is an electronic sensor that can measure the distance of an object by emitting sound waves and measuring the time it takes for the waves to bounce back. It can be used to measure the distance of objects in a variety of applications, such as in robotics, sonar, and navigation. The SR04 ultrasonic sensor is composed of two parts: a transmitter and a receiver. The transmitter emits sound waves, and the receiver listens for the waves that bounce back. The time it takes for the waves to bounce back is used to calculate the distance of the object. The SR04 ultrasonic sensor can be used to measure the distance of objects in a variety of applications, such as in robotics, sonar, and navigation.
Some applications of the SR04 ultrasonic sensor include:
– Measuring the distance of objects in a room
– Measuring the depth of water – Measuring the height of a person
– Measuring the width of a door
– Measuring the length of a car The SR04 ultrasonic sensor is a popular choice for many applications because it is relatively inexpensive and easy to use.
What is the servo motor:
A servo motor is a rotary actuator that allows for precise control of the angular position. It consists of a motor coupled to a sensor for position feedback. The motor is typically a DC motor with a gear train. The sensor is usually a potentiometer, but may also be a resolver, encoder, or Hall effect sensor. The control electronics use the position feedback to control the motor speed and direction so as to achieve the desired angular position. Servo motors are used in a wide variety of applications, including robotics, CNC machinery, and aircraft control surfaces.
Code of the project:
// Circuits Bazaar " Automatic Road Blocker "
#include <Servo.h> //servo library
Servo servo;
int trigPin = 5;
int echoPin = 6;
int servoPin = 7;
int led= 10;
long duration, dist, average;
long aver[3]; //array for average
void setup() {
Serial.begin(9600);
servo.attach(servoPin);
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
servo.write(0); //close cap on power on
delay(100);
servo.detach();
}
void measure() {
digitalWrite(10,HIGH);
digitalWrite(trigPin, LOW);
delayMicroseconds(5);
digitalWrite(trigPin, HIGH);
delayMicroseconds(15);
digitalWrite(trigPin, LOW);
pinMode(echoPin, INPUT);
duration = pulseIn(echoPin, HIGH);
dist = (duration/2) / 29.1; //obtain distance
}
void loop() {
for (int i=0;i<=2;i++) { //average distance
measure();
aver[i]=dist;
delay(10); //delay between measurements
}
dist=(aver[0]+aver[1]+aver[2])/3;
if ( dist<50 ) {
//Change distance as per your need
servo.attach(servoPin);
delay(1);
servo.write(0);
delay(3000);
servo.write(150);
delay(1000);
servo.detach();
}
Serial.print(dist);
}
Application of Automatic Road Blocker:
- Automatic Road Blocker can be used in many different places to protect your property against intruders. For example, you can use it to protect your home against burglars, protect your business against vandals, or protect your car against car thieves.
- Automatic Road Blocker is commonly used in parking lots, driveways, and other areas where cars are parked. They are also used in public areas such as parks and playgrounds.
- Automatic Road Blocker can be used in any location where you want to keep people out. For example, you can use them to block off a section of your yard that you don’t want people to walk through. You can also use them to keep people from driving through your property.
- Automatic Road Blocker can be used to protect your property from many different types of crimes. For example, they can be used to prevent burglary, to prevent vandalism, or to prevent car theft.
- Automatic Road Blocker can also be used to protect your property from natural disasters. For example, you can use them to block off a section of your property that could be damaged by a flood.
Want to Buy the Project – +918684884488