ESP32 Starter Kit
5. Test Result
After connecting the wiring and uploading code, lines will be displayed on the dot matrix. If the detected distance is
less than 50cm, there will be fewer lines.
8.5.29 Project 28: Intelligent Gate
1. Description
The intelligent gate is an intelligent parking lot system that integrates MCU and ultrasonic sensor, which automatically
controls the gate according to the distance of cars, so as to better control the car access.
When a certain distance is reached, MCU receives the signal from the sensor and estimates the distance via the signal
intensity. If the car is approaching or leaving, MCU will open or close the gate via a servo.
148 Chapter 8. Arduino Tutorial