With the development of science and technology, a lot of high-tech products have been installed in cars, among which the reversing assist system is one of them. Here we use ultrasonic sensors, LCD, LED and buzzer to make a simple ultrasonic reversing assist system.
In this example, the wiring is shown below.
In this project, we need to avoid the interference between the LCD screen and the alarm system as much as possible (for example, the LED flicker time is too long and the LCD refresh is delayed), so please avoid using the delay() statement and use two separate intervals to control the working frequency of the LCD and alarm system respectively. Its workflow is shown in the flow chart. For analysis of Interval function, refer to Part 1-1.11 Interval.