Closed cstoker2 closed 2 years ago
The recent ESP32 core v2.0.3 has introduced some breaking changes, resulting this and the other ESP32_New_ISR_Servo library stop working.
The temporarily fix you can use now is using the ESP32_ISR_MultiServos example with the following change
to
#define USE_ESP32_TIMER_NO 0
and use pins GPIO2 and GPIO4 for the servos.
It's quite simple to modify for just 1 servo, by deleting all references to servoIndex2
Also remember to change the pin usage according to your board.
I'll spend time to fix the library, if time permitted and there are more requests.
You can also go back to previous ESP32 cores and figure out which one is working. I don't have time now for that job.
Hi @cstoker2
You now can use the ESP32_New_ISR_Servo releases v1.2.0 with ESP32 core v2.0.3
TIMER_INTERVAL_MICRO
to 12uS
from 10uS
. Tested OK with ESP32 core v2.0.3 now)Hi @cstoker2
You now also can use the ESP32_ISR_Servo releases v1.3.0 with ESP32 core v2.0.3
TIMER_INTERVAL_MICRO
to 12uS
from 10uS
. Tested OK with ESP32 core v2.0.3 now)Thanks for the update! Works!
I'm not able to get the example "MultipleServos" working (nor any of the other examples...) This is using library 1.2.1 on an adafruit esp32 feather. esp32 core 2.0.3 is installed on arduino ide 1.8.19 on windows 10 machine
I get no pwm output on any of the pins A0 - A5 on the oscilloscope.
Here's the serial output I get:
(and it just hangs there)
Is there a simpler example? perhaps just a single servo? Thanks
Here's the full code of the example: (comments and pin definitions from the top removed for brevity)