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
10 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
40 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
26 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
38 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
43 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
61 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 ...
0
votes
1answer
39 views

What does it mean to overdrive a servo and why is it bad?

So I'm learning about servos and I heard that you can overdrive a servo, what does that mean and why does it matter? Btw I'm using a cheap SG90 servo.
4
votes
1answer
101 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
28 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
83 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
58 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
27 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
54 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
67 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
0answers
26 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
84 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
24 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
52 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 ...
0
votes
1answer
32 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 ...
2
votes
0answers
44 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 ...
3
votes
1answer
130 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'...
3
votes
0answers
57 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
109 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
11 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
2answers
86 views

Micro-servo 9g SG90 not rotating

I have an Arduino nano. I am a beginner to Arduino, so I tired the example sketches. The "Blink" sketch worked well. So now I am trying to get this Micro Servo (9g SG90) to work. No codes ...
1
vote
1answer
95 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
99 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
33 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
27 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
24 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
33 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
70 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 ...
0
votes
0answers
59 views

Weight based Servo Trigger

I have a 20KG Load cell with an HX711 and I am looking to trigger servo movement if the load cell detects a predetermined weight reading. Is anyone able to please help with the coding for this or ...
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
34 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 ...
0
votes
1answer
35 views

How can I stop my servo looping when my sensor doesn't detect movement?

I have this project with my Arduino UNO where I want my servo motor SG90 to go full speed to 180 degrees when the PIR sensor sends HIGH value and go slowly back to zero when the value is LOW. I have ...
1
vote
0answers
48 views

I am trying to control a continuous servo (mg996r) with an RF remote but it's not working, I'm not sure what's wrong

I am trying to control a continuous servo (mg996r) with an RF remote, but it's not working; the servo just spins in one direction, I don't know what's wrong. I am new to Arduino so I don't really know ...
1
vote
0answers
16 views

How do I set up bluetooth to wirelessly control servo's connected to an arduino from my PC?

I have been working on a project that includes two servos, one is on X axis the other is Y, the Arduino takes my cursor's X,Y coordinates over a Visual C# program and translates them through the ...
-1
votes
1answer
52 views

working on ARDUINO BASED cnc plotter error needs to be solved (invalid conversion from 'char' to 'char*' [-fpermissive]indexY = '\0'; [closed]

HERES THE CODE.. #include <Servo.h> #include <AFMotor.h> #define LINE_BUFFER_LENGTH 512 char STEP = MICROSTEP ; // Servo position for Up and Down const int penZUp = 95; const int ...
1
vote
0answers
42 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
112 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
56 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
33 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. ...
0
votes
1answer
80 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.
1
vote
1answer
46 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
58 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
44 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
112 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
56 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
304 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 ...

1
2 3 4 5
11