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
-2
votes
0answers
26 views

I have 2 Arduino programs that work separately. How can I merge them? [duplicate]

IMPORTANT* I am new to this. A virgin to code I dont understand the millis function I have two solutions in mind but uncertain of how to format Solution 1) use scheduler / or millis to ledR high for ...
0
votes
0answers
19 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
19 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
48 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)...
-1
votes
0answers
21 views

Best way to control two HS-55 servos via NodeMCU

I am doing a project for a friend who would like to open his intercom via his mobile phone. For this two small buttons need to be pressed down (1 for opening the door and 1 for the indicating light), ...
0
votes
0answers
18 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
24 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
30 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
47 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
22 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
99 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
27 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
32 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
37 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
34 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
64 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
42 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
38 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
54 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
57 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
46 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
39 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
36 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
26 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
92 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
42 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
45 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
27 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
20 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
33 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
61 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
26 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
19 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
28 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
40 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
37 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
99 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
108 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
34 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
43 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
60 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
50 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
85 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
37 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
851 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 ...

1
2 3 4 5
10