This project is about creating an automated gate system using an Arduino microcontroller. The system is designed to control the opening and closing of the gate through the use of an ultrasonic sensor, a relay, a servo motor, and buttons. The code provided incorporates the functionality of the gate opening when a car approaches it and also allows manual opening by pressing a button. The project is a simple yet effective demonstration of how microcontrollers like the Arduino can be used to automate physical systems and control various components such as relays, LEDs, and servo motors.
- Jehovah Yii Zui Hon TB20091
- Wan Nor Samsiah Binti Wan Osman TB19022
- Affrina Sahira binti Azham TB19044
- Arduino Uno
- Ultrasonic sensor
- Breadboard
- Jumper wire
- Servo motor
- 5V relay switch
- Push button switch
- Green LED
- Blue LED
| Pins | Arduino Uno |
|---|---|
| Vcc | 5V |
| Trig | D4 |
| Echo | D5 |
| Gnd | Gnd |
| Wire | Arduino Uno |
|---|---|
| Yellow | D3 |
| Red | 5V |
| Chocolate | Gnd |
| Pins | Arduino Uno |
|---|---|
| S | D7 |
| + | 5V |
| - | D5 |
| C | 3.3V |
| NO | D13 |
| Pins | Arduino Uno |
|---|---|
| + | D8 |
| - | 10kΩ => GND |
| Pins | Arduino Uno |
|---|---|
| + | D13 |
| - | GND |
| Pins | Arduino Uno |
|---|---|
| 1 | D2 |
| 2 | GND |

