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
0answers
42 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 ...
0
votes
1answer
25 views

ESP32 servo runs continuous

I have ESP32 connected to TZT servo SG90. This is the code #include <ESP32Servo.h> #define TURN_TIME 175 Servo myservo; // create servo object to control a servo // 16 servo objects can be ...
1
vote
1answer
16 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 ...
2
votes
1answer
22 views

Servo doesn't move if I detach it AFER the write?

So this is a bit weird, and I don't understand anything. Basically, I'm just playing with my servo. I wrote a small program, which can be found at this link: https://pastebin.pl/view/8e9c9573 (Note: ...
1
vote
2answers
57 views

Arduino Vin pin does not work, but Arduino 5v pin power works

I have a very weird problem, at least it seems to me that way. I have connected L298N motor driver, Arduino and a hobby servo with a 6v power supply (tested with both 4xAA and 9v alkaline batteries). ...
-1
votes
1answer
24 views

Servo motor analog vs digital and AC vs DC

I am little confused with servo motor terminology. Q1. AC servo motor requires AC power source ? Q2. DC servo motor requires DC power source ? If answer to above 2 questions are YES then what does ...
-2
votes
1answer
65 views

Code for fish auto feeder not working [duplicate]

I've been trying to make this code work, but for some reason, it doesn't work for me, even if I do everything like in the tutorial. So I've tried to do a new code and the outcome was the same. The ...
-4
votes
1answer
59 views

what is wrong with this code? It doesn't work

#include <DS1302.h> #include <Servo.h> Time t; Servo myservo; int Hour; int Min; int Sec; // Init the DS1302 DS1302 rtc(2, 3, 4); void setup() { myservo.attach(9); myservo.write(45); // ...
0
votes
1answer
60 views

How to rotate servo every 12 hours using RTC module?

I am trying to make a auto fish feeder to feed my fish every 6hours. I want to implement RTC module to my code. So far I've been using only an arduino and a servo using this as a code: #include <...
1
vote
0answers
50 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
4answers
56 views

Can we control other servos with common servo code Arduino

I am trying to control MG996R using code for a typical servo (SG90) I used an external power supply, 5V,2A I connected the servo signal line to Arduino slot 7, servo positive to external power supply ...
0
votes
0answers
20 views

Huzzah feather scl sda

Trying to hook up an hazzah feather to a pca9685 scl sda connection and have a bno055 connected to that.The 5 volts to power the PCA is not taken from feather. I have a GPS module connected to pin 12 ...
0
votes
1answer
26 views

Why delay of more than 64 millisecond stops the servo motor from rotating? I am not using “Servo.h” instead i am just managing the length of pulse

The code I used was this int servo = 5; int angle; void setup() { pinMode(servo, OUTPUT); } void loop() { for (angle = 0;angle<180;angle++){ digitalWrite(servo, HIGH); ...
0
votes
2answers
139 views

Nodemcu v3 - Power supply via VU pin?

I want to control two hitec hs55 micro servos via a Nodemcu v3. These need at least 4.8 V power supply acc to data sheet. Specs: Hs-55 micro servo: Voltage range: 4.8-6 V Current Drain - no-load (4.8V)...
0
votes
0answers
19 views

How to control 2 micro magnetic actuators with esp12e

i want to control two micro magnetic actuators (just two coil where I want to flow current in +to- and-to+ each motor for wifi airplane) with esp12e Do I need an h-bridge like l293d ? Also I will be ...
0
votes
1answer
38 views

Arduino using delay in I2C receiveEvent

I have read before that you can't use delay() inside I2C receiveEvent because it is an ISR. What I want to do is as follows: I have a servo connected to my Arduino Uno and I want to control that using ...
0
votes
0answers
43 views

Control Servo motor via Python GUI (PyQt) component “QDial”

I want to control a servomotor via a Python Gui (PyQt) component "QDial". Hopefully the servomotor should rotate "simultaneously" with the Dial in GUI. Below is the related code: ...
0
votes
1answer
53 views

Circuit not working with 9 volt battery [duplicate]

I have made a simple circuit having an IR receiver and a Servo motor. Here is the diagram: Red wire: power Black wire: ground Orange wire: digital signal And here's the code: #include <Servo.h> ...
0
votes
0answers
26 views

Motor noise on my arduino RC?

So I wanted to make a rc car based on two arduino nanos, two nrf24l01 (rx and tx), and a pololu brushed motor driver (this one) and it worked, more or less. Sometimes it worked very well and ...
1
vote
1answer
108 views

Implement two processes at the same time

I am a beginner in arduino and due to the lockdown I have been learning it by implementing it on tinkercad. I have made a simulation where I have attached : Servo Motor Ultrasonic Sensor Led Bulb ...
0
votes
0answers
30 views

little Code problem Servocity SPT 400 tilt kit

I hope you are in a helpful mood, today. I have run into a little problem with my project. I wanted to mount my camera on a Servocity SPT 400 tilt kit and control the thing via a bluetooth connection....
-1
votes
1answer
50 views

Problem With interfacing of 16 Servo MG996R with Arduino Uno

I am using 16 MG996R servo motor with PCA9685 servo driver with Arduino Uno, but the motors are not working properly. What is the best power supply/battery for my project as it worked well earlier but ...
0
votes
1answer
45 views

Trying to move servo motor via 3 buttons

I am having some difficulties in trying to make my servo motor move to a specific angle based on the button pressed. For example, having the motor start at 0 degrees and then having it move to 180 ...
-1
votes
1answer
75 views

How to power 6 servo motors using battery to create a robotic arm?

I am trying to create a robotic arm. The problem is that I could not run all 6 servo motors -3 MG966r servo motors and 3 MG90S servo motors - simultaneously, using 12V and 3A AC to DC adaptor. Last ...
0
votes
2answers
202 views

turning positional servo motor more then 180 degrees

My RC servo motor is capable of turning more then 180 degrees(around 200 degrees) when I physically turn it, but when I use my code it only turns 180. Is there a way to code it so that it turns to ...
0
votes
0answers
58 views

Start / Stop Motor Run with Button State Change

I'm trying to understand Arduino with push buttons. But I can't get the test project I'm working on to work as how I want it to do. Basically what I'm trying to do with the codes below is to make ...
0
votes
0answers
41 views

External vs arduino power supply for servo motors?

I recently created a project that involves the control of three SG90 servo motors. I started off by controlling this through the 5V output pin of the Arduino Uno, with the Arduino powered through the ...
0
votes
1answer
61 views

I'm trying to control a servo with a push of a button but its not working HELP

I'm new to Arduino and I'm following this tutorial: https://www.youtube.com/watch?v=T2HMJiy9b_I but the problem is the servo just keeps moving back and forwards on it own and the button is doing ...
0
votes
2answers
106 views

Motor for a winch (with controller and external power supply)

I'm in need of a motor or continuous servo to power a winch. The motor must be continuous* and reversible, but it does not need to be fast, precise, nor bear a load when powered off. It just needs to ...
2
votes
1answer
48 views

Servo motor troubles

The image is as clear as I can make it. Here are the basics of my problem. My program is meant to make 6 red LED lights in sequence fade in and out, toggle 5 white LED's on and off with a button, and ...
-2
votes
1answer
49 views

How can I control Servo motor properly by using TimerOne and ServoTimer2 Library?

In this project I want smooth rotation of the Servo(Pin (D10) periodically where period time select by a potentiometer(actually I will use pressure sensor in this pin now it is unavailable to me so I ...
0
votes
0answers
38 views

Arduino multitasking, millis [duplicate]

My project requires that a hinged box be opened approx 90 deg. with an servo controlled with an Arduino, staying open for approx. 90 seconds. When the lid is open, then a lift mechanism with a stepper ...
1
vote
1answer
28 views

What is the name of a peripheral which reads servo output data physically?

I know the title is phrased terribly, but I'm not sure how to phrase it since I'm not sure of the name. I have a servo, that I cannot connect to, except for the output spine/shaft (physically). I ...
0
votes
2answers
145 views

Programming Servo How To Get -90 Degrees

as the question title states, how will I go about turning the servo opposite of 90 degrees? I have written my code as such; // Turn servo to the right if(x > 520 && y < 510 &&...
0
votes
1answer
49 views

Arduino bluetooth HC-05 servo control

I am using HC-05 Bluetooth module to control two servos. I use Bluetooth terminal in my android phone to control them. Problem is that myServo1 is moving like I want but I can't control myServo2. ...
-2
votes
1answer
47 views

the boxservo works contrary to the code

i want to make a uselessbox .i connected the circuit correctly,i checked every thing several times and every thing is in right place[ based on descriptions and pattern],but when i turn it on,the ...
1
vote
1answer
30 views

Interrupting a servo sweep with a force sensor

this is my first time dealing with arduinos and I have a school assignment. I have a servo and a force sensor. When "1" (a character, not an integer) is typed in the serial monitor, the servo needs to ...
0
votes
1answer
21 views

Pca9685 & WS2818B, 1 Nano

Arduino n00b here. I currently have an Arduino Nano set up to run 6 servos from a PCA9685 board. I'm looking to add 6 switches and 6 LED indicators to switch servo positions. What I'm curious about is ...
0
votes
0answers
35 views

Two Servo motors don't work as required (Arduino Mega 2560)

Can anyone help me with the following codes? I have attached sensors to detect either plastic or metal materials. If the sensor detected a metal, the first servo will rotate at least 90 degrees. If ...
0
votes
0answers
17 views

Distance sensor with Servo

so I am using an Ultrasonic Distance Sensor with Servomotors and I want it that when the sensor senses a distance of 50 cm the servomotors move to the selected position and then stay in that position ...
0
votes
0answers
43 views

Motors working with Ultrasonic Sensor and Servo as expected?

So, I tried making an Arduino Project(Controlling Motors by Remote and Ultrasonic Sensor would activate Servo when the distance is less than 50cm). I am trying to build a project, A remote controlled ...
0
votes
1answer
70 views

How can I make a Parallax Servomotor move a water tap correctly and prevent from vibrations?

I am using Arduino Mega 2560 I have built an structure with plastic 3D pieces to move this water tap.: I am using the "Servomotor Parallax Inc 140 mA, 4 6 V" to rotate the tap: Some more images to ...
0
votes
2answers
27 views

How to stop program while Servo is rotating

If I code like this: motor.write(0); Serial.println("Before"); motor.write(180); Serial.println("After"); Both "Before" and "After" is instantly printed, while the motor is still rotating. I want "...
0
votes
1answer
41 views

Running a robot with 2 front-facing sensors, but it's stuttering

Here's the run down: I have a small robot with four continuous servo motors and two ultrasonic sensors. It's run by and UNO board with a Sensor Shield V5 on top. My goal is to program the front right ...
0
votes
0answers
22 views

Arduino Mega with Makerfire BLHeli_S ESC strange shaking and shorks

I'm trying to use Arduino to control brushless motors with Makerfire BLHeli_S ESC through Servo library. However, I've encountered the following issue. First, when the Mega board was updating ESC ...
0
votes
0answers
39 views

How to specify pin in Servo library?

Here's what caused the original confusion. As one know, Arduino nano and UNO use analog pin as PWM pins, while Arduino Mega use digital pin output as the PWM pins, which this webpage ignored to ...
0
votes
1answer
46 views

make servo stay at the current position when attach() is called

I use a small SG90 servo with arduino. When I call attach() servo moves to its default position or whatever I set with write() before it. I’d like to make servo stay at the current position when I ...
0
votes
1answer
40 views

Servo Program Questions

Hi programming in arduino, I am trying to get a nested for loop inside a for loop with industrial servo which used PUL +- DIR+- (bought motor off amazon). My goal is to get the puls delay to increase....
2
votes
2answers
163 views

How to determine minimum and maximum angle for cheap servos?

I have some cheap KY66 (seems to be SG90 clone) servos. When I turn them to 0°, the servo tries moving and moving, without actually getting to 0°. I read that they are reaching the endpoint but the ...

1
2 3 4 5
10