Questions tagged [servo]

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

110 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
2k views

Sending data from Arduino UNO as a SOAP request

I have a servo motor on one end which can be turned ON and OFF with web service sending SOAP request. In the other end I have my Arduino UNO with ESP8266. Currently, I am able to send HIGH or LOW ...
2
votes
0answers
57 views

servo acting weirdly

I have bought two original TowerPro MG966R 360 degree continuos rotation Hi-torq digital servos. Expected results : 90 deg -- no rotation 90 - 0 deg -- speeding up to one side 90 - 180 deg -- ...
2
votes
0answers
447 views

This is a flood sensor. Moisture sensor and servo working together but it shows different errors

Sometimes the servo moves unnecessarily without moisture sensor giving out any readings. Another problem is that the servo moves very slowly. Is there a way to counter this problem? const int ...
2
votes
0answers
932 views

Servo motor and the servotimer2

I posted this a few days ago Servomotor and music shield and now I moving my servo motor and my musicshield (seeduino musicshield v2.0) together with and Arduino uno, in my other post they told me to ...
2
votes
0answers
117 views

IR sensor not detecting light or dark sufaces

I wrote code for the vibrating motors to vibrate when an IR sensor detects a darker surface. I have 4 vibration motors for corresponding 4 IR sensors. My program is not able to read the values from ...
2
votes
0answers
88 views

How can I call the variable **Servo::write** in Arduino for my 360 servo?

I'm trying to control a Servo with a push button and to help me watching if it is working I am using a LED but I'm not sure if I'm doing it well the Servo::write so I need you to tell me what am I ...
2
votes
0answers
576 views

ATtiny Mapping PPM Inputs to Move Servo Issue

Short Version: Not able to get a servo to move to mapped input from RC remote control PPM signal. Detailed Verison: I am trying to take an input signal from a hobby RC radio (D4RII receiver ppm ...
2
votes
0answers
512 views

Controlling 20 servo motors independently with a single Arduino

I am wondering if I can control 20 different servo motors with only a single Arduino Uno board. My motors must be able to rotate in both directions and I also should be able to define the speed for ...
2
votes
0answers
251 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 ...
2
votes
0answers
27 views

is it possible to code microservo automatically stop when the speed of rotation getting slower?

my group is doing a project which call automatic bed maker. we want to use a servomotor to pull the sheet of the bed. can we possibly make the servomotor stop rotate when the speed of rotation ...
2
votes
0answers
273 views

Help to understand multiple PWM working together

I'm very new to arduino related stuff so this question might be really easy to answer. I don't understand how multiple PWM outputs are supposed to work. Look at the pic. In the first(1) case we are ...
2
votes
0answers
1k views

Power servo with external power using a hacked USB cable

I want to use a servo motor and control it by an Arduino Duemilanove (or a Leonardo). It seems to work fine when I connect it directly to Arduino's VCC, GND and an PWM pin. But I am a bit worried if ...
2
votes
1answer
363 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 ...
1
vote
1answer
35 views

How can I program 2 ultrasonic sensor, one on the servo motor and one attached on the front side of the car?

I want to attach two ultrasonic sensors to an obstacle to avoiding the car. One on the front of the car Second on the servo motor on the car It is an obstacle avoidance Project. I am getting the ...
1
vote
0answers
23 views

IR output won't stop

So I basically tried to control a Servo motor with an IR Remote. I'm a complete newbie in arduino programming but I just took some things from other scripts and tried them out until It worked, and it ...
1
vote
0answers
73 views

LEDs lighting up when off due to servo motor being on

Within my arduino project I have began to run out of GND ports on my arduino so I am having to resort to using 1 GND port for lots of electric components. I have 2 LEDs that are each connected to a ...
1
vote
1answer
20 views

Servos jitter when powered by power module

I need 48 sg90 servos to move to a specific position each minute. Now I am using two arduino mega boards to power everything through 6 bread boards but it seems I need more power because some servos ...
1
vote
0answers
22 views

How do I reset to servo position everytime I excecute a particular sequence

I'm trying to make a prosthetic hand that can play rock, paper, scissors with a human. It is based on the premise that you push a button and it randomly selects a move to play. After each move, I'd ...
1
vote
0answers
54 views

SG 90 servos randomly spinning

I started one project where i need 4 servos to control 4 grabbers jaws. i use STM32F103C8T6 with arduino IDE for programming it. The motor TZT Micro Servo 9g SG 90. First, I was playing with stepper ...
1
vote
0answers
90 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 ...
1
vote
0answers
66 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 ...
1
vote
0answers
394 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
0answers
2k 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 ...
1
vote
0answers
16 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 ...
1
vote
0answers
211 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
vote
0answers
36 views

Arduino Port randomly changes whenever I punch correct RFID tag

I was working on an Electronic Door Lock/Unlock system using Arduino Uno and RFID Reader/Tags on Ubuntu 18.04.02 lts. Now the problem is that whenever I punch-in the correct RFID tag to the RFID ...
1
vote
0answers
22 views

Tower pro mg3996r servo problem

Recently I bought 5 original TowerPro mg3996r metal gear servo for my Robotic's project, I tried to test run each of them separately with arduino built in example servo's 'SWEEP' code. I tried to ...
1
vote
0answers
829 views

SOLVED Accelerometer/gyro MPU6050 is freezing after random time

SOLVED: I "solved" the problem by cycling my Arduino's power and I haven't had an issue since. I would still like to figure out what was going on. I still think it's something in that MPU6050 library ...
1
vote
0answers
519 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 ...
1
vote
0answers
43 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 ...
1
vote
0answers
57 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 ...
1
vote
0answers
257 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 ...
1
vote
0answers
77 views

Controlling motors via accelerometer not working

I want to control the 2 servos(pan tilt) using accelerometer data value from android app. Im using nodeMCU v3, 2 servos(pan tilt) and smartphone. Connection: servos(pan tilt) is connected to 5 v ...
1
vote
0answers
93 views

Servo position is always changing

When I send an SMS like this: Tilt:090 Azimuth:120 First time an SMS is read, the servo rotates to the correct position, but after they change a small angle, it's like noise. I do following things ...
1
vote
1answer
40 views

Can I control Arduino functions via PWM?

I want to control small functions from an Arduino, things like moving servos or toggling lights. The purpose of these is to decrease the number of channels on a rover I'm constructing. Using the PWM ...
1
vote
0answers
752 views

Servo motors suddely stopped moving and a clicking sound can be heard

I think I might have shorted something by accident. I have just purchased the Elegoo Robot Car Kit v2.0. Putting things together was relatively easy. I also managed to run the first example, which ...
1
vote
0answers
70 views

How to tune up a servo and add protective clauses?

I am working with an Arduino Uno, and have recently been given an assignment to use the servo motor. The requirements are that I tune the pulse widths while comparing the 0 and 180 degrees. Secondly I ...
1
vote
0answers
450 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 ...
1
vote
0answers
125 views

What kind of control method in my code will allow me to control multiple servos with phase shifts

I am building a quadruped robot, and I need to keep all four legs moving continuously and out of phase with respect to each other to produce a smooth gait and to prevent falling over. I wish to ...
1
vote
2answers
344 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 ...
1
vote
0answers
1k 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.
1
vote
0answers
1k views

Unexpected Timer Conflicts (Uno)

I've been working on a project (Arduino Uno: Atmega328) that implements a gyroscope (which is used with the LSM9DS0 spark-fun library) that is communicated with through I2C and uses a Servo library. ...
1
vote
0answers
2k views

Servotimer2.h is not recognised as a library by arduino uno

I'm doing a project for school with an arduino uno. I want to control a motor using a RF-module as remote control. I need the library Virtualwire.h to use the RF-module and the library Servo.h to ...
1
vote
0answers
335 views

Servo Issues with Arduino

I am trying to execute the sweep program but all the servo does is go back and forth in one step. When I tried changing the delay, It behaves erratically. Servo Specs: Required Pulse: 3-5 Volt Peak ...
1
vote
0answers
2k views

Which Timer can I use to control a servo with Arduino Uno

I would like to control 2 motors using Timer2 @ 200Hz. The frequency of the timer is printed in the main loop every second. I'm using an Arduino Uno with two interrupt used for the encoders connected ...
1
vote
0answers
94 views

27 Servo Project, Uno with Adafruit's 16-Channel Drivers

I'm working on a project where I need to be able to control 27+ servos. The problem is that I am unsure how to control them from a computer. I'd love to build a simple program with a user interface ...
1
vote
0answers
598 views

Servo position initiaition using PySerial unexpected results

Hi I'm using Brian Wendt's code for setting up my Arduino Nano with 4 servos using PySerial which works perfectly. So my next step was to get a nice GUI with sliders to position the servos, again no ...
1
vote
0answers
828 views

Motor Shield with 4 DC motors + small servo, which battery is suitable?

I am building my first 4wd vehicle with Adafruit motor shield with one Ultrasonic sensor and one small servo to move sensor. I am facing some problems. Bought 4 motors (2 GM9 and 2 GM3), found the ...
1
vote
0answers
853 views

Using an ultrasonic sensor to act as a potentiometer for a Servo?

I would just like to start off by saying that I am new to Arduino so my code and approach to the wanted outcome are probably not the best. Anyway, I had the idea of using an ultrasonic sensor and my ...
1
vote
0answers
958 views

Galileo - servo motor moves only in one direction and it doesn't turn back

I have an Intel Galileo (1st gen) and a servo motor (Tower Pro SG90). My problem: my servo moves only in one direction and it doesn't turn back. I want to perform a movement from 0° to 90° and then ...