I'm working with an ESP32-CAM and a PCA9685 to control a servo, but I'm facing an issue where the serial monitor shows no errors and indicates that the code should be working, but my servo is not moving at all.
Connections:
Using custom I2C pins on the ESP32-CAM:
SDA → GPIO 15
SCL → GPIO 14
The PCA9685 is properly powered via 5V for the servos.
Servo is connected to Channel 1 on the PCA9685 (signal to the second pin).
The most common mistake is to attempt to power the servo from the Arduino 5V output, which can actually damage the Arduino. Power the servo separately from a source capable of supplying 4.8 to 6V at 1 Ampere each for very small servos, 2.5 A each for large ones.
Suspected this but being Chirstmas the soft gloves were used.
Most of us helpers have a pretty good knowledge about insufficient powering being a usual cause for failure. Making a controller board conductor glow like a toster never ends well.....
Thanks, I tried that! However, still the same issue: the servos aren't moving. I think it may be a hardware issue but I'm not sure where since everything looks right.
I’m using an ESP32-CAM with a PCA9685 to control a servo. The servo is not moving, and I’ve confirmed with a logic analyzer that there is no PWM signal being output on the PCA9685's Channel 1. The serial monitor indicates that the code is running successfully, but there’s no movement or signal.
Cross-posting is against the Arduino forum rules. The reason is that duplicate posts can waste the time of the people trying to help. Someone might spend a lot of time investigating and writing a detailed answer on one topic, without knowing that someone else already did the same in the other topic.
Repeated cross-posting can result in a suspension from the forum.
In the future, please only create one topic for each distinct subject matter. This is basic forum etiquette, as explained in the "How to get the best out of this forum" guide. It contains a lot of other useful information. Please read it.
How do you know the servo is connected to the correct channel? Schematics, board pin out, silk screened label? The board looks like a clone of the Adafruit PCA9685 board but it is hard to tell from a photo. On the Adafruit board, channel 0 is on the side of the board with the large electrolytic capacitor. If that fails, check all the pins for PWM.