Automated, sensor-based gate with ultrasonic detection, servo actuation, LEDs, buzzer, and 16x2 I2C LCD. Includes a manual override switch. Built for the Arduino Uno.
This repo is generated directly from the project report and includes the original PDF in
docs/. See wiring, code, and testing notes below.
- Ultrasonic vehicle detection (HC-SR04)
- Smooth servo gate control with staged angles
- Visual (LED) and audible (buzzer) alerts
- 16x2 I2C LCD status messages
- Manual override switch for maintenance/emergencies
| Part | Notes | Pins |
|---|---|---|
| HC-SR04 Ultrasonic | VCC 5V, GND | Trig: D9, Echo: D10 |
| Servo | 5V supply, GND | Signal: D6 |
| Green LED | 220Ω resistor | D7 |
| Red LED | 220Ω resistor | D8 |
| Buzzer | Piezo or active buzzer | D13 |
| 16x2 I2C LCD | Address usually 0x27 |
SDA: A4, SCL: A5 |
| Manual Switch | Pull-up enabled | A0 to GND |
- Install Arduino IDE and add the following libraries if missing:
LiquidCrystal_I2CServo
- Clone this repo and open
src/SmartAccessGate.ino. - Wire the components per the table above.
- Upload to an Arduino Uno.
- Opens when object detected within 8 cm, with buzzer + green LED.
- Auto-closes after ~6 seconds of no detection, with buzzer + red LED.
- Manual switch toggles open/close and temporarily disables auto mode.
smart-access-gate-arduino/
├─ src/
│ └─ SmartAccessGate.ino
├─ docs/
│ └─ PROJECT_REPORT_ON_SMART_ACCESS_GATE_SYSTEM_USING_ARDUINO_UNO.pdf
├─ hardware/
│ ├─ BOM.md
│ └─ wiring.md
├─ .gitignore
├─ LICENSE
└─ README.md
MIT. See LICENSE.
- Based on the project report "PROJECT REPORT ON SMART ACCESS GATE SYSTEM USING ARDUINO UNO" included in
docs/.
Watch the demo here: https://youtube.com/shorts/eSR9oMO9okk?feature=share
