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

atTiny85 5V and servo usage

I have an AtTiny85 that I would like to move a servo on I/O "4" for this project. I can't seem to get it to work, no matter what I do. I had tons of issues getting it to program, but I've ...
1
vote
1answer
38 views

Servo keeps rotating

I used a 360° servo with a program I made on an Arduino Uno. The program was meant to control two separate servos with two potentiometers on a breadboard. When I used 180° and 90° servos, it worked ...
0
votes
2answers
43 views

Trouble understanding min and max parameters for the Servo motor

This picture is from arduino.cc . Could someone please help me understand these parameters min and max? I was using TinkerCad taking input for the angle using a potentiometer (having mapped correctly ...
1
vote
1answer
54 views

servo motor and l298n motor driver doesn't work together with esp32

so basically I am using 4 servo motors for our robotic arm and 1 l298n motor driver for 2 motor drive for base of the arm. when I individually tested robotic arm and controlled 4 servo motors, it ...
1
vote
1answer
51 views

Continuous Servo motor won't stop rotating

I wanted to use bluetooth to control my continuous servo motor to rotate 360° for once, and I used MIT app inventor for the ui to control it Also, my continuous servo motor won't stop rotating even ...
2
votes
1answer
51 views

How does Arduino Servo.h library manage to output PWM when a Servo motor is connected to a non-PWM pin? [duplicate]

While learning more about Servos, the main thing i have learned is that, Servos (SG90) need PWM signal with the frequency of 50Hz. And the duty cycle of the frequency is used to rotate the angle of ...
3
votes
0answers
41 views

PCA9685 - Hardware problem with diode?

I'm working on a project, where I need to run several high-torque servos. For that I bought come of these PCA9685 boards. I hooked everything up with my arduino and connected an external 5V - max 3A ...
1
vote
0answers
37 views

Problem when using Servo.h and WIre.h libraries [duplicate]

I have a project that consists of an Arduino, a NodeMCU and 2 servos. The NodeMCU is configured as master and the Arduino as slave. I have bidirectional flow of data between them. In order to receive ...
1
vote
0answers
24 views

servos act strangely instead of stopping/starting

I am trying to make it so that my robot rolls straight when pin 8 is high and stop when pin 8 is low, the 2 servos is constant rotation servos. instead the servos spin when the wire touches it pin ...
1
vote
2answers
75 views

PID control doesn't work. After computing the values, the values just become equal to 0

So, I have a working code of the stabilizer project using 2 servo motors, mpu6050, Arduino Uno. However, I want to add PID part for tuning the servo motors movement. I followed the example PID library ...
1
vote
0answers
22 views

Arduino UNO and PCA9685 - Problem with external power supply

I am totally desperate and hope you can help me. I've been building a project for a while where I have to control several servos. For this I bought some MG996R servos and a PCA9685 16-Channel Servo ...
1
vote
0answers
35 views

Arduino and PCA9685 - Suddenly stopped working

I'm using an Arduino Uno and a PCA9685 board to run 4 servos (of type MG996R). For that, I set up the following connections: SCL -> SCL SDA -> SDA Ground -> GT VCC -> 3.3V As the servos ...
2
votes
1answer
119 views

How to Independently run positional and continuous servos using millis()?

I am setting up 3 servos (2 position servos and 1 '360' continuous rotational servo) with Arduino. but I failed to run these independently. It runs one after another. I wish to run it in loop ...
1
vote
1answer
44 views

what is the maximum number of servo motors that can be connected to a l293d motor shield?

I have a requirement in which I need to run 2 motors and 6 servos. The motors and servos won't be running simultaneously at any given time. what best can I use. I Was hoping to use l293d shield as it ...
2
votes
0answers
44 views

Simulink resets arduino

I am working on servo motors control through serial communication protocol, I am sending data from Simulink to arduino and vice versa, The problem I am getting is that once I open Simulink Servo ...
1
vote
0answers
54 views

What external battery do I need?

For a school project I need to connect an Arduino with an accelerometer gyroscope sensor and 2 mini servo motors. Of course I need a battery for this. However, I don’t know what battery I need for ...
1
vote
0answers
51 views

Servos "jump to fixed position" at startup when powered by external power supply only, but not by board

My question is about something that is happening ONLY when I use external power supply. When I use the power from the Arduino Mega directly, there is no problem. However, I need to use an external ...
1
vote
0answers
42 views

1.) How do I delay a servo motor from turning in a loop? 2.) How do I make a servo motor's change in position dependent on temperature?

I'm super new to the c++ programming world (currently taking the class now) and I'm in need of some assistance with some coding that's way beyond my knowledge at the moment. I have to write a code for ...
3
votes
1answer
51 views

First I2C project - Unable to get any servo movement with PCA9685

I'm working on a project where I need to run multiple servos. For now though, I'm trying to get a single MG90S servo running with a PCA9685 servo driver but I'm unable to get any movement from the ...
-1
votes
1answer
54 views

Arduino Sleep to conserve battery - How to intergrade it to existing sketch - HELP pls

My sketch below is simply using a touch sensor to activate a servo motor to go from from initial position 0 to 180 then back to 0. then I want the Adruino NANO to go to sleep to conserve some battery ...
1
vote
1answer
30 views

Mixed SHARP IR Sensor Readings

I'm using the GP2Y0A21YK Sharp IR Sensor in a ball and beam system where I'm trying to balance the ball in the center of the beam using the IR Sensor as a distance locator and a servo motor to tilt ...
2
votes
1answer
97 views

How to control multiple servo motors at the same time with protothreading using an I2C PCA9685 PWM board?

I'm trying to use protothreading to control two (and eventually four) servo motors over I2C using a PCA9685 PWM board. To start, I am simply trying to sweep the two motors back and fourth at the same ...
1
vote
0answers
54 views

How to control multiple servo motors simultaneously using protothreading?

So I'm trying to control 4 servo motors simultaneously using the Protothreads library by Ben Artin, but I am starting with 2 just to see if it works. I have succeeded in getting two LEDs to blink at ...
1
vote
1answer
66 views

How to use this specific arduino shield

I am trying to understand how to wire this Arduino Uno shield properly. My goal/main questions: I have 6 servo motors and I am trying to wire them properly to this shield. Do I need an external ...
4
votes
1answer
106 views

Arduino UNO won't move servo

I have a simple MG996 servo motor and I am trying to make it move with my Arduino Uno. I tried different ways of wiring but nothing seems to work as fully expected. For the wiring I followed this ...
1
vote
0answers
35 views

ATTINY13A, Servo only makes half a sweep

I have been trying to get a servo to sweep using an attiny13A. And i managed to get the servo to (kindoff) work by the help of a previous thread. But i'm now getting an issue. The servo only goes to ...
2
votes
2answers
89 views

arduino acclerometer with servo motor

I'm currently working on project to operate three motors while sending accelerometer value to computer via bluetooth module. I want the motor operation and value transmission to work seperatly. But ...
2
votes
1answer
68 views

External Power for MicroServo (SG92R)

Why won't my MicroServo run at external 5v power supply? , I've tested my power supply and can light up 1 LED and also run the servo mainly on arduino and it works just fine. Im currently using a ...
1
vote
0answers
52 views

Using 4x1 MUX to control a servo

I was supposed to first create a 4x1 MUX using AND and NOT gates. The 4 input data lines (io,i1,i2,i3) were 4 PWM pins from the arduino (3,5,6,9), with analogWrite() values as 100,150,200,250 ...
-1
votes
3answers
110 views

Smooth Servo movement for robotic arm: An ongoing answer and soluton

This is not and will not be a duplicate. This is a thread meant to share a solid soliton I figured out with the rest of the community and update it as I optimize it, ad-hoc. So I had visited ...
1
vote
2answers
79 views

(noob) 2 servos for robot (head & chest) movement at different speeds at once

I have an Arduino Uno and two Hi-tec Servos HS-40 & 5055 digital that I'm using for a basic robot build. I'm trying to have 1 servo(HS-40) turn the head back and forth (left to right) slightly ...
1
vote
1answer
53 views

Brushless Motor "twitches" on its own when connected to battery

I've been trying to make a Bluetooth slider app that can control the spin speed of a brushless motor. The transmitter I am using is Arduino Mega. The problem I'm having is that my motor will start ...
2
votes
3answers
135 views

how to run 2 different servo (continuous rotation and regular servo) in parallel, not run one after other?

I need to control 2 servos in parallel, whereas one is of continuous rotation and another is of regular positioning control (angle) on arduino IDE. I tried but it works one after another, not parallel....
1
vote
1answer
26 views

Servo noise during program flash on Arduino

I'm running serveral servos using a driver A4988 and external power supply. Everything works fine. I've just noticed one issue that I can't explain. As soon as I upload a new program version on my ...
0
votes
2answers
84 views

Im trying to map a joystick to a servo but need the servo to be at 0 when the joystick is in nerural. And up to 180 when joy is forward or back

Im trying to map a joystick to a servo but need the servo to be at 0 when the joystick is in nerural. And up to +180 when joy is forward or back. I just cant seem to figure out the mapping or setup ...
-1
votes
1answer
33 views

How do I make my Arduino do a specific action when the computer is locked/unlocked?

I have a windows computer connected to my Arduino Uno. I work in a area with a bunch of cubicles and we leave our desk fairly regularly to go and troubleshoot other computers (I'm a service desk ...
1
vote
0answers
76 views

How can I control 2 servos separately using a joystick on an ATTiny85?

Prelude I haven't done a lot of work in programming chips. The ATTiny85 is the first chip I've programmed, and I have the hang of the basics I think, but I don't have an in-depth understanding of it's ...
2
votes
1answer
219 views

Driving a servo with an ATTiny13A

So, I managed to fry my cheap servo/ESC (electronic speed controller) and decided to make my own using an ATTiny13A on some perfboard. But, I have run into some issues getting the servo to respond. I'...
2
votes
0answers
64 views

Servo wont work with LED code!

I'm basically trying to combine my servo code and my LED code but whenever I add my servo code the LED refuses to turn on at all. I am super new to arduino sorry if this doesn't make any sense! Servo ...
2
votes
1answer
170 views

Random Servo Movement with Arduino Uno

Recently, I have been working on a project involving 8 Tower Pro sg90 servos and an Arduino Uno. The issue I am running into is that the servos will randomly move when connected, without even ...
1
vote
0answers
12 views

Hello, help with CODE servo mechanism and DS1307

I am trying to make a auto feeder for birds!, I can't setup my code, the aim is to move servo when the certain time comes, My commend if doesnt work, what else commend can I use? #include <Wire.h&...
1
vote
1answer
129 views

DS3218MG Servo - Not working with power supply

I'm trying to run my DS3218MG Servo Motor with an external power supply and my arduino nano. I'm using the following code: #include<Servo.h> Servo Myservo; int pos; void setup() { Myservo.attach(...
3
votes
2answers
112 views

How can I share one power supply between an arduino and servos?

I'm trying to power an arduino and a few modules (RF receiver, two servos, and a laser diode) through one power supply. I get jittery/unresponsive servos when hooked up in the following configuration: ...
1
vote
0answers
34 views

Servo starts spinning 360 degrees after a few minutes

I'm using my ESP8266 as a web server to tilt a camera with the servo Tower Pro Micro Servo 9G. #include <Servo.h> #include <ESP8266WiFi.h> const char* ssid = "SSID"; const ...
1
vote
1answer
28 views

How can I remove the delays in this code for sweeping the servo?

I know this is probably a very asked question, but I am building a fairly basic radar type thing which sweeps left and right and uses an ultrasonic sensor to determine the distance to an object and a ...
1
vote
0answers
26 views

Servo make partial rotation and stop working automatically

I'm using this board in my robotic arm project: Adafruit PCA9685 16-Channel Servo Driver ( https://learn.adafruit.com/16-channel-pwm-servo-driver/using-the-adafruit-library) I've connected all of my ...
1
vote
1answer
40 views

Rotating Servo Motor using Arduino

Using arduino, I'm trying to rotate a 360 servo that will move clockwise 5 seconds,pause and counterclockwise for 5 seconds and then completely stop. However, my servo just continuously keeps on ...
0
votes
2answers
75 views

Don't understand problem with my code

I'm trying to get a robot car(elegoo one) to do the obstacle avoidance course. I am trying to write my own one from scratch to better myself and thus would really appreciate it if someone were to tell ...
1
vote
0answers
22 views

SG 90 not working

I have tried almost everything but the servo is not moving at all here is my schematics https://create.arduino.cc/projecthub/arcaegecengiz/how-to-use-servo-motors-with-arduino-b02bed Here is my code #...
0
votes
1answer
50 views

What motor to move a small telescope?

i just bought a hobby telescope, it works well for being nothing much than a toy, the very problem is that the gesrs that should keep it stable are all plastic and very hard to tighten while keeping ...

1
2 3 4 5
11