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
19 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
32 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
28 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
22 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
43 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
27 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
34 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; ...
0
votes
2answers
19 views

multiple invdividual servo controll arduino

I want to declare 11 servo motors in my code. Is there a better way to do that than just declare everyone under each other. The reason is that i have a code that will set the rotation for one at a ...
0
votes
0answers
40 views

Guidance on controlling gimbal brushless motors?

i want to make a gimbal using an arduino and im having trouble finding how to control brushless gimbal motors with arduino as they all go into a BGC ive found a BGMC https://rovertec.com/products/...
0
votes
0answers
44 views

Stepper motor controlled with joystick wont spin anti-clockwise [duplicate]

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
50 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
45 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
41 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
23 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
55 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
52 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
42 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
50 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
43 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 ...
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
41 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
25 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
33 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
24 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
43 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
58 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
44 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
39 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
78 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
372 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
24 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
25 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 "...
0
votes
2answers
55 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
75 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
369 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
41 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
27 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
20 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
36 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
61 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
56 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
103 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
176 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
20 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 ...