Skip to main content
The 2024 Developer Survey results are live! See the results

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
1 vote
2 answers
59 views

Can't exit while loop

I made code to make 2 servos work. the sequence of working is to make the servo 1 start rotate 2 cycles then stop and the second servo start rotate for another 2 cycles then detach both of them. I ...
Salma's user avatar
  • 11
-1 votes
1 answer
130 views

How to power 2 MG996R towerpro servo

I am a beginner and tried powering MG996R Tower Pro (180 deg Metal Gear) Servo from Arduino UNO and ended up hibernating the host PC. I want to power 2 such motors (in parallel configuration) for lets ...
Aditya Jain's user avatar
1 vote
1 answer
30 views

Slider servo doesn't give the right output

#include <HCPCA9685.h> #include <Wire.h> #define I2CAdd 0x40 HCPCA9685 HCPCA9685(I2CAdd); String state = ""; int servo5Pos; int servo5PPos; void setup() { Wire.begin(); ...
Bern's user avatar
  • 11
0 votes
0 answers
42 views

Controlling dynamixel servo from Arduino-Mega

I was trying to control a dynamixel servo from Arduino Mega. The protocol for the communication is half duplex, and I successfully sent data to the servo motor and got it actuated/turned the LED on ...
Lawliet's user avatar
  • 183
-1 votes
1 answer
88 views

Unable to find PCA9685 module when using the I2CScanner library: no servo movement

I am trying to use an Adafruit PCA9685 servo driver module with an ELEGOO Mega 2560 board. I am supplying the servo driver board with 5 V and tested all the wires to make sure. I tested the servo ...
Blaze48gamer's user avatar
0 votes
0 answers
163 views

PCA9685 servo not working

I am working on a project where I want to connect 12 servos together. I got: Arduino Nano Every PCA9685 16-channel, 12-bit PWM/servo shield Power supply 5 V, 10 A I got a PCA9685 16-channel, 12-bit ...
Mario Avila's user avatar
1 vote
2 answers
81 views

6 V high-torque servo won't function with motor shield

I have only ever been able to get this servo to “somewhat” work when connected to the 5 V pin on the shield, the ground on the shield, and the signal line attached to whatever pin. But 5 V is not ...
ConnorC's user avatar
  • 11
-1 votes
1 answer
282 views

Why won't my servo and ultrasonic sensor work together?

I have a school project due tomorrow, and I'm planning to connect a servo motor with an ultrasonic sensor. If the distance is under 10cm, the servo motor should turn 180 degrees and will return to 0 ...
pinkuro's user avatar
-1 votes
2 answers
149 views

How can I get servos to not brownout my Arduinos and power supply?

I have a problem with a project where one servo is resetting (browning out) two Arduino Pro Minis running 3.3v/8mHz. The two Arduinos are connected by SoftwareSerial on pins 9 and 10 and the slave ...
Charlie Nicholson's user avatar
3 votes
1 answer
212 views

Arduino Servo with temperature sensor (TMP36)

The essence of the program is to measure the temperature, and if the temperature is higher than 26 degrees, the servo rotates by 45 degrees, and if it's lower, it rotates by 179 degrees. However, a ...
Pain's user avatar
  • 33
1 vote
1 answer
305 views

Arduino Nano TX and RX LEDs Not Lighting Up During Upload

I'm encountering a problem with my Arduino Nano board. When I attempt to upload sketches to the board using the Arduino IDE, only the Power LED lights up, and the TX and RX LEDs remain inactive. I've ...
Ryuu's user avatar
  • 11
3 votes
1 answer
210 views

NodeMCU V3 GOT OVERHEATED AND DIED

My NodeMCU V3 got overheated and died. Please help me figure out what i did wrong. Brief Desrip: Project is an RC Car on ESPNOW Protocol. Transmitter setup have an Arduino Nano to take values from Two ...
NonTechGuyinTech's user avatar
0 votes
2 answers
659 views

Arduino Servo MG90S not moving

I'm new with arduino (nano). I am having problems with Servo MG90S, I cant make it move. Im doing the easiest test, Servo cables connected: Brown -> gnd Red -> 5v Orange -> pin 9 my arduino ...
Juan MP's user avatar
  • 13
2 votes
0 answers
48 views

I am trying to control 4 servos with a joystick, but after a few seconds, they start spinning and don't stop until the power source is cut

Here's my code. I don't know if the issue is the power source though. I only have access to my computer for a power source. #include <Servo.h> Servo servo1; Servo servo2; Servo servo3; Servo ...
PokemonsterBlue2's user avatar
6 votes
0 answers
255 views

Why does arduino use a PWM range of 544 to 2400?

I learned in school that typical servos use a simple PWM system to control a servo. To do this, we would generate a 1000-ms pulse to put the servo at 0 degrees and a 2000-ms pulse to set it at 180 ...
DSdavidDS's user avatar
1 vote
1 answer
55 views

Making a servo work for just once after a specific time period without hindering the sensors that are reading the data in a loop

I am making a cansat which will be launched on a sugar rocket. The cansat's Arduino nano will be operating sensors which will read the data and store it in an sd card and also a servo to deploy the ...
noblenikhil's user avatar
-1 votes
1 answer
2k views

Controlling a servo without the servo library

I am trying to control a servo without the "Servo.h" library.I am sending using analogWrite() some values to the servo.I know the servo takes input a continuous time signal however I dont ...
appliedSciences's user avatar
2 votes
0 answers
155 views

ESP & Servo not communicating well

I have a mystery I was unable to solve and would greatly appreciate it if anyone could shed some light on this. I have a servo DSS-M15S 270 which I managed to run perfectly fine with Arduino Uno (code ...
Shay Lavi's user avatar
1 vote
0 answers
80 views

Unable to use RF M4 Receiver with servo motor

I am trying to control a servo motor with the following code: #include <Servo.h> Servo servo; int const inputPin = 3; void setup() { Serial.begin(9600); servo.attach(9); pinMode(...
A P's user avatar
  • 11
-1 votes
2 answers
83 views

How do I control the rotation of my servo? [duplicate]

#include <Servo.h> // servo library Servo servo; int trigPin = 5; int echoPin = 6; int servoPin = 7; int led= 10; long duration, dist, average; long aver[3]; //array for average ...
chinchy's user avatar
0 votes
2 answers
1k views

How to determine the minimum time for a servo to reach its destination?

We all know servos don't move instantly, which is why it is common to put a delay or a millis() loop whenever you issue a servo.write() command to give it time to reach its target before moving on to ...
Tom Auger's user avatar
  • 193
0 votes
1 answer
1k views

No matching function for call to'DS3231 (const uint8_t &, const uint8_t &)

This was supposed to be the code for automatic pet feeder Got it from here1 The problem is that I always got a "No matching function for call to'DS3231 (const uint8_t &, const uint8_t &)&...
AEZAKMI 12's user avatar
0 votes
3 answers
168 views

Voltage drop when power from AA batteries

I am using a Arduino MKR 1010 Wifi board to control 4 servo (PS-1109MG). All the circuit is powered by 4 AA rechargeable batteries (1.2V * 4). Arduino is powered through the Vin port. Below is a ...
Adrian's user avatar
  • 11
-1 votes
1 answer
456 views

How to correctly set PWM to control servo angle in AVR?

I've stumbled upon timer configuration to handle my sg-90 servo and my Arduino UNO. What I did: Set the prescaler to 64 and mode to fast PWM of 16-bit timer. The frequency is 50hz so the ICR1 is set ...
ErnestW's user avatar
  • 109
1 vote
3 answers
415 views

LM7805 gets very hot with four servo motors

I'm making a robotic arm using three SG90s and one Futaba s3003 servo motors and an ESP32 dev_kit_V4. The problem is when I am controlling the arm, the voltage regulator gets so hot that I can't touch ...
kamal MKA's user avatar
-1 votes
1 answer
92 views

How to control 1 servo with 2 potentiometer?

I have been building a RC plane completely from scratch using an arduino but I am fairly new to this. Essentially I have been able to make my two arduinos communicate with each other so that when one ...
Anudeep Reddy's user avatar
0 votes
1 answer
190 views

Servo not moving with PIR motion sensor

I am working on this code to turn a servo when the PIR motion sensor detects no motion, but it is not working. Some symptoms include: Servo is turning extremely slowly PIR is not turning the servo ...
Brayden's user avatar
  • 21
-1 votes
1 answer
45 views

Servo retaining its position every time I send some value

I wanted to control my servo with a Bluetooth module. I gave certain values for rotating it. When I press those values the servo rotates, but then retains its original position and the PC also makes ...
Rathore Brothers's user avatar
1 vote
1 answer
113 views

Why does my delay get inaccurate after one minute ? It makes my servo vibrate

I have a fancy setup to cool my beer at a controlled temperature (you can find details and a photo here if you want). The input of my system is a temperature, the output is a servo position. Long ...
Guillaume Deshors's user avatar
-2 votes
2 answers
303 views

Emulate Joystick

I am trying to automate a existing system that uses Joystick as its input to move the Motors in x&y directions. I actually want to emulate arduino to exactly do what the joystick is doing by just ...
ASAD ALI's user avatar
1 vote
0 answers
55 views

Simulink Legacy Code Tool - custom Arduino servo write block problem

I'm trying to create my own servo.write block in Simulink for Arduino DUE deployment (and External Mode). Before you ask why if there is one available inside the Simulink Arduino Support Package, ...
Multiplexer's user avatar
3 votes
1 answer
193 views

Simulating a button press using the Serial Monitor to run a Servo

I'm kind of new to Arduino and C, and I was having trouble with this sketch. I'm working on a project to control 6 servos using virtual buttons. When I hold down the button, the servo moves forward ...
rayank97's user avatar
1 vote
1 answer
713 views

Servo keeps resetting position when there is no difference in received value?

So I'm working on a code that basically receives x and y coordinates and stores them in a variable. Whenever a coordinate is received, it goes through a conditional statement to store them in a ...
Black Prime's user avatar
2 votes
1 answer
114 views

How to combine servo shield with peristaltic pump?

I am creating a project where I need 16+ (possibly up to 20) servos to open/close liquid flow through tubing, which in turn will be controlled by a peristaltic liquid pump (https://www.adafruit.com/...
nn123's user avatar
  • 21
-3 votes
2 answers
71 views

I need to run 2 for() loops simultaneously but I cant seem to do it without one executing, then the other after it [closed]

I'm controlling 2 servo motors but would like to adjust their variables separately, specifically their upper and lower values, and their speeds. This code is one that I had found online then ...
Miguel's user avatar
  • 11
0 votes
1 answer
160 views

external power supply for servo motor attached to redboard arduino

I'm new to this page but I was hoping to get some advice on a servo motor arduino project I'm currently working on. I have a HS-815BB servo motor (4.8~6V, max stall current draw 6,000mA) and a Spark ...
Karen's user avatar
  • 9
-1 votes
1 answer
311 views

Using Arduino to allow continuous servo to go in the opposite direction

For my project I am using 6 continuous servos connected to an Adafruit Servo Shield. To run them I use pwm.setPWM(0, 0, 1000) and then set a delay to run them for how long i’d like to, then run pwm....
nina's user avatar
  • 9
1 vote
0 answers
37 views

Problem regarding on HC-SR04 sonar with an additional stepper and SG90 servo motor

I'm making a project based on HC-SR04 ultrasonic sensor with a stepper motor and an SG90 servo motor. I have done some conditions for my stepper motor that is given below. Now I want to include my ...
Toufiq's user avatar
  • 11
-1 votes
1 answer
239 views

atTiny85 5V and servo usage

I have an AtTiny85 that I would like to move a servo on I/O "4" for this project. I can't seem to get it to work, no matter what I do. I had tons of issues getting it to program, but I've ...
Perplexing Pies's user avatar
1 vote
1 answer
227 views

Servo keeps rotating

I use a 360° servo with a program I made on an Arduino Uno. The program was meant to control two separate servos with two potentiometers on a breadboard. When I used 180° and 90° servos, it worked ...
aaron vu's user avatar
0 votes
2 answers
3k views

Trouble understanding min and max parameters for the Servo motor

This picture is from arduino.cc . Could someone please help me understand these parameters min and max? I was using TinkerCad taking input for the angle using a potentiometer (having mapped correctly ...
Harry's user avatar
  • 11
1 vote
3 answers
1k views

Servo motor and L298N motor driver don't work together with ESP32

I am using four servo motors for our robotic arm and one L298N motor driver for two motors for the base of the arm. When I individually tested the robotic arm and controlled four servo motors it ...
aditya gupta's user avatar
2 votes
1 answer
1k views

How does Arduino Servo.h library manage to output PWM when a Servo motor is connected to a non-PWM pin? [duplicate]

While learning more about Servos, the main thing i have learned is that, Servos (SG90) need PWM signal with the frequency of 50Hz. And the duty cycle of the frequency is used to rotate the angle of ...
CoderBittu's user avatar
3 votes
0 answers
501 views

PCA9685 - Hardware problem with diode?

I'm working on a project, where I need to run several high-torque servos. For that I bought come of these PCA9685 boards. I hooked everything up with my arduino and connected an external 5V - max 3A ...
Ai4l2s's user avatar
  • 161
1 vote
0 answers
40 views

Problem when using Servo.h and WIre.h libraries [duplicate]

I have a project that consists of an Arduino, a NodeMCU and 2 servos. The NodeMCU is configured as master and the Arduino as slave. I have bidirectional flow of data between them. In order to receive ...
Alex Mod's user avatar
1 vote
0 answers
31 views

servos act strangely instead of stopping/starting

I am trying to make it so that my robot rolls straight when pin 8 is high and stop when pin 8 is low, the 2 servos is constant rotation servos. instead the servos spin when the wire touches it pin ...
Nate's user avatar
  • 11
1 vote
2 answers
511 views

PID control doesn't work. After computing the values, the values just become equal to 0

So, I have a working code of the stabilizer project using 2 servo motors, mpu6050, Arduino Uno. However, I want to add PID part for tuning the servo motors movement. I followed the example PID library ...
Akhat Mussabayev's user avatar
1 vote
0 answers
594 views

Arduino UNO and PCA9685 - Problem with external power supply

I am totally desperate and hope you can help me. I've been building a project for a while where I have to control several servos. For this I bought some MG996R servos and a PCA9685 16-Channel Servo ...
Ai4l2s's user avatar
  • 161
1 vote
0 answers
303 views

Arduino and PCA9685 - Suddenly stopped working

I'm using an Arduino Uno and a PCA9685 board to run 4 servos (of type MG996R). For that, I set up the following connections: SCL -> SCL SDA -> SDA Ground -> GT VCC -> 3.3V As the servos ...
pte's user avatar
  • 11
2 votes
1 answer
553 views

How to Independently run positional and continuous servos using millis()?

I am setting up 3 servos (2 position servos and 1 '360' continuous rotational servo) with Arduino. but I failed to run these independently. It runs one after another. I wish to run it in loop ...
Emlinux's user avatar
  • 43

1
2 3 4 5
11