A servo is a type of motor which uses a feedback mechanism for precise control of speed and position.

learn more… | top users | synonyms

2
votes
1answer
23 views

Automatic/manual door lock with servo

I'm building an automatic door lock, which is moved by a servo ( this one ). However, I want to still make it possible to open the lock manually, but it's not possible if the servo is attached to the ...
3
votes
3answers
35 views

Why does my Arduino freezes when i turn a servo

I have a Servo Motor and an Arduino Uno. I used the Arduino to run a servo motor. The code was very simple. It was to just Turn it 90 Deg Anti-Clockwise when a switch is pressed and Turn back to its ...
0
votes
1answer
73 views

Could you tell me what is wrong with this Arduino code?

void fn( int pin, int pos) { Servo temp; temp.attach(pin); temp.write(pos); delay(15); temp.detach(); } void loop() { int pos = 0 ; for (pos = 0; pos <= 180; pos += ...
0
votes
0answers
27 views

Issues controlling a servo robot arm with joysticks via nRF24L01 communication

I printed parts of the robotic arm, placed five properly working servos on it, and connected them with the Arduino. Also, I connected a nRF24L01 for radio communication between this Arduino and an ...
2
votes
1answer
13 views

Arduino Servo Free Rotation

I have a project where I use 22 servos. I attach all 22 of the servos in the setup and in the loop, I use myservo.write() command to make a particular servo move to a particular position. The ...
0
votes
0answers
13 views

Arduino + MG996R servo

I have a problem with my TowerPro servo. When I connect it to my Arduino board it starts to rotate from ~10° to ~170° itself. It doesn't respond to any button interrupt. When I plug in another servo ...
0
votes
1answer
33 views

Making Servo Motor Automatically Move Based on Input

sorry if I sound incompetent, but I know nothing about coding. I have a group project where I must sort various balls into different tracks. The final issue I have is that I must use an arduino for ...
0
votes
1answer
18 views

Cannot control servos through 32-servo-controller on Aurduino Duamilanove

I have servo (TowerPro sg90) connected to 32 servo controller (this one) through UART interface (RX-TX, GND-GND). Seller provide documentation how to connect and control my servos, but it isn't work. ...
0
votes
1answer
40 views

Problem up loading to board

I'm a newbee to Arduino programming and hoping someone can help me with this. These are the errors when uploading the proceeding sketch. Thanks in advance! avrdude: stk500_rcv() : programmer is not ...
2
votes
1answer
55 views

Multiple servos noise

I'm building an application that uses 20 servo motors, and i control then with an Arduino Mega. The servos are having some instability, to the point where they make small random swings. Im powering ...
0
votes
1answer
299 views

Brushless motor “jiggles”

When I run my code, the ESC makes some noises, different on the high pulse and low pulse, then it begins to jiggle for a bit when it gets to the loop. Here is the code: #include <Servo.h> ...
2
votes
2answers
48 views

A question about Continuous Rotation Servo and Arduino

We have this project that uses a Continuous Rotation Servo and we have a slight problem controlling it. We're planning to attach a Rack Gear to the Servo to slide a stainless steel to the right, and ...
0
votes
1answer
90 views

Controlling Servo Motors with push button. Problem though

So I have this setup where I have and Arduino Uno, a mini Servo Motor, and a Push Button. I use a single Push button to control the Servo Motor to go to one position, then push it again to go back. It ...
3
votes
1answer
54 views

Need help converting a processing sketch for a robot arm with servo shield

I'm currently building a robotic arm. I'm using an Adafruit servo shield, 7 servos, Arduino uno, and a 5V 10A power supply. I found a program that controls the arm with mouse movement using a ...
0
votes
1answer
61 views

Help choosing servo motor for Arduino crane

I'm building an automated Arduino crane where the base material is PVC pipes. The arm consists of the picking mechanism and other sensors, so the total arm might come to about 2-3 Kg (I haven't built ...
0
votes
1answer
78 views

Lego Technic Servo Motor - 9V PWM

I want to control Lego Technic Servo Motor 88004. The way it works is - Lego has a 4 cable connector. Two of them supply power (+9V & GND) and the other are optionally +9V and they are called C1 ...
0
votes
2answers
35 views

Power Supply for 30 Servos

I am now constructing something with 30 servos (each one will control an individual joint separately, so I guess I can't get away from this), how can I determine how much current do I need, I have a ...
0
votes
1answer
95 views

Parallel servo control?

I have an Arduino Nano & am success fully controlling 4 servos from it but it then occurred to me that I am controlling these in a serial manner, ie I set 1 position then the next then the ...
0
votes
1answer
63 views

Powering multiple servos on external battery

I am working on a project with my school's 3D Printing Club where we are making a humanoid robot and I am attempting to wire the arm at the moment, and program the hands to translate text to sign ...
2
votes
1answer
66 views

Servos and ultrasonic at the same time

So recently I started making a sonar out of ultrasonic HC-SR04 sensor and servo motor. The idea was to slowly rotate servo 180 degrees while measuring distance. Soon after I noticed that regular ...
0
votes
2answers
42 views

Wrong calculation UNO

I've a joystick and a servo connected to my UNO, but for some reason my calculations keep on being wrong? I'm trying to calculate how the rotation should be of my servo (Tower Pro 9g, max value of 180 ...
0
votes
0answers
19 views

Arduino connected servo takes double the time to start from its initial position

I am a newbie on Arduino world, I have written a small piece of code which will move the servo motor every 8sec or 10min or 1hr with increment of 15° angle. At the initial setup function I have ...
1
vote
2answers
52 views

Making servo spin and able to detect angle

After researching other posts I can see how to make a servo spin continually and remove the ability to set to a specific angle. What I'm trying to do is make a small project that has a spinning ...
0
votes
1answer
43 views

Smart Servo Shield: How to upload code to AtMega8

I recently bought a Smart Servo Shield controller from DFrobot to use with my new AX-12A Dynamixel servos. The shield is attached to an Arduino Uno. The shield itself works fine, but it does not ...
0
votes
0answers
38 views

Servo powering from external power HELP

I have a Towerpro mg995 servo motor. I hooked it up with my Arduino, with the power supply being external. I tried 5V, but the servo behaves nothing like the code, which is just a simple sweeping ...
1
vote
1answer
115 views

Control servo motors with buttons and via web application

I have this assignment and I have been tinkering a long time about it. I need to make a simulation of a parking lot where servos would represent the ramps. I will be using 2 Arduinos running the same ...
0
votes
1answer
138 views

Arduino Mega with two Arduino Unos as slaves via I2C?

Good morning! This is my first post here, and my first time diving into the world of microcontrollers. Bear with me, as I describe this theoretical project. I've got an Arduino Mega 2560, two ...
0
votes
1answer
47 views

'Simple' problem. Delay not working?

Servo goes to one end, and immediately travels back without a 2s delay inbetween. After it travels back there is a 2s delay before it loops. Why isn't there a 2s delay before the travel back? Servo ...
0
votes
1answer
46 views

Arduino Servo.h library returns error in compilation

I have a problem with Servo library. This is my (very short XD) "code": #include <Servo.h> void setup() { Servo.attach(9, 554, 2400); } void loop() { Servo.write(2000); } And it ...
1
vote
1answer
29 views

Help choosing a servo motor

I am struggling to choose servo motor for my project. There are two servos on ebay. Th First one is named Only "Towerpro micro 9g servo" and the second one that is cheaper is named as a "Towerpro 9g ...
0
votes
1answer
53 views

Arduino Motor Shield

It seems that I can't get the DC Motor function to work while also having servos driven off the other ports :( #include "Arduino.h" #include <Servo.h> int pinI1=8;//define I1 interface int ...
0
votes
2answers
62 views

Receiving partial messages when using VirtualWire and ServoTimer2

I'm writing a project where an Arduino board that is connected to a servo engine receives commands from another Arduino. The possible commands are: Move 10 degrees Reset position Sweep until you're ...
1
vote
2answers
86 views

I would like to control 16 motors with a servo shield

Ok so I've used nicks code and have the code running once ok.... I the noticed however I had a fast 180 sweep and then it returned under control of code. I then noticed the comments wrt pulselen of ...
2
votes
1answer
144 views

Converting Arduino UNO's analog pins to digital I/O

I am working on an Arduino UNO Project and running out of digital pins. Can I convert the six analog pins to digital I/O and use them to drive servos? Please suggest me a method
0
votes
1answer
44 views

Servo motors won't work with motor controller

I have a motor controller controlling two motors, which works perfectly fine when I comment out the two servos in the below code. These two servos are not connected to the motor controller but simply ...
1
vote
1answer
142 views

Arduino Mega PWM pins stop working for LEDs once servo is attached?

I can get LEDs to fade properly using PWM on pins 44-46 on the Mega2560 when I don't have a servo attached, but once I "attach" the servo in the code, then PWM pins 44-46 don't work for PWM. They can ...
0
votes
2answers
86 views

Servo Speed Control

I work in a robot using arduino, and i have a few questions: It is possible to increase the speed of a servo, for example a parallax? It is possible to measure the current that pass through a servo?
0
votes
0answers
113 views

How to reverse BLDC motor using programming arduino?

I bought ESC from here but it rotates motor in one direction only. Is there any program which will control direction of rotation clockwise or anticlockwise with same wire configuration.
0
votes
2answers
37 views

Outlet switcher using servo motor

I am building a small-scale watering system to water my plants, controlled by Arduino. I have designed most of the project except for how to switch water between multiple pipes. A little more ...
0
votes
2answers
168 views

Why is my “mood cue” not working?

I am new to arduino, and I am working through the "Arduino Projects book," with the arduino uno. I am working on project 5, "the mood cue." It is basically a potentiometer-controlled servo. I am ...
-1
votes
1answer
657 views

Controlling servo 360 degree(clockwise and anti clockwise) using arduino with “if statement”

I am facing a problem to control my 360 degree servo motor using arduino by "if statement" and the input will be potentiometer. For and example, "if the analogRead<200" i want the servo motor to ...
1
vote
2answers
331 views

RC servo misbehave using arduino and MPU6050

I am a beginner.. I am trying to control RC servo using Arduino based of data from MPU6050. I am using library I2Cdev to communicate with gyro and to get yaw, pitch and roll. I am using example script ...
0
votes
0answers
52 views

Servo + LCD + Ultrasound sensor works on USB, doesn't work on external 9V/1Amp

I have a basic Arduino ("Funduino") Mega circuit set up that moves one of those small blue microservos according to the distance an ultrasound sensor reports. The distance is also shown on a ...
1
vote
1answer
65 views

Arduino Servo is behaving strangely

I am trying to use the Arduino Servo library to drive a simple servo and am having some difficulty getting it to even move. Here's the setup: And the schematic that Fritzing generated for me: ...
0
votes
1answer
87 views

Arduino Servo circuit by example

I have an Arduino program that uses the Thread library to create two concurrent threads, where: Thread #1 blinks an LED every 500ms; and Thread #2 blinks another LED every 250ms I wired things up, ...
2
votes
3answers
158 views

Running a servo and tone() won't compile? “multiple definition of `__vector_32'”?

Im using Spark fun pro micro:https://learn.sparkfun.com/tutorials/pro-micro--fio-v3-hookup-guide/hardware-overview-pro-micro I am controlling a servo motor which reads its data from a pot connected ...
-1
votes
2answers
79 views

Servo - Serial communication problem

I am sending data from an Arduino Uno to an Arduino Mega via serial communication. The data is analog value. I'm getting that data and converting it to an int. There is no problem there. However, ...
0
votes
2answers
177 views

Arduino SoftwareServo by example

I am interested in writing a simple Arduino program that will turn a servo back and forth (180 degrees each time) continuously. I am looking at these servos and am planning on following this example. ...
0
votes
3answers
749 views

How to control 2 servos at same time in sync?

For overcoming torque issues, I have attached 2 identical servos on a certain part of my robot arm and because I saw someone do the same. Now, while writing code I realize: #include <Servo.h> ...
1
vote
3answers
2k views

Do I need the Motor Shield to drive servo motors?

I was perusing Arduino's list of official shields and noticed the Motor Shield that can be used to drive up to 2 servo motors. Being brand new to Arduino/robotics, I am wondering: do I really need ...