ESP32 Starter Kit
5. Test Result
After connecting the wiring and uploading code, the servo will rotate to 180° for 5s if the detected distance is less than
30cm. On the contrary, the servo will rotate to 0°.
9.2.32 Project 29: IR Remote Control
1. Description
The IR remote control uses IR signal to control LED, which greatly simplifies the process of controlling LED.
324 Chapter 9. Scratch Tutorial