Skip to content

This project was created to help get familiar with programming esp32 using esp-idf framework. The main file runs an example that control a servo motor using pulse width modulation (PWM)

Notifications You must be signed in to change notification settings

Melek-Cherif/motor_control_esp32

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESP32 Servo Motor Control Project

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.

Project structure

  • main/ Contains the main application code
  • components/ Contains any additional components
  • CMakeLists.txt CMake build script
  • sdkconfig Configuration file for ESP-IDF

Steps to Run the Code on ESP32 Using idf.py

  1. Build the project:
    idf.py build
  2. flash to target:
    idf.py -p flash
    

Dependencies

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.

How It Works

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.

Servo Motor Demo

About

This project was created to help get familiar with programming esp32 using esp-idf framework. The main file runs an example that control a servo motor using pulse width modulation (PWM)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published