Skip to content

This idf-component permits to control hobby-grade servo motors using an Espressif's ESP32 SoC (running esp-idf)

License

Notifications You must be signed in to change notification settings

bkgoodman/ESP32Servo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C Port

This is my C port of the library below.

Example:

ESP32Servo *myServo;
myServo = = ESP32Servo_create(GPIO_NUM_23,400,2600,LEDC_CHANNEL_0,LEDC_TIMER_0);
		for (int i = 0; i<180; i++){
			ESP32Servo_write(myServo,i);
			vTaskDelay(10 / portTICK_RATE_MS);
		}
ESP32Servo_free(myServo);

ESP32Servo

This idf-component permits to control hobby-grade servo motors using an Espressif's ESP32 SoC (running esp-idf)

Tested with TowerPro - SG92R and ESP32D0WDQ6 (DevKitC).

Getting Started

NOTE: this code is not (yet) Production Ready.
You can use this library as a component for your project:

mkdir -p <YOUR_PROJECT_ROOT>/components/
cd <YOUR_PROJECT_ROOT>/components/
git clone https://github.com/ShellAddicted/ESP32Servo.git

for more details see examples/

About

This idf-component permits to control hobby-grade servo motors using an Espressif's ESP32 SoC (running esp-idf)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 95.0%
  • CMake 4.1%
  • Makefile 0.9%