Servo control problem

July 8, 2024, 07:14

yakupturksoy

Hello, I have an MG996R 360 servo motor. We are using it for our competition project and were planning to control it with a Raspberry Pi 5, but after testing, I couldn't control it with the RP5. I tried a code with Arduino Uno and it was successful. I uploaded the same code to the ESP32, but the motor didn't respond. When I replaced the MG996R with an SG90 servo, it started responding. The code and power supply are the same, but while the Uno can run both the SG90 and MG996R, the ESP32 and RP5 can only run the SG90. Is there a solution for this? I think esp32 and rp5 working same because they can run sg90 but cant mg996R. İn arduino ı just giving 1200ms for rotate, 1500ms for stop and works. in this video ı upload same code to esp32 and uno. ı just change the signal input. İn our project we dont have much space for extra card so ı want to use 2 servo with rp5.

oops.se

3,3 volt is way outside the spec for most servos. Check the datasheet for MG996R and adding a "level converter" should solve it.