Arduino disconnects after servo movement – sudden issue!

Hello everyone,

I'm working on a university project where I implemented an EMG-controlled robotic hand with 5 servo motors. The sketch has been working flawlessly for weeks, but today, out of nowhere, I started experiencing two major issues. I haven’t changed anything in my setup, so I’m really confused about what’s going wrong.

:one: One servo motor suddenly stopped working

  • The servo was working fine before but now doesn’t respond at all.
  • I tried switching it to different PWM pins, but it still doesn’t move.
  • Because of this, I assume the servo itself might be defective.

:two: Arduino disconnects from the PC after every gesture

  • After recognizing a gesture, the servos move accordingly, but then the Arduino disconnects from the PC, and the serial connection is lost.
  • I have to reconnect the Arduino manually to be able to upload code again.
  • I’m already using a 5V power supply as an additional power source for the servos.

:warning: Additional Information & Disclaimer:

  • I don’t want to share my code since this is a university project, but I believe the issue is not in the code, as everything was working perfectly until now.
  • I'm using an Arduino Uno R3 with SG90 servo motors.
  • The servos are connected through a Grove shield on the Uno, using the corresponding Grove cables, since my EMG sensors only have a Grove connector.

Since these issues started randomly without any changes to my setup, I don’t know where to start troubleshooting. Has anyone experienced something similar? The unexpected disconnection of the Arduino after each gesture is the biggest problem.

Thanks in advance for any help! :blush:

The bold faced type is distracting and pointless.

Most likely, you are making the common mistake of powering the servo from the Arduino 5V output., which can damage the Arduino, cause it to malfunction, and possibly even the computer connected to it.

Use a separate power supply (4xAA for 1-2 small servos). Don't forget to connect the grounds.

1 Like