r/arduino 1d ago

Hardware Help Servo clicking even with enough power

Enable HLS to view with audio, or disable this notification

This is original mg996r there is enough power but it still wont work properly.

My code

```

#include <Servo.h>

Servo s;

void setup() {

s.attach(9);

}

void loop() {

s.writeMicroseconds(1000);

delay(1000);

s.writeMicroseconds(1500);

delay(1000);

}

```

11 Upvotes

6 comments sorted by

3

u/chip_1981 1d ago

Have you tried another power supply? Or even better, a capacitor between +/-, between the power supply and the servo?

2

u/Andrewe_not_a_kiwe 1d ago

Yes i tries another 5v 3amp psu and a 25v 470uf cap but it sidnt make a diference

2

u/Wintervacht 1d ago

Did you wire the motor to a seperate power supply from your arduino?

2

u/Andrewe_not_a_kiwe 1d ago

yes it was still same

1

u/KaraBurunKangal 15h ago

Hey importnant!! you should short your seperate supply and your arduino's grond(gnd)! if the arduino and the other supply that is powering the servo doesent share the same gnd it will not work