Hey, I have a continuous rotation sensor and trying to get it working. Mostly I have just clicking sounds only sometimes if I set the number value to like 75 it rotates. But not sure how long, it makes several rotations into that direction.
I am trying to get it running for x seconds into left and x seconds into right direction. So I later want to calibrate how long it needs to run until it has completed it task, maybe also with just a button for open/close.
Here is my config I have yet from videos, docs and samples
That servo draws briefly ~1.2A when it starts movement and Esp is not able to supply it. You should power it directly from 5V(>1.5A) supply. If Esp is not powered from the same supply, you need common GND between servo and Esp.
Could you show the wiring how it should be if i power the servo from another power supply? I use a usb-c power supply for the esp and would need another one then for the servo.
Thanks for the help so far. Can you also help with the config? How can I add a button to move the servo for x amount of time left and a button for right?
While I haven’t used a continuous rotation servo before, I have connected two ‘regular’ servos to a ESP32cam to turn it into a PTZ camera. I’d share two tips that helped me greatly:
Add a capacitor to the Vin and GND pins of the ESP32. Whenever you start a servo, it draws a huge amount of current and even if your supply is rated for it, there’s a chance that it could lead to a reboot of your chip. I don’t remember off the top of my head the capacitor size, I think it was a 22-100 uF. Adding this eliminated a lot of random behaviours with the ESP32
Look into the multiple PWM channels available on the ESP32. My chip had a WS2812 LED strip along with the two servos and I found it is necessary to have the PWMs for each on different channels else they interfere with each other