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
29 views

make servo motor to increase/decrease degree

I'm trying to make servo motor to increase or decrease degrees according to user choice. I've created an code that get input from the user via Serial and according to the input the motor increase or ...
2
votes
1answer
107 views

Code is not running, servo does not even spin

I am trying to run a program which works as follows: An LDR is integrated in a box. A block is placed on top. This box is able to be rotated by a servo. The program is supposed to make the box turn ...
1
vote
1answer
55 views

Can arduino nano drive two circuit

I am building a robot snake with a bunch of servos and ov7670. As I see, ov7670 operate with 3.3v and servos needs 5v. I will use Lipo battery for servos for this I need to connect ground pin of ...
1
vote
0answers
27 views

Changing the servo motor operating direction using arduino

I want to turn the servo motor 90 degrees with the first double high inputs, then I want to turn the motor 180 degrees with double high inputs, but the motor turns 180 degrees with one high input. ...
2
votes
0answers
40 views

Power supply for servo motor [closed]

I try to built a snake robot. I used servo motors mg996r. Its Operating voltage is 4.8 V to 7.2 V and running current is 500 mA – 900mA. I used 4 servo motor. So I need a power supply that is 4*(900mA)...
0
votes
1answer
31 views

How much voltage and amps for 2 SG90 servos?

Question is pretty straight forward: How much amps and voltage do I need for 2 SG90 servos? I want to use 4 but you might already know that Arduino Uno only has 2 5V ports.
0
votes
1answer
28 views

How to make motors start when pressing a button, and then go through a cycle with a specific motor order?

I'm very new to arduino and have to work on a project for school. We have connected 3 motors (Servo, Stepper (180 degrees) and a DC motor) to an Arduino Uno, Adafruit motorshield and a pcb. With the ...
-1
votes
1answer
25 views

Using a Encoder Feedback to control a 360 degree servo

I pieced together a sketch to control a servo that turns an encoder. Eventually I plan to build this up to a DMX input, so I have the input range from 0 - 255. Basically, it's supposed to ask you to ...
0
votes
1answer
35 views

Always HIGHT line on Oscilloscope when UNO's Fast PWM TOP ICR1

I have been trying to get an answer my question for a 2 days already. It's good for knowledge collecting and playing with different things, but there haven't been a solution so far. I'm trying to ...
2
votes
2answers
51 views

Can't stop SG90 spinning

I have a SG90. I just want it to spin 360° and stop, that's about it. This seems impossible. I have tried the sweep example: by BARRAGAN <http://barraganstudio.com> This example code is in the ...
1
vote
1answer
32 views

Arduino - ServoMotor Control and SoftwareSerial

My two arduino communicating serially with XBee. The receiver arduino also controls the servo motor. Servo works stably when there is no xBee connection. But when Arduino's serial communication, there ...
-5
votes
1answer
51 views

'scale' was not declared in this scope

I am currently doing a robotic arm project. I used load cell with HX711 amplifier to detect and monitor of the objects. If the objects is less than 3kg, then the servomotor in gripper can rotate and ...
0
votes
0answers
37 views

Servomotor and Bluetooth module block each other

For a small project, I aim to connect a digital temperature sensor (KY-028), a Bluetooth module (HC-05) and a servomotor (SG90). The problem is it seems I can't connect the Bluetooth module and the ...
3
votes
2answers
451 views

How to move a servo quickly and without delay function

Im trying to move a servo from one place to another while using the typical for loop you find in the servo's library example. int lightON = 180; int lightOFF = 90; for (pos1 = lightOFF; pos1 <= ...
2
votes
2answers
42 views

How to move a servo with a function

Im currently moving a servo from one side to another by using the typical for loop like this: int lightON = 180; int lightOFF = 90; if (buttonState == HIGH) { digitalWrite(LED, HIGH); for (pos1 =...
1
vote
0answers
22 views

Why Micro SD card can't log the data when we connect servo motor?

recently Iam making a project which includes Arduino Nano, MPU6050, BMP280, micro SD card module and a servo motor. Brief explanation of my project is basically I am trying to collect data from the ...
-1
votes
1answer
50 views

Need to move a servo for certain periods of time

#include <Servo.h> //declare to insert Servo.h library Servo myservo; //create servo object to control a servo int pos = 0; //variable pos to store position of servo unsigned long time; void ...
3
votes
1answer
35 views

Movement and storage of servo positions via bluetooth

I am trying to program a 4DOF robotic arm (using 4 servo motors). I would like to move the servos using an Android app, by means of bluetooth (HC-05). I developed the app, in whose interface there are ...
0
votes
1answer
38 views

Arduino waits until button release to activate

I'm fairly new to arduino, and on my own I'm trying to move a servo to the left and right using 2 buttons. I've got it working for the most part, however when I hold the button down nothing happens, ...
1
vote
0answers
102 views

DHT11 thermometer connected to a LCD and 2 servos connected to joysrick [duplicate]

Im trying to find a way to run two codes from the one arduino me being an absolute begginer doesnt even know where to start the DHT11 thermometer is connected to a LCD showing temperature and humidity ...
1
vote
1answer
37 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 ...
2
votes
0answers
65 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 -- ...
1
vote
0answers
26 views

How can I power off a servo the best way? Problems with MG90S servo [duplicate]

I have a NodeMCU and im trying to control a servo to move from angle A to B and viceversa. The thing is I want to be able to power off the servo after moving so it could stop getting voltage and ...
0
votes
1answer
41 views

How might I add a delay, close the servo and go to the start again?

#include <Servo.h> Servo myServo; const int piezo = A0; const int button = 2; const int yellow = 3; const int green = 4; const int red = 5; int knockVal; int buttonVal; const ...
1
vote
0answers
24 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 ...
0
votes
0answers
81 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
58 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
21 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
24 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
27 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
80 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). ...
0
votes
1answer
29 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
70 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
62 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); // ...
1
vote
1answer
102 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 <...
2
votes
0answers
59 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
57 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
22 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
58 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
439 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
20 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
54 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
63 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
65 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
124 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
32 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....
-2
votes
1answer
92 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
59 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
173 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 ...

1
2 3 4 5
10