Pages: [1]   Go Down
Author Topic: Servo problems - makes arduino connect and disconnect over and over  (Read 1686 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

So I have tried 2 different types of servo and 5 in total and they all do the same thing. I am trying the servo sweep example and it just makes the arduino connect and disconnected every second. The wires are orange to 9, red to + brown to -. and i have tried other combos as well. I have tried different pwm pins and analog pins but it isnt working!!! I think theres something wrong with the arduino.
I have tried different computers, different servos, different wire, different combos of wires, the only thing i havent changed is the arduino. But it (the arduino) works fine with led's and buttons. WTF IS HAPPENING???
Logged

Phoenix, Arizona USA
Offline Offline
Faraday Member
**
Karma: 41
Posts: 5611
Where's the beer?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Have you tried using an external supply for the servo? It could be that the servo is drawing too much current, causing a sag and resetting the Arduino. You don't indicate what servo you have (ie, model, manufacturer, etc) nor do you say what "+" and "-" mean, so all I can go on is that you are trying to power the servo from the Arduino itself.

...and yes, while the tutorial shows this, that will only work properly with -some- low-current servos, and not while they are under load; you should always power servos from their own power supply, not from the Arduino's 5 volt regulator.
Logged

I will not respond to Arduino help PM's from random forum users; if you have such a question, start a new topic thread.

0
Offline Offline
Tesla Member
***
Karma: 147
Posts: 9747
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Servo external power wiring.

Logged

Consider the daffodil. And while you're doing that, I'll be over here, looking through your stuff.   smiley-cool

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have tried a 6v external which should definitely be sufficient but it still isnt working. With the external battery it does nothing, no buzzing, no sound nothing at all. I'm sure i am doing it right and I double and triple checked using the diagram zoomkat provided.
I have 2 different types of servos but preferably i would like to use the corona.
Corona CS-929MG
TowerPro SG90
Logged

Johannesburg. UTC+2
Online Online
Faraday Member
**
Karma: 113
Posts: 4937
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I'm sure i am doing it right and I double and triple checked using the diagram zoomkat provided.
Best post a pic of what you have then.... photo of hand drawn sketch would be ok
Logged

The Elders of the Internet know who I am
I'm on LinkedIn: http://www.linkedin.com/in/jimbrownza

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Found the problem. Pretty ashamed to say that the battery was dead. switched it out just now and its working fine
 smiley-red
Logged

Johannesburg. UTC+2
Online Online
Faraday Member
**
Karma: 113
Posts: 4937
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
the only thing i havent changed is the arduino.

Oh, and the battery...  smiley-twist
Logged

The Elders of the Internet know who I am
I'm on LinkedIn: http://www.linkedin.com/in/jimbrownza

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

haha
Logged

Caracas
Offline Offline
Newbie
*
Karma: 0
Posts: 5
the destiny is yours
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It happens!  smiley
Logged

India
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello ppl...
had the same problem as mrronoah..but that "external supply to servo" solution worked and now it is working fine...
but i have a doubt...
that pin 13 internal led glows when i am using the servo sweep code even though its not defined in d code...
why is that happening? is that ok?
or is my arduino not working properly?
Logged

Johannesburg. UTC+2
Online Online
Faraday Member
**
Karma: 113
Posts: 4937
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

that pin 13 internal led glows when i am using the servo sweep code even though its not defined in d code...
why is that happening? is that ok?
or is my arduino not working properly?

Seems that's nothing to worry about: there's been a lot of discussion about that here, and iirc the led on 13 being on all the time seems to have snuck in on a certain version. I'm hazy on the details. Mine is on by default, and it annoys the crap out of me, so I just throw a digitalWrite in at the top of each sketch to turn it off.
Logged

The Elders of the Internet know who I am
I'm on LinkedIn: http://www.linkedin.com/in/jimbrownza

India
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

phew! thanks a lot! smiley
i feared my arduino was not proper.
Logged

Pages: [1]   Go Up
Jump to: