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
0answers
18 views

How to use an ATX power supply with servos? [closed]

I'm using an ATX power supply to power a few servos, but when I use the 5v pin I just get a ticking sound and no movement (even with only one servo connected.) However it seems to work as expected if ...
0
votes
0answers
23 views

Synchronisation with Twin Linear Encoders [closed]

below are the available tools: Arduino Mega 2560 Rev.3 I have 2 linear encoders. 2 hydraulic cylinders 2 selenoid proportional valves. my question: can these two hydraulic cylinders move the ...
0
votes
1answer
35 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 ...
0
votes
1answer
23 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
28 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
39 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
33 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
52 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
51 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
45 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
33 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
34 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 ...
0
votes
1answer
23 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
63 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
37 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
43 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 ...
0
votes
1answer
26 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
14 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
32 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
16 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
41 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
53 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
25 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
39 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
17 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
26 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
36 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
36 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
76 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 ...
0
votes
0answers
24 views

How to run my servo until an input is recieved?

I am VERY new to this so please excuse any silly questions. I am trying to run an FS90 micro servo in a sweeping motion until I receive a certain value from my Adafruit TCS34725 colour sensor. I ...
0
votes
1answer
86 views

Function to control servos

I'm trying to control 6 servos while writing a lean code. I think the function call isn't correctly yet and I think that the variables (pos_n, open_n, servo_1) in the for loop do not get inserted, but ...
0
votes
0answers
30 views

FlexiTimer giving errors in servo motion

I am working on a quadruped bot, spiderbot and I am trying to make a creep gait using Forward kinematics however, for some reason my code stops working after the execution of the line - [pwm.setPWM(...
0
votes
1answer
40 views

arduino uno freezes

Is there a reason why my Arduino Uno freezes after a few minutes of running with power coming from a usb cable connected to my pc? #include <GY6050.h> #include <Wire.h> #include <...
0
votes
0answers
48 views

Servo MG996R - what is the maximum load for very long time?

I am working on a device which will have to periodically switch positions and keep the position for very long time, as accurate as possible, under tension. Never worked with servo motors before, but ...
-4
votes
1answer
46 views

expected '}' at end of input

hi i am getting this error, im guessing i have a bracket missing or one in the wrong place. any help is appreciate, still new at this. thank you (code bellow) #include <Wire.h> #include <...
0
votes
1answer
64 views

Continuous servo speed control with Arduino Uno controller and servo shield

It is very simple device, 2 continuous servos FS5113R, rotates continuously in one direction. Here is device original content, which is this servo shield it looks like russian, and here is library, I ...
0
votes
0answers
22 views

press button: servo move - hold X time - move back issue

Besides being a total noob I've been lurking and reading like mad over the last week to understand how to get my servo to move to X position when a button is pushed, have it wait Y time, and return to ...
2
votes
1answer
33 views

feather 32u4 servo

I am attempting a project where I use a feather 32u4 to control a servo. It is controlled using the buttons on an attached oled featherwing to set the servo to 3 different values. The code that was ...
4
votes
1answer
529 views

Useless box wiring and code

just want to give a back story first. So i saw this video on youtube about the useless box, and i thought that it would make a great gift for my 7 year old. So i went out and bought everything that ...
0
votes
0answers
104 views

How would i add PID control to this servo motor control program. potentiometer

I have installed an AutoPID library (by ryan downing version 1.0.3) to my arduino IDE, but im not sure which parts i will have remove to get the PID to control the servo angle. Thanks for the reply, ...
0
votes
0answers
30 views

Trying to get a servo motor to move to certain setpoints when a control potentiometer shows certain values

Here's my Code so far: void setup() { Serial.begin(9600); } void loop() { float a; float angle; int setpoint; a = analogRead(A1); angle = map(a, 0, 1023, 0, 180); if ( (angle>0) &...
0
votes
1answer
32 views

PWM using timer3 for servo control won't generate any output

I'm making a program for a small robot arm controlled by four servos. Problem: I need for PWM outputs, timer1 has three so i need to use timer3 for the last one The main program and the timer1 ...
0
votes
0answers
29 views

How to control servos on Arduino through Raspberry Pi

I have a couple of servos connected to an Arduino board, which is in turn connected to a Raspberry Pi (4) using an ethernet cable. Just wondering, in what ways can I control the servos on Raspian. ...
0
votes
2answers
518 views

Position Feedback for Stepper Motor

I want to rotate a gearwheel with a stepper motor. While Arduino is on everything is well. My gearwheel transfer its power to a gear worm. The worm will go 10th cm and back repeatedly. When I cut the ...
0
votes
0answers
78 views

Arduino cat feeder

My cat feeder works like that: LCD shows real time clock Press a push button LCD shows you to put the feeding time You put the feeding time through a matricial keyboard When feeding time is reached, ...
0
votes
0answers
36 views

Controlling servo with L298N

I am entering a robot contest, and my bot requires 3 motors and 1 servo. I know I can control the motors with 2 L298N boards, and have an extra spot for a motor with the second board. I was wondering ...
0
votes
0answers
34 views

Program not running when uploaded [duplicate]

I made a simple code for my Arduino Uno with a servo motor: #include <Servo.h> Servo myservo; void setup() { myservo.attach(10); } void loop() { ...
0
votes
0answers
139 views

How do change my Arduino Uno from an unknown device to a port?

I have an Arduino Uno that I have connected to a servo motor. I used an adapter to plug it into my computer and my computer said "Setting up a device, this will only take a minute". When it was done ...
0
votes
0answers
29 views

How to combine button's coding into this servo's coding? [duplicate]

#include <Servo.h> Servo myservo; // create servo object to control a servo // twelve servo objects can be created on most boards int pos = 0; // variable to store the servo position void ...
0
votes
1answer
35 views

I am trying to combine a button's coding and servo's coding. But it is still cannot be verified. What have I done wrong? [duplicate]

include Servo myservo; void setup(){ myservo.attach(8); pinMode(buttonPin, INPUT); } void loop() { myservo.write(0); delay(3); myservo.write(90); delay(3); } const int inPin=8; ...

1
2 3 4 5
9