-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mod to make this work for ESP32s (solved) #2
Comments
I did get this working for ESP32s by using the Arduino IDE Library Manager to install the unique ESP32 servo library (ESP32Servo), and then modifying line 16 of ESC.h to point to that instead of Servo.h, fyi. Here's the modified Knob Example: /* 27 April 2017 Servo & Knob links /* Note: the following code is a modification of the Knob Example that
#include <ESP32Servo.h> // ESP32Servo library installed by Library Manager #define ESC_PIN (33) // connected to ESC control wire // Note: the following speeds may need to be modified for your particular hardware. ESC myESC (ESC_PIN, 1000, 2000, 500); // ESC_Name (PIN, Minimum Value, Maximum Value, Arm Value) long int val; // variable to read the value from the analog pin void setup() { // the following loop turns on the motor slowly, so get ready void loop() { |
Thank you! I've been occasionally looking at doing this and you have now helped me achieve such a thing! The possibilities now are immense! :D |
No description provided.
The text was updated successfully, but these errors were encountered: