Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

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

Stepper motor controlled with joystick wont spin anti-clockwise

Im trying to get my Stepper-motor to spin clockwise when joystick is pulled to one side and anti-clockwise when pulled to the other side. Problem is the motor only spins clockwise in both cases. Here ...
0
votes
1answer
48 views

Controlling multiple servos as one

I want to attach multiple servos to Arduino but all them must receive same command. If it possible to connect all servos to one command pin (I don't want to use "for" in code to minimize processor ...
-1
votes
1answer
43 views

Have I fried my arduino uno?

I made a smart dustbin using arduino, servo motor, & ultrasonic sensor. It worked pretty well for a few number of days. But once I don't know how but the Arduino 'ON' light started to become dim ...
0
votes
0answers
25 views

How can I make a fingerprint scanner to work as a toggle for a servo motor using Arduino Uno?

Arduino Fingerprint Project Help Please!! I am a beginner and using Arduino Uno, a fingerprint sensor and a servo motor to build a door lock (school science project). I followed many videos and ...
0
votes
2answers
18 views

Push Button to Drive Power to Servo

I am currently doing a project for a class which uses a few other components such as an LCD, a servo, and such. I want to use a button which acts as a circuit breaker on the Vin of the servo in which ...
0
votes
1answer
28 views

How to manage button state

Extreme Newbie here ...I am using an Arduino Uno and a PCA9685 16 Ch. Driver board to control servos using a push button and LED feedback. When I pust the button, the servo move but when I release ...
0
votes
0answers
28 views

Servo Sweeper works but specific angle does not

This is my first try controlling a servo. I tried the sweeper example (see https://www.arduino.cc/en/tutorial/sweep) and it works like it should. However, when I try to rotate to specific angles (more ...
0
votes
1answer
38 views

Arduino stops working when servo makes a few rotations

The sketch rotates servo back and forth with buttons. When I rotate servo MG 995/996R 2-4 times Arduino stops working. Its voltage step-down transformer switches from ~9V to ~3.7V which is not enough ...
0
votes
1answer
41 views

Blew my Arduino. Did I wire this correctly?

Hi, I am currently doing a project and it seems that I may have blown my Arduino Nano (or maybe not). The power LED of the Nano was still on and I believe the L pin blinks once every time I press the ...
3
votes
1answer
49 views

When I verify the sketch I get several errors

I am extremely new to Arduino coding and have downloaded a sketch for the PCA9685 to use with model railroading and turnout control. When I verify the sketch I get several errors ... I don't even ...
0
votes
2answers
40 views

Why can't I control speed of the motor? (M1 and E1)

When myservo_1,myservo_2,myservo_3,myservo_4 is commented, I can't control the speed of my M1 motor. But only when I uncomment myservo_1 and so on, I can control the motor speed again. Can someone ...
-1
votes
0answers
20 views

Simple MG995 Servo Load?

I recently ordered a 4 pack of cheap MG995 servos from Amazon. I'm a bit confused, I have correct wiring (servo power to 5v, ground, and d9) on my Arduino Nano. I'm running dead simple code, which ...
3
votes
3answers
2k views

How do I extract code from an arduino? [duplicate]

I updated and uploaded some code on another computer that got wiped and didn't send the new code to my current computer, the updated code is still on the board but I don't have access to it. How do I ...
0
votes
0answers
36 views

Attiny85: how to rotate the servo continuously with a press of a button?

I'm trying to use two Bluetooth commands in my code: one is press off a button "1" the servo should do its routine without stop second one press of the a button "2" servo should stop. What am I ...
0
votes
1answer
24 views

Issue with Arduino car bot, the servo motor moves randomly also it turns hot pretty quickly

I trying to create an Arduino avoiding obstacle car. Using Arduino Uno +shield (sensor sheild v5.0). The problem is that when I upload the code, the servo moves randomly (it doesn't rotate to the ...
0
votes
0answers
28 views

Issues controlling servo motors with serial monitor while using 16 channel servo Shield

I am making a 6-axis robotic arm that uses multiple servo motors.The goal is to create a program that accepts degree values from the serial monitor to control multiple servo motors. I have just ...
0
votes
0answers
31 views

Rocket deploy system

I found a code from Astronomica Messier that allows to activate a servo from a Gyroscope MPU 6050 change in direction. I followed the wiring and uploading correctly. The thing is that the MPU is ...
0
votes
0answers
23 views

How do I get my servo to turn using bluetooth, is this a glitch?

I'm very new to coding with arduino so please excuse my naivety, For an electronics assignment I am making a servo turn back and forth using a HM10 BLE however each time I press a button that sends '0'...
0
votes
0answers
42 views

Effective Controlling of Continous Servo Motor

I have difficulty in controlling a MG995 continuous motor. For I know I can control the speed of the motor as writing servo1.write(p) , where the value of p changes the speed of the motor. When the ...
0
votes
1answer
50 views

Controlling a servo motor with two arduinos?

I have two Arduinos, two buttons and one servo motor. I want to control a servo motor with two Arduino's when I pressed the buttons. I linked Arduino PWM pins (first Arduino PWM pin is 9, and second ...
0
votes
0answers
39 views

Servo PWM Pin seems to be interfering with Wire.onRequest i2C function

A newbie here. I am thinking of interfacing Raspberry Pi with Arduino via I2c to control a few servo motor (as RPi have limited PWM pins). Meaning I would send input from RPi to Arduino to allow to ...
0
votes
0answers
35 views

Trouble operating Servo and GPS at the same time

I have a problem using a servo and a GPS board at the same time on an Arduino Uno. For the servo, I use the following code: Servo myservo; // create servo object to control a servo // twelve servo ...
0
votes
0answers
49 views

Unable to control servo with decoupling capacitor and external power supply, but motor shield works

I'm a hobbyist trying to up my arduino and electronics knowledge. I can successfully control a hobby servo using an motor driver shield (https://learn.adafruit.com/adafruit-motor-shield/overview) but ...
0
votes
0answers
206 views

How can I reset servo position?

When I do myServo.write(0) It isn't straight, I want it to be straight but it is at about a 45 degree angle anyone know how to reset the position with arduino to make other positions 0 and making ...
0
votes
1answer
17 views

Possible to have different torque levels on MG966R servo with Rotary Potentiometer?

I want to apologise first and foremost, and say that I am very new to Arduinos! I wanted to control the torque on a MG966R servo so that I can separate it into 4 different torque levels. I read that ...
0
votes
0answers
23 views

RC servo motor initial position

I bought a RC servo motor and I try to run it to both clockwise and anti-clockwise direction. I tried to set the initial position myself but after I power up my Arduino, the servo motor will go to it "...
1
vote
1answer
41 views

Servo Motor in function

I have a project with 9 servo, I want to make a function to control each separate. Only that he is not accepting the servo as a parameter. Can someone tell me if it is possible to pass the servant as ...
-1
votes
1answer
39 views

'myservo' does not name a type

I keep getting 'myservo' does not name a type as an error message, I have already looked other solved questions like this one but I can´t find the mistake. I would be very glad for your help. /*******...
0
votes
0answers
13 views

green house vent servo based reading a sensor wrong

I am trying to make a green house vent that will open based on the temperature, however in my code the thermometer is not reading correctly, I've been designing it in tinkercad and heres the link ...
0
votes
2answers
146 views

How to rotate a servo motor on a specific angle?

I am trying to rotate a top on a specific angle after every 1 second. For example: 1 degree/second. I have two question: Can I achieve this with servo motors? If not, what motor should I use? I ...
0
votes
1answer
40 views

Can I solder wall cord directly to servo?

I have a servo which requires 7.4v and a wall power cord which says the output is 7.4v but the connector does not fit that of the servo. Is it safe to snip off the end of the wall cord and solder the ...
0
votes
1answer
26 views

Problems when attaching a second ultrasound sensor (HC SR04)

I am working on an obstacle avoiding robot. It uses an ultrasound sensor to avoid obstacles, but currently has trouble avoiding objects that are diagonal to it. Thus, i want to add a second ultrasound ...
1
vote
1answer
61 views

Servo motor (HSR-1425R) not running continuously

I'm trying to programme a servo motor to reach certain positions. I have a 360 degrees servo motor, so I can not use the Servo library and I can only control the speed. Therefore I want to regulate ...
0
votes
0answers
17 views

Use joypad to control a robotic arm with 8 servos

I'm using Arduino UNO and the SSC-32U board to control a robotic arm made up by 8 digital servos. At the moment, I'm correctly able to move each servo by using the following code: move1(servo_pin, ...
0
votes
1answer
19 views

Options for powering a Futaba servo

In one of my earlier questions it was determined for me that my Futaba Servo should not be powered directly from the 5v pin of my Arduino and should instead be powered by an alternative source. I was ...
0
votes
0answers
34 views

Servo not moving

I have connected my servomotor (MG996R) to my L293D motor shield, which is connected to an Arduino Uno R3 Board. I use 4x AA 1.2V NiMH batteries to power the shield, and a regular 9V battery to power ...
0
votes
1answer
60 views

Switch Control Between Two Different Techniques

I have implemented PID control of a generator governor to maintain a constant RPM using an Arduino Uno. It works pretty well, but there is a tradeoff between stabilty and response time. Using PID ...
0
votes
1answer
51 views

Looking for some help with an RGB LED animation

I'm working on a project that is running off of a Sparkfun Pro Micro 5V. I'm trying to accomplish a color rainbow cycle animation which will have a function when triggered to fade the rainbow to black ...
0
votes
1answer
102 views

16-Channel 12-bit PWM/Servo Shield check if it is powered by adapter

I'm using Adafruit 16-Channel 12-bit PWM/Servo Shield with Arduino Uno controller In setup() I have a number of default positions with PWM commands for motors with plug of USB to PC and turning on I'...
-1
votes
1answer
121 views

SG90 servo motor not working

I tried to test a servo motor for a project using this simple circuit but the motor won't move. I've used this before with the same setup and code and it worked, but now suddenly nothing works, even ...
0
votes
0answers
19 views

how spilt the sensor values then use them to control servos in nodemcu v3?

#include <ESP8266WiFi.h> #include <WiFiUdp.h> #include <Servo.h> const char* ssid = "Ece Control"; const char* password = "myphonewifi"; WiFiUDP Udp; unsigned int port = 5514; char ...
1
vote
1answer
220 views

declared variable inside void setup is forgotten in void loop

if i declare a var in void setup() and try to do something with it in void loop(), it just says that the variable is undeclared. here is the code: #include "Servo.h" void setup() { Servo servo1; ...
0
votes
1answer
37 views

Why my servo motor is always on?

Why my servo motor is always on? #include <Servo.h> Servo myservo; int pos = 0; void setup() { pinMode(2, INPUT); myservo.attach(9); } void loop() { if (digitalRead(2) == LOW) { ...
2
votes
3answers
135 views

Using Servo on Timer3 on a Leonardo

I would like to use the Radiohead library and control a servo from the same Leonardo board. Now the Radiohead library occupies timer1 and therefore cant be used together with the servo library. (It ...
-1
votes
1answer
65 views

About UART one transmitter multiple receivers

I have vector nav vn100 IMU that sends data serially rs232...I want to drive 4 servo motors using atmega32 upon roll angel from vector nav vn100..atmega32 can only drive 2 servos using hardware fast ...
0
votes
0answers
30 views

Arduino Port randomly changes whenever I punch correct RFID tag

I was working on an Electronic Door Lock/Unlock system using Arduino Uno and RFID Reader/Tags on Ubuntu 18.04.02 lts. Now the problem is that whenever I punch-in the correct RFID tag to the RFID ...
0
votes
0answers
14 views

Tower pro mg3996r servo problem

Recently I bought 5 original TowerPro mg3996r metal gear servo for my Robotic's project, I tried to test run each of them separately with arduino built in example servo's 'SWEEP' code. I tried to ...
0
votes
0answers
125 views

SOLVED Accelerometer/gyro MPU6050 is freezing after random time

SOLVED: I "solved" the problem by cycling my Arduino's power and I haven't had an issue since. I would still like to figure out what was going on. I still think it's something in that MPU6050 library ...
-1
votes
1answer
47 views

Servo motor not working properly with arduino

I have some problem with my fyp, which is auto serving of food using train. I have 4 servo motors, first servo motor's function is to connect the track to table no.1, and second motor for table no.2 ...
0
votes
1answer
55 views

Wanted to control 2 servos with serial read [closed]

I want to use 2nd servo only when 1st is in up state by asking user whether he wants to fire or not.(code in bold is not working ) #include <Servo.h> Servo myservo; Servo trigervo; ...