Gobilda servo motor does not respond to code

Hi there!

We have a Gobilda servo motor that automatically closes as soon as you turn on the Arduino Mega board.

We decided to use another servo motor brand to test our code. They worked fine, no issue.

We're not sure why the Gobilda servo motor does not do the same.

Any help would be much appreciated.

Gobilda motor link: 2000 Series 5-Turn, Dual Mode Servo (25-4, Super Speed) - goBILDA®

Also here's our code:

#include <CrcBuzz.h>
#include <CrcLib.h>
#include <CrcNeo.h>
#include <CrcRemoteState.h>
#include <CrcXbee.h>
#include <Servo.h>
using namespace Crc;
Servo myservo;  // create servo object to control a servo
const int servoPin = CRC_PWM_5;

void setup() {
CrcLib::Initialize();
Serial.begin(9600);
myservo.attach(servoPin);
myservo.write(90);
}
void loop() {
int RightStickVertical = CrcLib::ReadAnalogChannel(ANALOG::JOYSTICK2_Y); ///reads the right joystick value vertically

int servoAngle= map(RightStickVertical, 0, 1023, 0, 180);
bool R1  = CrcLib::ReadDigitalChannel(BUTTON::R1); // Sets up  R1 as a button. 
bool L1  = CrcLib::ReadDigitalChannel(BUTTON::L1); // Sets up L1 as a button. 

CrcLib::Update(); 
myservo.write(0);
if(L1){
  myservo.write(-180);
}

Can you describe this better?

If a different motor works, then your code is written and hardware is configured for the different motor.

Do the same what?

Show a drawing and a photo of your wiring. Include the power supply specifications.

Are you using the required separate servo power supply, capable of supplying at least 3 Amperes at 4.8 to 7.4V?

@jremington, yes, we have a 12 volt battery attached to the arduino Uno board.

Which does not answer the question above, and cannot power the servo, without using a separate stepdown regulator.

Would the servo not get the battery power if the servo is plugged into a PWM port and the battery is plugged into the arduino 12v port on the board?

It's our first time using servos so we are really just treating them the same as the motors that power our wheels for example.

From your servo's data sheet:

Voltage Range 4.8V - 7.4V

So if you're powering the servo from the 12V battery, you've killed it. Or soon will.

And if you're powering from the 5V pin on the Arduino, you'll kill the Arduino. Again from your servo's data sheet:

|Stall Current (4.8V)|2,000mA|
|Stall Current (6.0V)|2,500mA|
|Stall Current (7.4V)|3,000mA|

The on board 5V regulator could do 10% of that. Maybe 15%.

Unless you are using a separate stepdown regulator that can provide sufficient current for the servo, as @jremington has already brought up, you will not succeed.

I do wish people would learn to read data sheets. So often all the information you need to answer the questions "will this work" and "why isn't this working" is in there.

Alright thank you for your explanation. We will look into that.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.