Pages: [1]   Go Down
Author Topic: Problems with controlling Tower pro SG90 servo  (Read 5160 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi everybody,

I am working on a Robotic gripper. to open en close the gripper a Tower pro SG90 micro Servo is used.
while i was testing the robotic gripper some strange things occurred. the servo sometimes starts sweeping (goes to 180 degrees than goes to 0 degrees and repeats this process) randomly.
at first i thought that is was a fault in my program. so i loaded "Servo knob" from the sketches included with the Arduino program. same thing happens.
hooked up an different servo (other brand) no problems whatsoever.

so my feeling says that the problem lays with the servo. i have multiple servo's and every one off them works as it should except for the 4 Tower pro's
so i started searching for information about the SG90. which lead me nowhere. only things i found where:

-Homepage off Tower Pro containing almost no information whatsoever: http://www.towerpro.com.tw/viewitem1.asp?sn=584&area=50&cat=159
-A guy that controls a SG90 with a ardumoto (pulse range 600mS to 2100mS): http://mechomaniac.com/ConnectingServosToTheArdumoto

does somebody know what the problem could be?

Robin
Logged

0
Offline Offline
Tesla Member
***
Karma: 141
Posts: 9470
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
does somebody know what the problem could be?

Does the servo get warm? As the other servos work as expected, the SG90 might be bad. The servo get warm? what you describe could be the result of the servo not being properly connected to the arduino/power supply ground.
Logged

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

New Jersey
Offline Offline
Faraday Member
**
Karma: 65
Posts: 3638
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Sounds as though it might be power related, how is it hooked up? Unlikely to be a bad servo if there are four acting the same though - did you test them all?
Logged

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

Hi Everybody,

Problem is solved! it was a power problem. when i use the 5V pin from the Arduino to power the servo than the servo starts sweeping. if i use a 12v power supply and a LM7805 the servo works fine.
could my on board voltage regulator cause the problem?

Robin
Logged

0
Offline Offline
Tesla Member
***
Karma: 141
Posts: 9470
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
could my on board voltage regulator cause the problem?

Servos should not be powered from the arduino. I don't understand how the other servos worked also being powered from the arduino, or were you powering them from an external power supply?
Logged

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

Dubai, UAE
Offline Offline
Edison Member
*
Karma: 22
Posts: 1675
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

To save myself from typing I have added two relevant links to my signature. Read the first one and watch the second one.

If your project is going to be a big one, you will need a better regulator than the 7805, its good for an amp, you might need several amps as your project grows.

Duane B
Logged


0
Offline Offline
Tesla Member
***
Karma: 141
Posts: 9470
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Note that the output of a 7805 regulator chip can be increased to ~5.7v using a small diode on the 7805 ground pin like below. Much improves servo performance.

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: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi everybody,

i am aware that is is not possible to power more than 1 servo from the Arduino. i have bought this power supply:
http://hobbyking.com/hobbyking/store/uh_viewItem.asp?idProduct=16663
this will be powered by an 12V lead battery.

i thought that is was possible to power one servo from the Arduino because that is how the show it in the learning section under Servo library: Knob.

Robin
Logged

Pages: [1]   Go Up
Jump to: