This project was created to help get familiar with the ESP32 using the ESP-IDF framework. The main file runs an example that controls a servo motor using Pulse Width Modulation (PWM). There is also an input from 4 IR sensors. Each sensor presents an angle for the motor movement.
- main/ Contains the main application code
- components/ Contains any additional components
- CMakeLists.txt CMake build script
- sdkconfig Configuration file for ESP-IDF
- Build the project:
idf.py build
- flash to target:
idf.py -p flash
ESP-IDF: Ensure you have the ESP-IDF installed and set up on your machine. Follow the ESP-IDF getting started guide to install it.
Servo Motor Control: The servo motor is controlled using PWM signals generated by the ESP32. IR Sensors: There are 4 IR sensors providing input to control the angle of the servo motor. Each sensor corresponds to a specific angle.