Questions tagged [servo]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
47 views

Looking for some help with an RGB LED animation

I'm working on a project that is running off of a Sparkfun Pro Micro 5V. I'm trying to accomplish a color rainbow cycle animation which will have a function when triggered to fade the rainbow to black ...
1
vote
1answer
38 views

Servo Motor in function

I have a project with 9 servo, I want to make a function to control each separate. Only that he is not accepting the servo as a parameter. Can someone tell me if it is possible to pass the servant as ...
-1
votes
0answers
20 views

What type of motor should I use to spin a cylinder along its long axis [closed]

I'm working on a project, and I'd like to be able to spin a solid cylinder. The cylinder is about 9.2075 cm the long way, and 0.9525 cm the short way. I don't need a specific speed that it spins at, ...
-1
votes
0answers
15 views

What type of battery/power supply should I use for 3x SG90S servo motors, 3x MG996R servo motors, and 4x 6V DC motors? Thank you [on hold]

I would like to 3x SG90S servo motors, 3x MG996R servo motors, and 4x 6V DC motors for 1 hour and 30 minutes, but I don't know what type of power supply / battery to use.
0
votes
0answers
28 views

Servo PWM Pin seems to be interfering with Wire.onRequest i2C function

A newbie here. I am thinking of interfacing Raspberry Pi with Arduino via I2c to control a few servo motor (as RPi have limited PWM pins). Meaning I would send input from RPi to Arduino to allow to ...
0
votes
1answer
38 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 ...
0
votes
0answers
25 views

Trouble operating Servo and GPS at the same time

I have a problem using a servo and a GPS board at the same time on an Arduino Uno. For the servo, I use the following code: Servo myservo; // create servo object to control a servo // twelve servo ...
0
votes
0answers
36 views

Unable to control servo with decoupling capacitor and external power supply, but motor shield works

I'm a hobbyist trying to up my arduino and electronics knowledge. I can successfully control a hobby servo using an motor driver shield (https://learn.adafruit.com/adafruit-motor-shield/overview) but ...
1
vote
1answer
59 views

Servo motor (HSR-1425R) not running continuously

I'm trying to programme a servo motor to reach certain positions. I have a 360 degrees servo motor, so I can not use the Servo library and I can only control the speed. Therefore I want to regulate ...
0
votes
2answers
27 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 ...
2
votes
1answer
102 views

Trying to communicate with an ESP8266

G'day guys, I'm trying to get an ESP8266 to work with an Arduino Uno.Here is the wiring. When I go to the serial monitor (115200 baud) and type: AT, there is not response from the ESP8266.Is there ...
1
vote
0answers
56 views

Is there an easy way to connect and control 3 servos?

I need to connect and control three Parallax Standard Servos to an Arduino board, and apart from the USB connection, nothing else will be connected to the board. My predecessor used a setup of and ...
0
votes
0answers
33 views

How can I reset servo position?

When I do myServo.write(0) It isn't straight, I want it to be straight but it is at about a 45 degree angle anyone know how to reset the position with arduino to make other positions 0 and making ...
0
votes
1answer
14 views

Possible to have different torque levels on MG966R servo with Rotary Potentiometer?

I want to apologise first and foremost, and say that I am very new to Arduinos! I wanted to control the torque on a MG966R servo so that I can separate it into 4 different torque levels. I read that ...
0
votes
0answers
14 views

RC servo motor initial position

I bought a RC servo motor and I try to run it to both clockwise and anti-clockwise direction. I tried to set the initial position myself but after I power up my Arduino, the servo motor will go to it "...
0
votes
1answer
56 views

Switch Control Between Two Different Techniques

I have implemented PID control of a generator governor to maintain a constant RPM using an Arduino Uno. It works pretty well, but there is a tradeoff between stabilty and response time. Using PID ...
1
vote
0answers
209 views

Adding a kill switch for servos with states - blink without delay code

I have many LEDs and two servos connected to one Arduino Uno, and the servos are programmed to move randomly indefinitely. However, I would like to install a kill switch for the servos by reading a ...
0
votes
1answer
45 views

SG90 servo motor not working

I tried to test a servo motor for a project using this simple circuit but the motor won't move. I've used this before with the same setup and code and it worked, but now suddenly nothing works, even ...
-1
votes
1answer
28 views

'myservo' does not name a type

I keep getting 'myservo' does not name a type as an error message, I have already looked other solved questions like this one but I can´t find the mistake. I would be very glad for your help. /*******...
0
votes
0answers
13 views

green house vent servo based reading a sensor wrong

I am trying to make a green house vent that will open based on the temperature, however in my code the thermometer is not reading correctly, I've been designing it in tinkercad and heres the link ...
0
votes
2answers
32 views

How to rotate a servo motor on a specific angle?

I am trying to rotate a top on a specific angle after every 1 second. For example: 1 degree/second. I have two question: Can I achieve this with servo motors? If not, what motor should I use? I ...
0
votes
1answer
38 views

Can I solder wall cord directly to servo?

I have a servo which requires 7.4v and a wall power cord which says the output is 7.4v but the connector does not fit that of the servo. Is it safe to snip off the end of the wall cord and solder the ...
0
votes
1answer
21 views

Problems when attaching a second ultrasound sensor (HC SR04)

I am working on an obstacle avoiding robot. It uses an ultrasound sensor to avoid obstacles, but currently has trouble avoiding objects that are diagonal to it. Thus, i want to add a second ultrasound ...
1
vote
2answers
2k views

Controlling JX PDI-6221MG Digital Servo with Arduino

So, I naively bought two of these JX PDI-6221MG Digital Servos thought they would work with the Arduino straight out of the box, just like MG996R did, for instance, but it seems they won't. However, I ...
1
vote
0answers
371 views

Serial Monitor Stops Working

I am using a DIY colour sensor (RGB LED and LDR) and a servo to make a skittles sorter. I am testing out just the colour detection now and printing the RGB values to serial. It worked fine until I ...
0
votes
1answer
42 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
14 views

Use joypad to control a robotic arm with 8 servos

I'm using Arduino UNO and the SSC-32U board to control a robotic arm made up by 8 digital servos. At the moment, I'm correctly able to move each servo by using the following code: move1(servo_pin, ...
0
votes
1answer
90 views

16-Channel 12-bit PWM/Servo Shield check if it is powered by adapter

I'm using Adafruit 16-Channel 12-bit PWM/Servo Shield with Arduino Uno controller In setup() I have a number of default positions with PWM commands for motors with plug of USB to PC and turning on I'...
0
votes
1answer
17 views

Options for powering a Futaba servo

In one of my earlier questions it was determined for me that my Futaba Servo should not be powered directly from the 5v pin of my Arduino and should instead be powered by an alternative source. I was ...
0
votes
1answer
35 views

About UART one transmitter multiple receivers

I have vector nav vn100 IMU that sends data serially rs232...I want to drive 4 servo motors using atmega32 upon roll angel from vector nav vn100..atmega32 can only drive 2 servos using hardware fast ...
0
votes
1answer
211 views

Servo can be moved only in steps of couple degree

I have Feetech FS5323M servo, with Sweep example code from Arduino site, it works fine, it rotates from 0 to 180 degree and back as expected. The problem comes when I try to set servo position. I've ...
0
votes
0answers
29 views

Servo not moving

I have connected my servomotor (MG996R) to my L293D motor shield, which is connected to an Arduino Uno R3 Board. I use 4x AA 1.2V NiMH batteries to power the shield, and a regular 9V battery to power ...
-1
votes
2answers
67 views

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

I'm confused about the pinout, I can't figure out which physical 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 ...
1
vote
4answers
9k 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> ....
2
votes
3answers
112 views

Using Servo on Timer3 on a Leonardo

I would like to use the Radiohead library and control a servo from the same Leonardo board. Now the Radiohead library occupies timer1 and therefore cant be used together with the servo library. (It ...
1
vote
1answer
140 views

declared variable inside void setup is forgotten in void loop

if i declare a var in void setup() and try to do something with it in void loop(), it just says that the variable is undeclared. here is the code: #include "Servo.h" void setup() { Servo servo1; ...
0
votes
0answers
17 views

how spilt the sensor values then use them to control servos in nodemcu v3?

#include <ESP8266WiFi.h> #include <WiFiUdp.h> #include <Servo.h> const char* ssid = "Ece Control"; const char* password = "myphonewifi"; WiFiUDP Udp; unsigned int port = 5514; char ...
0
votes
1answer
2k views

How can I stop my Servo rotating?

I have a continuous servo motor connected to my Arduino UNO. I want it to react to the Hexadecimal code received by an Infrared remote. I want the motor to rotate once in one direction and then rotate ...
0
votes
2answers
72 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
45 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
1answer
31 views

Why my servo motor is always on?

Why my servo motor is always on? #include <Servo.h> Servo myservo; int pos = 0; void setup() { pinMode(2, INPUT); myservo.attach(9); } void loop() { if (digitalRead(2) == LOW) { ...
0
votes
1answer
43 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 = ...
1
vote
3answers
1k views

Code to control servo with shield

I recently bought an Arduino MEGA2560 and a SainSmart InstaBots Robot Controller Shield for Arduino MEGA2560 R3 Robot Arm Control. I understand how to control a servo in the method described in Sweep....
3
votes
1answer
570 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 ...
1
vote
1answer
228 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 ...
-1
votes
1answer
55 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
2answers
1k 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
154 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 ...
1
vote
1answer
228 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
304 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 ...