Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [servo]

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

-1
votes
3answers
62 views

NEED Help With Servo motor

I have just bought a MG90s tower pro servo for my school project and there is a problem. As soon as I connect my servo to the cnc shield or directly arduino, the whole arduino board turns off. I ...
2
votes
2answers
284 views

RFID stops working when I place the servo

I've successfully implemented Door Unlock system described in this tutorial. At first I used Arduino Uno and RFID RC522 Reader and MG90S Micro servo. When I used Arduino Uno with Arduino Pro Micro ...
0
votes
1answer
161 views

How to change speed of multiple servos acting at the same time with PCA9685 module?

I'm using the PCA9685 module with its Adafruit library. In my code I have one object of the servodriver class that has 14 channels (controlling 14 servos basically). void Positioning(){ ServoDriver....
0
votes
0answers
13 views

Powering 2 servo motors [on hold]

I am new to electronics and can't figure out how to power 2 servos. I know that each one needs 5V and around 700mA. I guess I must use a 5V and 1.4 A power supply. Is that correct? What would ...
0
votes
1answer
382 views

Controlling a servo motor with a touch sensor

I want to modify my code to move a servo motor only for the duration of time that the sensor is touched and stop moving immediately when the sensor is no longer touched. The code I have moves the ...
0
votes
1answer
364 views

360 degree motion of servo with position control

Is there any way I can control the position of servo by changing the value of potentiometer for using it for 360 deg motion?
1
vote
1answer
423 views

Can't move servo with my Nano

I'm new to this kind of thing. My code works on my Uno without problem with two separate servos. I've ensured that it's not any faulty leads, having tried a few other circuits with LEDs, buttons and ...
0
votes
1answer
203 views

Wemos mini pro switch power from servo with mosfet bs170

I got a servo connected to a wemos/arduino with a capacitor(470uf). Before I didn`t use a cap. Now with the cap the device use to much power while sleeping(capacitor on the servo). I want to switch ...
0
votes
1answer
42 views

Wanted to control 2 servos with serial read [closed]

I want to use 2nd servo only when 1st is in up state by asking user whether he wants to fire or not.(code in bold is not working ) #include <Servo.h> Servo myservo; Servo trigervo; ...
0
votes
1answer
41 views

Servo delay problems

So I had a test last week with the Arduino Uno starter kit. We got a task including the servo. I had to get the servo to go from 0 to 90 degrees and it was supposed to use 4 seconds to do so. Than ...
0
votes
2answers
44 views

Servo Motors PWM pins, Arduino Uno

I wanted to understand how people are connecting a servo motor to pins without PWM, so I went searching and I read that the Servo library uses the timer1 of pin 9 and pin 10 to be able to use other ...
0
votes
0answers
18 views

Joystick Bluetooth to Bluetooth to Motors [UPDATED] [duplicate]

I have updated the code, switching the Bluetooth sensors because my codes were switched(master was slave, and slave was master), putting the hc05s on the same baud rate, and removed certain comments, ...
0
votes
0answers
9 views

How to hook up led matrix 1088AS to a PCA 9685 servo controller? there is a way?

I'm confused about the pinout, I can't figure out which fisical pin of 1088as red led matrix must to hook up to the PCA9685, if there is a way to do this I found this image the final target is to ...
0
votes
1answer
31 views

Slow speed with stepping motor

I am currently working on a project where i need a stepping motor and a servo running at the same time, the servo turns fine and the speed is ok, but the stepping motors speed is very slow and as a ...
0
votes
0answers
3 views

Servo arduino using eneloop [migrated]

Say if i use 5x eneloop AA batteries to run 6x MG996R servo, will it be good enough since im afraid for the motor if it will burn out. I already read the spec sheet what im afraid is the stall current
-1
votes
1answer
27 views

Brushed ESC won't move slowly [closed]

I'm trying to control the brushed motor in a Traxxas Slash RC car with the built-in XL5 ESC using the Servo library on Arduino. I previously had success controlling this car with a Pololu Micro ...
0
votes
1answer
40 views

I am building an robotic arm by using flex sensor, servo and 2 xbees

Rx Code: #include <Servo.h> Servo myServo; void setup() { Serial.begin(9600); myServo.attach(9); delay(5000); myServo.write(0); } void loop() { while(Serial.available()==0); int d = ...
0
votes
1answer
38 views

Linear Actuator Arduino Control

Update: Here is my first try based on the code I found and it did not work. The first time I uploaded it, it move to the "current positional value". But did not do the void loop part. Just holds the ...
1
vote
4answers
605 views

Using MCP23017 to control Servos

Using Servo.h it is possible to run a servo from just about any pin.....obviously the more pins the more servos...hence the question " how can I do this with a MCP23017 ? ". I have searched the web a ...
0
votes
1answer
43 views

Basic Arduino Airplane Control

I have a task where I need to control the airplanes thrust and altitude direction(Up-Down). For the thrust I thought of using a DC Motor and a Servo for the other. Control of servo will be from the ...
0
votes
0answers
40 views

Multiple Servo motors with an ultrasonic sensor

I am building a robot arm with 6 servo motors that works with an ultrasonic sensor. The purpose of the program is when an object is detected at 20 cm (fixed position) from the sensor, the buzzer and ...
0
votes
1answer
32 views

Attach() resets servo's angle

I'm working on code that will control micro servo. I use generic servo and built-in library for controling servo. Microcontroller is generic STM32. Controlling servo Works as expected. But I don't ...
0
votes
1answer
182 views

How to use map function

if(pin10==HIGH) val=analog.read (potpin); val=map(val,0,1023,0,180); servowrite(val); else val=map(0,1023,0,90); ...
0
votes
1answer
30 views

Code causing Servo motor not to work!

My sketch is compiling and loading, but when the program runs, the Servo motor does not work. The buttons work, the LED light works, Piezo buzzer plays the melody, the Stepper motor works but not ...
1
vote
1answer
62 views

How to execute operation once till a condition then restart it from start [closed]

I am making a project using IR sensor,servomotor and Push button. I am not able write code for the logic as stated: it will execute the operation when it reads the digital value of IR high and rotates ...
1
vote
1answer
54 views

Hold button / press button/ push button

I want to control a servo motor in a way that if you push the button, you can control it by potentiometer a if you push double time, you can control servo with infrared if you hold button step ...
0
votes
0answers
22 views

Servo doesn't move with fingerprint

I've a project which i need to make a door open and close using the fingerprint. I've successfully made fingerprint works just fine it reads and confirm the fingerprints stored in it but the servo ...
0
votes
3answers
90 views

Why a servo doesn`t move to angles properly

I've got to do a project which uses a servo to drive a turntable. How much I adjusted the angle, the servo seemed to shift every time it spinned. For instance, the 0 degree angle was getting a bit ...
0
votes
2answers
127 views

Do I need an external power supply for the SG90 micro servo?

I have a Uno R3 and although I can add an external power supply for the SG90 micro servo it would make the project more complicated. Can I power the servo using the 5v pin of the Uno R3? I measured ...
7
votes
1answer
1k views

How can the Arduino Uno support up to 12 servos if it only has 6 digital PWM pins?

According to this: The Servo library supports up to 12 motors on most Arduino boards and 48 on the Arduino Mega. On boards other than the Mega, use of the library disables analogWrite() (PWM) ...
0
votes
0answers
16 views

Will this power supply work with a MG-996R Servo?

I'm trying to power a tower MG-996R servo with this universal AC power adapter for an arduino uno project. The adapter can output: 3V/4.5V/5V/6V/7.5V/9V/12V.Output current:1.2A, also has a USB port:5V ...
0
votes
1answer
31 views

servo starts rotating whenever it is plugged

I am making a fish feeder using an Arduino Mega 2560, servo motor SG90 and RTC DS3231. I want to make it rotate twice a day, i.e. morning and 9 o'clock evening. Whenever I plug my Arduino board to ...
0
votes
0answers
15 views

Cannot access a servo library with my program

As I tried an new exercise, I came to an other problem. although I put an include in my system (#include ), the program will not acknowledge (Servo myservo); and again a problem? Any help?
0
votes
2answers
18 views

Servo starts to shake when I added SIM900.begin(19200);

Hello I'm working on this mini project. This project works this way, Whenever someone type wrong password, LCD will display "Access Denied" and send an alert to sms using GSM module. I used 2 ...
-1
votes
2answers
805 views

Why is my servo spinning over 360 degrees?

I decided to try out my servo on my Arduino. I'm pretty new to this and I can't seem to figure out why this is happening. My servo will spin for about 5 seconds in one direction and then it will spin ...
4
votes
4answers
169 views

How do I make a Servo Stop if it Hits Resistance?

I am trying to make a device which will turn a turn key with a servo. However, I want it to stop turning the turn key if the resistance is too great (meaning it is locked and will not ever turn). ...
0
votes
1answer
49 views

Trying to power multiple servos at once using a Arduino Mega

Recently I have been trying to do a project for my end of year project, it involved making a humanoid arm. I am still a newbie at these things, I usually have my friend do the wiring, but since he ...
0
votes
0answers
30 views

Question about controlling servos with PWM while being able to accurately read the current from a sensor

Hi I am hoping to design a custom board ATMEGA32u4 with practically a Arduino leonardo bootloader. I plan to control up to 12 servos while being able to read back the current sensor voltage of an ...
0
votes
2answers
58 views

Help - Atmega328p, converting a PWM servo code from pin9 to pin6

I found a working code that uses pin9 (PB1) on my Arduino for controlling a Servo, but in my project, an ultrasonic sensor is already using that pin/timer. I want to convert the code to use pin6 (PD6),...
0
votes
1answer
41 views

Newbie question: Set servo at certain degrees when something happens

I am trying to set my servo at f.e. 90 degrees when the friendlyValue of the soil sensor is < 50%. The servo isn't moving at all, is it because the code is running too fast and the servo doesn't ...
1
vote
1answer
204 views

PCA9685: how “unset” PWM signal?

I use my Arduino with Adafruit PCA9685 servo controller. To set PWM signals I use the provided library: https://github.com/adafruit/Adafruit-PWM-Servo-Driver-Library It allows easily set PMM signal ...
3
votes
1answer
498 views

Powering Multiple Servos From One Battery- What is my circuit missing?

I'm working on a robotics project right now and my limited DIYer knowledge of electrical circuits is failing me. I need to power 7 Rage Standard Metal Gear Servos (RGRS104-16-6vm) and 4 RadioShack ...
0
votes
2answers
970 views

How do I stop a servo motor at the current position when using a serial port? I want it to remain in one position when receiving “0”

I am working on a project where I would like values received from an Xbox Kinect will activate components on my Arduino. Currently, I am trying to get a servo motor to turn on and rotate when the ...
0
votes
1answer
144 views

How to control RC power switch with Arduino-/Adafruit-Board?

I want to control (switch on/off) a solenoid valve via an RC power switch and an Adafruit M0 Feather Bluefruit LE. The RC power switch is this one, and this is the Adafruit Board Pinout. My ...
0
votes
1answer
179 views

When I turn on the servo it spins on its own before going to the right position and start the sketch

I can't get my head around this: when I turn the servo on it just spins on its own as if it's setting up, it goes to an angle superior to the one I want it to go. (Don't mind if it has to set up but ...
1
vote
1answer
283 views

Adapt Dynamixel library to different shields

I have been playing around with this shield for a couple of days now and I have to agree with some statements made in the comments that the "library" lacks many functions. However I have discovered ...
0
votes
0answers
59 views

Servo motor rotates back to 0 after reaching destination

I am using a XMG-996R servo motor. It is controlled by and Arduino Uno board. The problem is when I tell it to go to a certain angle, it will rotate to the desired position but then return to 0. The ...
0
votes
1answer
327 views

Sending servo position data from one Arduino to another

I'm trying to take the position data generated from this servo sweep, and send over serial to another Arduino. The position data is stored as pos in the code I included, what would be the best method ...
0
votes
1answer
60 views

Question regarding Servo including Serial monitor display

I tried to make code following your instruction about millis, and it looks like this. Unfortunately, it is not working. Is there problem with my code? Here is my code: #include <LiquidCrystal.h&...
0
votes
2answers
109 views

How to move Servo in between three positions

I want my tower pro 9g servo to start from pos=0, wait there for 1 second, then reach pos=90 wait for 1 second, then reach pos=180 and wait for 1 second. Now it goes back to pos=0 and repeats this ...