Munzir Alradi
ع
Munzir Alradi
Home About Services Work Blog Tutorials Contact Light Tunnel العربية

2017

Automatic Gate

A sensor-driven gate controller built around an Arduino.

2 min read 4 photos
A laser-cut model vehicle in front of the gate's ultrasonic sensor

Date: June 2016


In this project we will simulate an automated parking gate by using an ultrasonic sensor to open and close the gate if a specific distance is achieved, and we will use ( EPILOG LASER ) the laser CNC to build our structure

Project in Action

[ View this post on Instagram

A post shared by Munzir Alradi (@munziralradi)

Materials and components

  • Ultrasonic sensor
  • Arduino uno Microcontroller
  • Servo motor
  • Jumper caple
  • Wood lasercut

How Does It Work

The ultrasonic sensor will detect the distance infront of the gate if a car came closer than 20 cm to the gate the ultrasonic sensor will send a command to the arduino microcontroller to open the gate , then the ardino will send a command to the servo to open the gate 90 Degree to open the gate

Connection: Ultrasonic Sensor

Wiring diagram: the ultrasonic sensor connected to an Arduino
  • Vcc to 5V in the arduino
  • trig to port 2 in the arduino
  • echo to port 4 in the arduino
  • Gnd to Gnd in the arduino

Connection : Servo Motor

Wiring diagram: the servo motor connected to an Arduino Uno through a breadboard
  • Black wire to Gnd in the arduino
  • Red wire to vcc in the arduino
  • Yellow wire to port 9 in the arduino

Structure

The structure for this project had been designed by a laser cutter and connected to each other by super glue, you can see the picture below.

Wood sheets after laser cutting, with the cut-out pieces removed

Conclusion

The assembled gate with the sensor, servo and Arduino in place

At the end this is how the project will look like , it looks kinda funny , but I built to merely visualize the idea.

whenever something gets withing the range of the ultrasonic sensor , it will measure its distance from sensor , and if it was less that a certain amount, the servo will turn , opening the gate.

it’s just an idea for a simple application of using sensor and actuators to make something useful easily with Arduino

Building process

i shared the details for building this project in instructable

Type to search