Automatic Door Opening Using Arduino HRSC04 Ultras
Automatic Door Opening Using Arduino HRSC04 Ultras
by VijendraK
The project concerns about automatic door opening slides during opening or closing by rack and pinion
and closing system. An automatic door control gearing, a LCD to display information state of door,
system includes a sensor for sensing person or object an audio buzzer to make sound through the duration
approaching door. Systems and methods are very of opened door and a controller for controlling the
common in the art for opening and closing doors to opening and closing of the door as a person or object
enter and exit buildings, facilities etc. Automatic doors detected by sensor.
are commonly found in retail stores, supermarkets,
and the like. The whole system is mechatronic system which is
designed using seven steps of mechatronic system
The project generally relates to an automatic opening design.
and closing of door which will sense person or object
approaching door and open automatically. This To starts making such mechatronic system following
system is controlled by Arduino micro controller. The elements and tools are required...
system includes DC motor which makes door to
https://www.youtube.com/watch?v=yDS6Umvh5gc
tic Door Opening Using Ultrasonic sensor HRSC04, Arduino, 16 X 2 LCD dot matrix, Piezo buzzer, DC motor and mechanical components:
Step 1: Step 1:- Gather all hardware (Materials and Tools)
tic Door Opening Using Ultrasonic sensor HRSC04, Arduino, 16 X 2 LCD dot matrix, Piezo buzzer, DC motor and mechanical components:
Gather all hardware required to assemble system. To starts making such mechatronic system following
LCD and Piezo Buzzer is not a mandatory elements and
requirement of this system. These are added just only tools are required...
for Visual and Audio identification to user for status of
door whether it is open or closed. Materials -
3. HRSC04 Ultrasonic sensor (Used as proximity You can run motor directly connect to 9-12 V DC
sensor to sens person or object arrived at door). supply. The motor will draw current as much it
requites from 12V DC supply. But In this project we
Ultrasonic ranging module HC - SR04 provides 2cm- have to control motor with program instruction so we
400cm non-contact measurement function, the have to connect motor through the arduino controller
ranging accuracy can reach to 3mm. The modules which output voltage and current is limited. So when
includes ultrasonic transmitters, receiver and control you connect motor to arduino controller it it will draw
circuit. The basic principle of work: more current at 5V. So there will be chances to burn
controller.
Using IO trigger for at least 10us high level signal
To prevent micro-controller to burn, i used motor
The Module automatically sends eight 40 kHz and shield. which is simply acts as amplifier.
detect whether there is a pulse signal back
8. Mechanical elements : To make a prototype i used
IF the signal back, through high level , time of high plastic acrylic sheet and cut them into peaces to
output IO duration is the time from sending ultrasonic make a house type model having sliding door.
to returning
9. Jumper Wires
Test distance = (high level time X velocity of sound
(340M/S) / 2 10 Power Supply
Torque: 1.9 Kgf.cm The tools are not required, but if you have then you
will be good.
Speed without load: 170RMP (3V)
Weight : 30gm
tic Door Opening Using Ultrasonic sensor HRSC04, Arduino, 16 X 2 LCD dot matrix, Piezo buzzer, DC motor and mechanical components:
No-load current = 60 mA,
tic Door Opening Using Ultrasonic sensor HRSC04, Arduino, 16 X 2 LCD dot matrix, Piezo buzzer, DC motor and mechanical components:
You can also down load attached .ino file and directly lcd.print("WELCOME");
complie and upload.
pinMode(trigPin, OUTPUT);
#include
pinMode(echoPin, INPUT);
long duration; {
{ digitalWrite(trigPin, HIGH);
lcd.clear(); delayMicroseconds(10);
tic Door Opening Using Ultrasonic sensor HRSC04, Arduino, 16 X 2 LCD dot matrix, Piezo buzzer, DC motor and mechanical components:
duration = pulseIn(echoPin, HIGH); delay(3000);
distance= duration*0.034/2; }
{ {
analogWrite(mt_IN2_Pin3, 0); }
delay(2000); }
analogWrite(mt_IN1_Pin2, 0);
analogWrite(mt_IN2_Pin3, 0);
delay(1000);
tone(buzz, 1000);
delay(1000);
tone(buzz, 1000);
delay(1000);
noTone(buzz);
delay(3000);
lcd.clear();
lcd.setCursor(0,1);
lcd.print("Please Enter");
delay(1000);
analogWrite(mt_IN1_Pin2,0);
analogWrite(mt_IN2_Pin3,50);
tic Door Opening Using Ultrasonic sensor HRSC04, Arduino, 16 X 2 LCD dot matrix, Piezo buzzer, DC motor and mechanical components:
http://www.instructables.com/ORIG/F1E/JV2O/IYYSZ1OS/F1EJV2OIYYSZ1OS.ino
(https://cdn.instructables.com/ORIG/F1E/JV2O/IYYSZ1OS/F1EJV2OIYYSZ1OS.ino)
Connects all hardware to arduino controller. The attached schematics are just for the reference only. You may use
pins as per available at controller board.
The best way you can use my program for pin information. Also you raise me request to share.
tic Door Opening Using Ultrasonic sensor HRSC04, Arduino, 16 X 2 LCD dot matrix, Piezo buzzer, DC motor and mechanical components:
Step 4: Step 4:- Flaysh Arduino Program and Power Supply
https://www.youtube.com/watch?v=yDS6Umvh5gc&t=1s
tic Door Opening Using Ultrasonic sensor HRSC04, Arduino, 16 X 2 LCD dot matrix, Piezo buzzer, DC motor and mechanical components: