Search found 1 match

by flipflop
Sun Feb 23, 2025 10:00 pm
Forum: Hardware
Topic: Controlling a servo with ESP32-C3
Replies: 2
Views: 7561

Re: Controlling a servo with ESP32-C3

This worked for me using GPIO2 but the example from the ESP32Servo repo works using GPIO7 too.
This is using an SG90 servo taking the 5v straight from the board's 5v pin

#include <Arduino.h>

#include <ESP32Servo.h>

Servo myservo; // create servo object to control a servo
// 16 servo objects can ...

Go to advanced search