3.1 Reversing Aid¶
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.
You can open the file
3.1_reversingAid.inounder the path of
Or copy this code into Arduino IDE 1/2.
Then Upload the Code to the board.
Please make sure you have added the
LiquidCrystal_I2Clibrary, detailed tutorials refer to Add Libraries.
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 1.11 Interval.