Servo? Answered

Whenever I connect an arduino to power (which has servos connected to it) the servos always go to the 90 degrees position first and then go through the code. Any way to prevent this from happening?

Question by SA-DIY   |  last reply


Huge Servo?

I read the instructable on how to turn a servo into a a geared motor, but with that board that is taken out of the servo, could you attach that to any motor and make much larger servos? kc

Topic by kcedgerton   |  last reply


Servo help

Do I need a motor shield for my arduino to use servos? Also where can i find REALLY cheap servos?

Topic by Alcreion   |  last reply


Servo to shaft ? Answered

Hello, I would like to ask if there is a way to couple a servo motor to a shaft. Thanks.

Question by flonect   |  last reply


PIcaxe servo? Answered

How to i control a servo with the picaxe can someone explain in detail i saw in the command section the servo and servopos commands but didnt quiet get it can someone plzzz explain it to me ang give a eg code for making a servo move from side to side .

Question by robot1398   |  last reply


Arduino And Servo

Hi..  i want a motor which can drive my robot at humans normal walking speed.. and also whose speed can be controlled dynamically.. Can anyone plz suggest me such servo or any dc motor.. motor should be compatible with arduino uno..?? 

Topic by amolamol   |  last reply


sensors and servos

I am working on a piece where I need to hook up 7 servo motors to the arduino (each rotating at a different speed, some in one direction, others in the other) but basically an on/off with a motion sensor. I am using a full rotation servo. I amusing an infrared sensor but the servo is still moving (awkwardly and jerky) when not sensing motion, but then runs as normal.Here is the code I am using (right now, I am only at 1 servo – trying to get the sensor right first) : #include Servo myservo;int potPin = 0; //analog pin used to connect the sensor int ledPin = 9; //select pin for the servoint val = 0; //variable to read the value from the analog pin void setup(){   myservo.attach(9); //set up the servo as usual pinMode(ledPin, OUTPUT); //variable to store the value coming from the sensor   Serial.begin(9600); //for watching the speeds in the serial monitor} void loop() { val = analogRead(potPin); // read the value from the sensor   val = map(val,0,600,0,255); if (val>80) digitalWrite(ledPin, HIGH); //turn the ledPin on    else if (val<80) digitalWrite(ledPin, LOW); //turn the LedPin off   Serial.println(val); delay(10); } – any suggestions?

Topic by wwischer 


Servo Help!

First of all, I'm not the best with Technology projects, just putting it out there in case its an obvious answer. Anyway, I have an arduino project that im working on. All it is is a servo that spins after 24 hours, I thought it would be a simple project (I've worked with arduino a little bit) and I wired it up correctly, I'm sure of that, but after I coded the program, the servo wouldn't spin! It just made a dull buzzing sound. At first  I thought it was my program, so i tried just about every basic "sweep" program i could find online about servos. Every program had the same result, a faint buzzing sound and no spinning. Next i thought, maybe the 5v wasn't enough to power the microservo, so i used a external 9v and ended with the same result, buzzing, no movement. Can Anyone Help me?! Please! Is it just a simple solution? Or is my arduino micro controller not working! Please help me because i would like to enter the project in a contest that ends soon! Thank You!

Topic by Waztsn   |  last reply


servo motor

Ok i was wondering if anyone can send me a parts list and very detailed directions and how to make a compact servo that i can make lift 150lbs and yes i know its a dawnting task  but i have fait in yee becuz idk how to do it myself :\ but whom ever does this will be listed on my finished product and credited on my product thank you and good luck :)

Topic by prini   |  last reply


Motors and servos

Please all, what motor could I use to create a to/fro movent?

Topic by ijem   |  last reply


Simultaneous but different servo sweeps with four servos?

Hi I want to run a sweep command for 4 servos off of one Arduino Uno simultaneously, but each at different rates. Currently I have figured out how to run 4 servos simultaneously but at the same rate, and how to run each at a different rate, but not simultaneously.  

Question by cloudsabio007   |  last reply


Arduino & Servo problem - servo overshooting/inaccurate

Hello Forum! So I'm planning to build a robotic arm and I'm testing servos for direct response to input values in degrees, in order to later build a code for forward and inverse kinematics. My problem is as follows: I've written some code to pass numbers to the motor from the keyboard. But my motor seems to be horribly innacurate and... well when I tell it to set itself at angle 90, it goes to like 110 or so. And in order to go from 0 to 180, I must pass 165 instead, because the servo goes beyond a half-full angle. Is it the motors fault or there should be some kind of additional feedback loop somewhere? With reactions like those, I could hardly build an RC car, not mentioning a robot. I add the code and I have filmed issue.     vid 2: https://drive.google.com/file/d/0B_oVtjTRcVtwTnRtQWJxd1NJSEk/view?usp=sharing     vid 1: https://drive.google.com/file/d/0B_oVtjTRcVtwdWg3ek80MUxLaEk/view?usp=sharing I count on you guys! Thanks in advance! #include Servo myservo; int Input(0); void setup() {   myservo.attach(9);   myservo.write(180);   Serial.begin(9600);   Serial.println("system initialized");   Serial.println("input configuration value: "); } void loop() {   while (1)     {         while (Serial.available())         {           Input = atoi(Serial.readStringUntil('\n').c_str());             if(!(Input<0 || Input>180))             {                myservo.write(Input);                delay(15);                  Serial.println(Input);                Serial.println("input configuration value: ");             }             else             {                Serial.print(Input);                Serial.println("?");                Serial.println("y u do dis?");                        }         }         break;     }   delay(15);

Topic by januszknur   |  last reply


Servos motion not smooth

Hi, im trying to program my servo to do a simple sweep (smooth motion). but instead it jerks a small degree everytime. the code i've used : #include Servo myservo;  // create servo object to control a servo void setup() {   myservo.attach(9);  // attaches the servo on pin 9 to the servo object } void loop() {   myservo.write(10);                  // sets the servo position according to the scaled value   delay(1000);                           // waits for the servo to get there   myservo.write(150);                  // sets the servo position according to the scaled value   delay(1000); }

Topic by fujiapple   |  last reply


Servo Controlled door

Hey I'm making an arduino controlled door. Will a servo provide enough torque to open and close a bedroom door?

Topic by fruitkid101   |  last reply


Transform a Servo into stepper?

Hi, I'm wondering if it is possible to transform, with mecanisms like in watchmaking, a sigle servo into a stepper. When the servo turns left, a crank will turn of a fixed amount of degree in the clockwise direction. When the servo turns right, a crank will turn of a fixed amount of degree in the anti-clockwise direction. The main advantage of this is that we can have a stepper motor created with a servo. I'm searching such projects without results... Am I the first one to think about this ? How can I imagine such a mecanical project ? Thank you

Question by janolap1   |  last reply


micro servo controlling?

hai guys, i have a micro servo motor . i planed to do hobby project with it . can any one guide me to make the servo turn around.  

Question by spicesharma   |  last reply


Picaxe and Servo problem

Ive been using this picaxe uC for a while and have had no problems, but in my latest project I wanted to pan a servo back and forth. Problem: for the life of me I can only get the servo to move in one direction. It is a GWS pico servo and I have "operated" it on 5v and 6v, so i dont believe it to be a voltage issue. coding issue perhaps? ( I have tried the SERVO command, the SERVO and SERVOPOS command, and even the correct PULSOUT commands to no avail) I have scoured other forums, even rev-ed.com's, but no one seems to have my same problem. As far as I know the SERVO command SHOULD work fine but doesnt. I have tried the commands with and without a 220 ohm resistor on the signal wire, but this seems negligible. When my picaxe 18x is loaded with any servo capable code and the connections are all hooked up, the servo simply moves all the way and stops. the only way i can "reset" my servo to its original position is by quickly removing and tapping the V+ or GND supply wire to the servo. after the servo has moved I can feel the tiny motor jiggle whenever I tap the signal wire as if trying to work. ANY suggestions are welcome!

Topic by Aleator777   |  last reply


servo programming on arduino?

Hi, i need a help on my arduino project. i need to make daily program my servo motor on arduino. for example; 23:00 at night ,it should turn right 90';  8:00 at morning, it should turn left(back) 90' also; when i need; i should turn this servo, left-right manually via internet. how can i make this, which component i should use, which commands i should use?  any tutorial, or samples like this? i found some examples on instructables like using servo via internet, Control a Servo over the Internet etc. but i dont know how make this two option together. ps my arduino level: intermediate  tI appreciate any help that you can provide :)

Question by herneise   |  last reply


Servos going crazy? Answered

So, I made this https://www.instructables.com/id/Make-A-Simple-Bidepal-Humanoid-Robot/ and after uploading the code for walking, instead of walking, the robot goes crazy https://vimeo.com/209730331 I have attached some pins a bit different from the original code but have adjusted that in the code by changing the attach commands. What do you guys think is the problem? I attached the horns to the servo using this guide https://www.youtube.com/watch?v=nOCagSi1OOU The other codes provided also don't appear to be working. Could it be that I have attached the servos to arduino the wrong way? I considered the right motor to be the motor which appears at the right when  the robot is viewed from the back (white part of arduino).

Question by SA-DIY   |  last reply


How to Control a Servo?

How do you control a servo? I know you can control it via Arduino or some other microcontroler, but can you control a servo with out the need of programing??? I know the servo has 3 wires red, black and yellow... and if what I heard is right, that yellow wire is for controlling it.... Thank you! Comodore

Question by comodore   |  last reply


servo drive circuit

Does anyone know how to make the circuit like the ones inside srevo motors? I am designing a sumo bot with radio control. I need to use contenuously rotating motors with lots of power to drive the robot. I do know how to modify my servos so they contenuously rotate, but I don't think they will have enough power to push around the other robots. I would like to use one of my 12v gearmotors instead of the ones contained in servos, but I don't want to destroy my servos to do it.

Topic by Stingray   |  last reply


Servo Mod help

Hi Every one thanks for looking at my post. I have a specific project where I need 8 servos which would need to rotate up to 360 degrees. Please note I do not need continuous rotation mod, which would make me loose servo angle control. Given that i ended up with 3 options 1. Buy a winch or sail servo - these are costly about $40 and not sure if they suite my need. 2. Add an additional gear with 1:2 or 2:1 ratio (not sure about the terminology) of the main servo gear ( attached to pot); Servo rotates about 230 degrees now, so limiting it to 180 degrees from code and with the additional gear and modification I can get a 360 rotation on the added gear and use that as my main servo drive. 3. Replace current potentiometer with a multi-turn one ( available for around $2) with similar resistance value, this along with the potentiometer gear stop peg removal would give more than 360 degree rotation. Servo control would not be effected as resistance value is same and angle must be limited from code to keep the potentiometer from going to the end limits. I am just preparing and calculating the current gear values to decide on the specs needs for the gear mod. I need to measure servo pot values to find a suitable multi-turn pot. I would really appreciate if any one could comment on my approach and any alternatives. I wish some one had tried these before and could share their experience. Thanks Satya

Topic by sguthula   |  last reply


SUPER accurate servo?

I need to make a device that can move two small servos within 0.01 or less degree rotation (yes, degrees, not radians!).  Currently, everthing I've seen comes up greater than half a degree.  It must have position feedback (stepper without encoder won't work), and the whole thing must fit in a 1/2"x6" tube.  It only needs to move maybe 30-40oz-in, but will always have that load (so backlash isn't a huge issue, but still should be minimal).  A COTS device is best, but it can be homemade, preferably under $50 or so, maybe up to $100 max.  It doesn't need to move fast or continuously, maybe 90 in 0.5 seconds.  It will be run by a microcontroller with a lot of IO pins, and PID control.  Any ideas, products or anything would be great, Thanks in advance. 

Question by jduffy54   |  last reply


Anamatronic servo help!

I'm building a basic anamatronic arm, and I need help in the land of servos. I am pretty much new, so could someone explain to me what oz. inches are, and if possible, reccomend arduino- compatible servos? Thanks a bunch! 

Question by Mr. Jimmeh   |  last reply


Gears for Servos and Steppers

Hey guys (and gals), I've been researching this a lot, but I still haven't the solution.  When you are working on a project and you need a gear for your stepper or servo, where do you acquire it?  For example I work a lot with TowerPro 996 servos, but I haven't found any third parties selling gears for them.   Same thing for motors.  If you are using a stepper motor, like a NEMA or something where do you find a gear that attaches to it? 

Topic by Deft Punk   |  last reply


Where are the best/cheap servos? Answered

I'm looking for the most highest quality servos there is to buy. Or the cheapest.

Question by Alcreion   |  last reply


How to "size" a servo motor? Answered

I have a 28lb solar panel that I'd like to position with servo motors, but not having worked with Servos I'm having a tough time trying to understand how to size the servos that I'll need. I'm finding a ton of "hobby"/"toy" servos that are rated at 25/30KG but am I under/over-thinking that would equate to the ability of those servos handle the full weight, if centrally positioned, of a 28lb array? I get that if they weren't centrally positioned I'd need to figure in leverage weight multiplication, etc., but if they were positioned in the center of the array to form 2 axises would a 30KG servo be able to handle the weight of the array?

Question by ZacWolf   |  last reply


Connecting 12 Servo to Arduino

Hi all, I am building a spider-bot using an Arduino and 12 servos (at finish it will be 18 I am waiting for the Arduino mega to arrive) do I need to set something in my Arduino so it will be able to control so many servos?it seems that if I try to connect more then 2 it goes nuts. Thank you.?

Question by YotamB   |  last reply


What are continuous rotation servos?

Does 'continuous rotation servos' run on commands like myservo.write(360) (for Arduino servo library)?

Question by sarveshk   |  last reply


2 Position Servo Controller

I need some help, I am trying to create a damper control using a servo and a 555 timer. Is there anyway that you can use a 555 timer to make a servo move back and forth between 2 positions (0 degrees and 90 degrees) with an with and on/off signal and not a pot? So when the thermostat sends power, the damper moves to 90 degrees, then when the thermostat shuts off the servo returns to 0 degrees? Thanks for the help in advance. -Ryan

Topic by WingmanSVT   |  last reply


Control a servo without programming

Has anyone seen this project? http://makeprojects.com/Project/Control-a-Servo-Motor-Without-Programming/990/1 I am trying to do it, but I don't see where to put the potentiometer in the circuit. Although I have built a few kits I am pretty inexperienced with circuits. Am I missing something? I have built most of the circuit on a breadboard. I will post a picture when I am done.

Topic by ehudwill   |  last reply


How to control a servo with a switch?

As above i was wondering how to fully turn a servo and turn it back just with a switch It's for a dashboard sat nav box that flips up (Might add it on here) Thanks 

Question by webby0121   |  last reply


Pushbutton Servo Control with a 555

I've found numerous write-ups on getting a servo working with a 555 IC but it's not quite the functionality that I'm looking for. What I'm trying to do is have two buttons go to a predetermined position but the write-ups have two buttons that just go clockwise or counterclockwise. I know this can be done with an Arduino but I'm trying to avoid that route so I can keep the footprint as small as possible. I've attached a picture of the schematic I was working from.

Topic by XAlliedYouthX   |  last reply


Arduino servos move to music

Hi, so I'm new to arduino and I'm wanting to link arduino to processing. I then want to be able to make servos move to the beat of music that i have loaded on to processing using the computer as a network but I can't seem to find much info anywhere else and was hoping that someone could enlighten me on the process that i should be taking or able to help in anyway would be much appreciated. Thanks  

Topic by TianL4   |  last reply


Rc Servo motor trouble! Answered

I recently took apart a RC Jet Ski. Within the Jet ski there was a servo for the rudder. I Need to know what wire leading up to the RC servo motor do? (green and brown). If I were to take the wires and use them on something else what shall I control them with? My first thoughts were that sending an electrical current though the postive, would make it turn one way, and by the RC control, electrical currents could be past though postive and negative to make it turn left and right. I know what all of the other wires. Thanks Oscar 

Question by oscarthompson   |  last reply


sliding pot controlling a servo?

I've been trying find a way to recreate this for some time now, but can't seem to figure out the schematics. anybody know?http://www.youtube.com/watch?v=6kQUyc38IHE&feature;=related

Question by explosive_bagels   |  last reply


A couple of servo related questions.

I was thinking of doing some sort of robotics for the upcoming microcontroller contest, and need to reduce the weight of my design. So, try and lighten the battery pack, and give more current, I want to use 2XAAA @ 3V, instead of regulating a 9V cell down to 5V. The PIC supposedly will run on 2V. So the question is, how well will a servo perform on 2.5 to 3.0V, and what will the current draw be with a light load (I have heard that they can draw a couple of amps with a very heavy load).  Also, I have some 4V lithium ion cells out of a laptop, and need to charge them (They last so long on one charge, that I have not had to charge them since removing them from the laptop).

Topic by The Skinnerz 


what is the connector for a servo called?

The three wire plug that you hook a servo into, what is it called? i am making an rc car and my reciver has the exact same 3-pin port like on a servo, except male, and i need to get a battery pack for it.                                                                                                                                                                          ,thanks in advance

Question by myakka   |  last reply


Power supply (6 servos)?

Hi guys! I do have question on power supply for my multiple servos. I need a power supply that can provide an enough voltage and current for my servos. Do you have any recommendation for my supply? Throughout my reading, i've found that each servos requires 1A so if i have 6 servos means 1A X 6 = 6A at least to support my servos

Question by naqibzainudin   |  last reply


555 timer and servo help? Answered

Hello, I just finished building this instructable: https://www.instructables.com/id/The-Most-Useless-Machine/step6/Original-Design-Using-555-Timer/ However, I have run into a couple of problems with the 555 timer and the servo. As suggested by someone in the comments section of that instructable, when the server turns on it is consuming enough current to drop the voltage enough to mess with the 555 timer's PWM output (I do not have an oscilloscope, so I can't really prove this). Whenever the servo starts, it works properly for a couple of seconds, then it starts acting very strange, stuttering, going the wrong direction, ect... I'm thinking if I add a capacitor the the power source, it will help stabilize the voltage, but i'm not sure if this will work. Any help and/or suggestions would be greatly appreciated. Circuit is running at 6v (4AA cells) Servo runs at minimum 4.8v to max 7.2v

Question by psp3601   |  last reply


Controlling servo direction with arduino Answered

So, I'm trying to control two servo motors for a robotic arm. I can't seem to figure out how to make two servos go opposite directions at the same time. This is needed as I have two servos facing opposite directions driving the same beam (If they're told to go the same direction, because they are facing opposite directions, they'll rotate opposite directions). Currently I'm using this code to rotate them both: for(pos = 0; pos < 180; pos += 1)    {                                    myservo.write(pos);                  delay(15);                        } and then using the same code, only replacing the top part with   for(pos = 180; pos>=1; pos-=1) to return to the original position. How do I make both servos go opposite directions though, so they can both be used to lift a beam at the same time?

Question by 0xCyrusx0   |  last reply


Using a photo sensing servo.

Hey guys I am trying to get a servomotor which is attatched to a photo sensor to read a light source.  I have servo attached to analog pin 1 and using analogRead to read the value, but I want the maximum value it reads.  Any ideas

Topic by dsm5286   |  last reply


Waterproofing RC servo connections?

Hi everyone. I have used epoxy to waterproof my RC receivers. I have thought that there is no need to waterproof the connections because it is only 6V and not enough to corrode the connectors. I still want to be able to swap my receivers between models. I have splashed through puddles before but not completely submersed it in water. So is there any reason that I should be waterproofing these connectors? Or is the voltage not enough to cause any problems? Thanks, David.

Question by David97   |  last reply


Arduino + Processing + Servo control

Hello there! Im new to processing and i need some help. I have written some code that works but badly.  SImply all its meant to do is take the my keyboard input ( with proccessing) and based off that turn a servo left or right. How ever i encounter a weird problem. For the servo to turn i have to press each key on the keyboard twice.... and also when i hit 'w' there is a big delay of about 2 seconds for no reason... The processing code: import processing.serial.*; Serial myPort; void setup() {   myPort = new Serial(this, Serial.list()[4], 9600);   println(Serial.list()); } void draw() { } void keyPressed() {   switch (key) {   case 'w':     myPort.write('1');     break;   case 'p':     myPort.write('2');     break;   default:     myPort.write('0');   } } The arduino code: #include Servo myServo; int ledPin = 13; void setup(){   Serial.begin(9600);   pinMode(ledPin, OUTPUT);   myServo.attach(9);   myServo.write(0); } void loop(){   int val;     val = Serial.read() - '0';   while (Serial.available() == 0);   if (val == 1){     for (int i ; i < 180; i ++){       myServo.write(i);           }   }   if (val == 2){     for (int i ; i < 180; i--){       myServo.write(i);     }   } }

Topic by lelegriccioli 


Controlling a servo with a Micro-controller?

So I decided to spend some time to make a "gimbal" in a very loose sense. Basically I was experimenting using a square wave oscillator to generate the correct PWM to have a servo rotate between 0 and 180 degrees when a tilt sensor is tripped. After some research multiple sites said having a 1ms pulse every 20ms would have it move to the 0 degree position. Great so I will make a oscillator pulses ~1ms on one side and 19ms on the other. However this does not seem to be working. I am curious if it is a fault in my math or if the tolerance on the parts I am using are just too wide to be any good. Here is a diagram of my set-up with the values a came up with. One spot that may be weak is that I just notice someone somewhere mentioned using 50Hz for the timing I just used that number when I calc my figures. Any feedback?  Also a side note is that I have been able to move the servo in one direction only and by accident ( in fact it's what inspired this project) when C1 & C2 were 2.2nF and the R1 & R2 were 10k potentiometers that I turned until something happened. Now that I am trying on purpose no results. 

Question by Jayccob   |  last reply


Where can you buy servo motors in canada? Answered

Hey i was just wondering where the best place in canada is to buy servo motors

Question by Pyro the maniac   |  last reply


Servos are reversed with servo.h for my stuff?

I am new to Arduino, but i have spent quite a while today proving that 1500 is neutral but 1700, 1900 , and 2000 is LEFT not RIGHT.  I used two servos as well as two different arduino program style to prove  (myservo.write(30) and writeMicrosends(2000). What Am I doing wrong?  Thanks!

Question by knotlikely   |  last reply


anybody knows what company manufactures SG90 servo?

Hi, I recently need a large quantity of SG90 servo. I only find those sellers from Aliexpress or Allbuy, but I need to contact in business way with a specific company that produces SG90 servo motor in real. Anybody knows a answer? Thanks.  

Question by 기운서   |  last reply


How can you increase the range of a servo without losing the positioning feedback system?

I am trying to use them for the joints of a robotic arm. I have the Towerpro mg996r servo. Also the servo won't attain full ranged that can be reached when turning it by hand. By hand I can turn it about 240 degrees but through a micro-controller (arduino mega 2560) it only turns about 180 degrees. If it can get the range that I can get by hand that would also be enough. I might be using the incorrect code or something, not sure exactly what the problem is. I would greatly appreciate any help or ideas.  

Question by Science102   |  last reply