Motor not working, what could be the reason? image/links included

I got this "gobilda" motor connected to their speed controller. According to their website's link : "it can be plugged to an Arduino or anything that can produce a PWM signal. It responds proportionally to a signal between 1050 - 1950 microseconds."

Pin 6 on my Redboard (Uno equivalent) is PWM. I even tested it with a LED to make sure pin 6 is producing PWM and it seemed to be blinking accordingly. What am I missing?

motor: 5203 Series Yellow Jacket Planetary Gear Motor (26.9:1 Ratio, 24mm Length 8mm REX™ Shaft, 223 RPM, 3.3 - 5V Encoder) - goBILDA

Speed controller: 1x15A Motor Controller - goBILDA

join the GND of your Arduino to the GND of the gobilda

Like so? Still ain't moving...

Btw this is the code

#include <Servo.h>

Servo motor;
const int motorPin = 6;
const int minMicros = 1050; // Minimum pulse width in microseconds
const int maxMicros = 1950; // Maximum pulse width in microseconds
const int halfSpeedMicros = (maxMicros + minMicros) / 2; // Halfway between min and max

void setup() {
  motor.attach(motorPin);
}

void loop() {
  motor.writeMicroseconds(halfSpeedMicros);
}

It seems that you didn't connect the power source of your controller. Aren't his the thick black and red wires?

As @MicroBahner pointed out you need to connect the motor power supply to the 12-24V IN
Do NOT connect anything to the Receiver red wire

Red and black thin wires are also power source, the thick ones are for the gobilda receiver

I think you'll find the three wire is for the receiver and the larger (heavy duty) wires are for the motor supply! :thinking: As [jim-p] alludes , DON'T connect anything to the Receiver red wire!

The thick ones are for the motor power supply
The thin ones are for the receiver but you don't have a receiver.

Understood... but strangely still no movement

The motor power supply needs to connect directly to the 12-24V IN wires, NOT through the breadboard. DO NOT connect the Motor power supply ground (black wires) to the Arduino GND

Connect the receiver black wire to the Arduino GND

This discussion highlights why a good clearschematic is so important as a STARTING POINT, along with a proper understanding of DC circuits.

Aside: With those loose wires and alligator clips floating around there’s a huge risk of frying the receiver, controller and possibly the power supplies.

1 Like

Like so?

Always glad to hear feedback, will be happy to learn what to do better next time!

Perfect!

Why not? Should've the BEC get voltage too?

Hm, still not working unfortunately. Got the 12V on the DC power supply. Are you sure I shouldn't connect the thin red wire of the BEC to the arduino? your comments made me apprehensive to do so!
For the record, I did check the BEC with the original receiver 5 minutes and the motor works, so I didn't fry it. It's the arduino setup that still has me scratching my head.

Yes. That wire supplies power to the receiver when it is connected to an RC receiver.
If it's still not working then it's something in the code.

Yep, it works now! Thanks!

Just in case you have problems again, put a 50 millisecond delay (delay(50)) after the writeMicroseconds
Have fun!

1 Like

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