Why Did Servo Stopped Working?

For the discussion of Arduino related topics.

Moderator: phalanx

Post Reply
Brent B
Posts: 2
Joined: Fri Jun 30, 2017 12:35 pm

Why Did Servo Stopped Working?

Post by Brent B » Fri Jun 30, 2017 12:54 pm

Could I have fried something on my Arduino Uno, either firmware or hardware? It has been driving a pair of servos on pins 10 and 11 24/7 for a few years (activating them for a few seconds every eight hours), but now that I've added a SainSmart relay on pin 0 I cannot get the servos to work anymore, even on other pins, even after removing the relay and uploading backup software. I noticed that when I uploaded the new software, the relay chattered and its led flickered. I realize that pin 0 has something to do with communications, so I moved the relay to pin 10 and moved the servos to other pins too (not pin 0). Now the relay works fine on pin 10 but the servos still do not work. I also tried new servos.

Do I just buy a new Arduino, or is this fixable? I'm going to try some printf's to verify that I'm actually attempting to drive the servos, that something hasn't messed more with my code than I thought.

User avatar
Ross Robotics
Support Volunteer
Posts: 2007
Joined: Thu Jun 07, 2012 9:33 pm
Contact:

Re: Why Did Servo Stopped Working?

Post by Ross Robotics » Fri Jun 30, 2017 9:12 pm

Could I have fried something on my Arduino Uno, either firmware or hardware? It has been driving a pair of servos on pins 10 and 11 24/7 for a few years (activating them for a few seconds every eight hours), but now that I've added a SainSmart relay on pin 0 I cannot get the servos to work anymore, even on other pins, even after removing the relay and uploading backup software. I noticed that when I uploaded the new software, the relay chattered and its led flickered. I realize that pin 0 has something to do with communications, so I moved the relay to pin 10 and moved the servos to other pins too (not pin 0). Now the relay works fine on pin 10 but the servos still do not work. I also tried new servos.
You haven't gave us any details on how everything is connected. I hope you aren't powering the servos directly from the Arduino. You also haven't specified which Arduino you are using.
Do I just buy a new Arduino, or is this fixable? I'm going to try some printf's to verify that I'm actually attempting to drive the servos, that something hasn't messed more with my code than I thought.
So did it print anything??
------------------------------------------------------------------------------------------------------------------------------------------------------------
//codlink
Available for circuit and PCB design, just PM me!

Brent B
Posts: 2
Joined: Fri Jun 30, 2017 12:35 pm

Re: Why Did Servo Stop Working?

Post by Brent B » Fri Jun 30, 2017 10:16 pm

Problem solved. Accidental code change showed up with debugging. Thanks for your reply.

On your other point:
I've run 2 or 3 servos off of the Arduino for a few years 24/7 for 10-20 seconds every few hours. Seems to work fine. I'm guessing you think I should set up a separate power supply for the servos and connect grounds? What would you suggest I do?

jremington
Support Volunteer
Posts: 2339
Joined: Fri Jun 15, 2007 9:41 pm
Location: Eugene, Or

Re: Why Did Servo Stopped Working?

Post by jremington » Sat Jul 01, 2017 4:14 pm

It is amazing that the Arduino survived that. It was never intended to power servos, which can draw over an Ampere starting up or while straining.

You should always use a separate power supply for motors and servos, because they inject high voltage noise spikes, potentially damaging the uP and also overload the voltage regulator. Be sure to connect all the grounds.

Post Reply