Offline
Newbie
Karma: 0
Posts: 4
|
 |
« on: March 20, 2013, 08:33:56 pm » |
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
Faraday Member
Karma: 27
Posts: 5078
Where's the beer?
|
 |
« Reply #1 on: March 20, 2013, 09:39:43 pm » |
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
|
|
|
|
|
0
Offline
Tesla Member
Karma: 50
Posts: 6540
Arduino rocks
|
 |
« Reply #2 on: March 20, 2013, 10:50:48 pm » |
Servo external power wiring. 
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 4
|
 |
« Reply #3 on: March 22, 2013, 04:53:38 am » |
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
Offline
Edison Member
Karma: 34
Posts: 1705
|
 |
« Reply #4 on: March 22, 2013, 04:57:41 am » |
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
|
IT Crowd: Roy... "Have you tried turning it off and on again?" Moss.. "Have you tried forcing an unexpected reboot?"
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 4
|
 |
« Reply #5 on: March 22, 2013, 05:26:33 am » |
Found the problem. Pretty ashamed to say that the battery was dead. switched it out just now and its working fine 
|
|
|
|
|
Logged
|
|
|
|
|
Johannesburg UTC+2
Offline
Edison Member
Karma: 34
Posts: 1705
|
 |
« Reply #6 on: March 22, 2013, 05:28:02 am » |
the only thing i havent changed is the arduino. Oh, and the battery... 
|
|
|
|
|
Logged
|
IT Crowd: Roy... "Have you tried turning it off and on again?" Moss.. "Have you tried forcing an unexpected reboot?"
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 4
|
 |
« Reply #7 on: March 22, 2013, 06:01:22 am » |
haha
|
|
|
|
|
Logged
|
|
|
|
|
Caracas
Offline
Newbie
Karma: 0
Posts: 5
the destiny is yours
|
 |
« Reply #8 on: March 25, 2013, 10:07:18 am » |
It happens! 
|
|
|
|
|
Logged
|
|
|
|
|
India
Offline
Newbie
Karma: 0
Posts: 2
|
 |
« Reply #9 on: April 14, 2013, 04:28:06 am » |
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
Offline
Edison Member
Karma: 34
Posts: 1705
|
 |
« Reply #10 on: April 14, 2013, 04:35:51 am » |
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
|
IT Crowd: Roy... "Have you tried turning it off and on again?" Moss.. "Have you tried forcing an unexpected reboot?"
|
|
|
|
India
Offline
Newbie
Karma: 0
Posts: 2
|
 |
« Reply #11 on: April 14, 2013, 06:47:02 am » |
phew! thanks a lot!  i feared my arduino was not proper.
|
|
|
|
|
Logged
|
|
|
|
|
|