0% found this document useful (0 votes)
196 views

Automatic Door Opening Using Arduino HRSC04 Ultras

This document describes how to build an automatic door opening system using an ultrasonic sensor, Arduino, LCD display, buzzer, DC motor, and other components. The system opens and closes a door automatically when motion is detected by the ultrasonic sensor. It displays the door status on the LCD and makes sounds during opening/closing. The Arduino controls the DC motor and other components based on signals from the ultrasonic sensor. Instructions are provided on gathering materials, connecting the hardware, uploading the Arduino code, and powering the system.

Uploaded by

Naveen Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
196 views

Automatic Door Opening Using Arduino HRSC04 Ultras

This document describes how to build an automatic door opening system using an ultrasonic sensor, Arduino, LCD display, buzzer, DC motor, and other components. The system opens and closes a door automatically when motion is detected by the ultrasonic sensor. It displays the door status on the LCD and makes sounds during opening/closing. The Arduino controls the DC motor and other components based on signals from the ultrasonic sensor. Instructions are provided on gathering materials, connecting the hardware, uploading the Arduino code, and powering the system.

Uploaded by

Naveen Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

instructables

Automatic Door Opening Using Ultrasonic sensor HRSC04, Arduino, 16 X 2


LCD dot matrix, Piezo buzzer, DC motor and mechanical components

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 -

1. A computer to program instruction, must installed 6. Piezo Buzzer


arduino IDE.
7. Motor Shield : L293D
2. Arduino controller ( Any of UNO, MEGA etc.) but i
took low cost UNO R3 for learning purpose and The L293 and L293D devices are quadruple high
making this project for my academic partial fulfillment. current half-H drivers.

ATMEL : ATmega328-PU Reason to use Motor shield :

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

4. 12V DC Motor Tools-

Load current: 70mA (250mA MAX) (3V pm) 1. Multi-meter

Operating voltage: 3V ~ 12V DC 2. Soldering Iron

Torque: 1.9 Kgf.cm The tools are not required, but if you have then you
will be good.
Speed without load: 170RMP (3V)

Reduction ratio: 1:48

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,

Stall current = 700 mA

5. LCD : 16 X 2 DOT MATRIX.

Step 2: Arduino Program:-

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);

LiquidCrystal lcd(12, 11, 5, 8, 9, 1); pinMode(mt_En_Pin1, OUTPUT);

const int trigPin = 7; pinMode(mt_IN1_Pin2, OUTPUT);

const int echoPin = 4; pinMode(mt_IN2_Pin3, OUTPUT);

const int mt_En_Pin1 = 2; Serial.begin(9600);

const int mt_IN1_Pin2 = 3; pinMode(buzz, OUTPUT);

const int mt_IN2_Pin3 = 6; }

int buzz = 10; void loop()

long duration; {

int distance; digitalWrite(trigPin, LOW);

void setup() delayMicroseconds(2);

{ digitalWrite(trigPin, HIGH);

lcd.clear(); delayMicroseconds(10);

lcd.begin(16, 2); digitalWrite(trigPin, LOW);

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; }

if(distance <= 5) else

{ {

digitalWrite(13, HIGH); digitalWrite(13, LOW);

delay(1000); digitalWrite(mt_En_Pin1, LOW);

digitalWrite(mt_En_Pin1, HIGH); analogWrite(mt_IN1_Pin2,50);

analogWrite(mt_IN1_Pin2,50); analogWrite(mt_IN2_Pin3, 0);

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)

Step 3: Step 3:- Hardware connections

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

Upload arduino sketch provided in this tutorial to controller.

Watch video to view working system.

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:

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy