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
2answers
58 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
1answer
50 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 ...
0
votes
1answer
43 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.
0
votes
3answers
527 views

Programming Servo How To Get -90 Degrees

as the question title states, how will I go about turning the servo opposite of 90 degrees? I have written my code as such; // Turn servo to the right if(x > 520 && y < 510 &&...
1
vote
5answers
6k views

9x servo on Arduino Nano?

I saw this project with multiple servos: In Servo We Trust! Let's control 135 servos with a single Arduino! I wanted to miniaturize this project. BUT instead of triangles i will use SQUARES. :EDIT: ...
2
votes
1answer
66 views

feather 32u4 servo

I am attempting a project where I use a feather 32u4 to control a servo. It is controlled using the buttons on an attached oled featherwing to set the servo to 3 different values. The code that was ...
0
votes
1answer
109 views

Arduino bluetooth HC-05 servo control

I am using HC-05 Bluetooth module to control two servos. I use Bluetooth terminal in my android phone to control them. Problem is that myServo1 is moving like I want but I can't control myServo2. ...
1
vote
1answer
69 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
1answer
327 views

Make system with ultrasonic sensor and servo

I want to create a system where the servo will make the ultrasonic sensor move and detect the area in front of it. I have made the program but when run the ultrasonic sensor can not detect as usual. ...
0
votes
1answer
564 views

Sending servo position data from one Arduino to another

I'm trying to take the position data generated from this servo sweep, and send over serial to another Arduino. The position data is stored as pos in the code I included, what would be the best method ...
3
votes
1answer
43 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
vote
1answer
2k views

How do I use a photodiode for arduino?

I am doing a project that requires me to program an arduino to sense changes of a steady stream of light due to the scattering of that light. If the phootodiode does change its resistance to the ...
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 ...
2
votes
3answers
391 views

RFID stops working when I place the servo

I've successfully implemented Door Unlock system described in this tutorial. At first I used Arduino Uno and RFID RC522 Reader and MG90S Micro servo. When I used Arduino Uno with Arduino Pro Micro ...
-1
votes
1answer
41 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
27 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
41 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 ...
2
votes
2answers
6k views

Connecting an Arduino to a servo with an external power supply

I have purchased an MG995 servo (4.8-7.2V operating voltage, 170MA no load operating current draw) and will power this using a 5V, 2A mains plug pack. Do I need a breadboard to connect this with my ...
3
votes
3answers
500 views

Servo jitter with Arduino

We're complete beginners with Arduino and we're working on a project that moves a pointer based on a color sensor reading. We used two servo motors each: one performs a specific task, the small 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 ...
0
votes
2answers
5k views

6 + 1 motors connected to an arduino uno?

Is it possible to connect 6 dc motors and 2 dc servo motors to an Arduino Uno? I intend to control the Uno with a Raspberry pi connected through USB. Assuming every motor to be bidirectional, how ...
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 ...
0
votes
1answer
159 views

Smart Servo Shield: How to upload code to AtMega8

I recently bought a Smart Servo Shield controller from DFrobot to use with my new AX-12A Dynamixel servos. The shield is attached to an Arduino Uno. The shield itself works fine, but it does not ...
0
votes
1answer
469 views

Wemos mini pro switch power from servo with mosfet bs170

I got a servo connected to a wemos/arduino with a capacitor(470uf). Before I didn`t use a cap. Now with the cap the device use to much power while sleeping(capacitor on the servo). I want to switch ...
1
vote
1answer
43 views

Pca9685 & WS2818B, 1 Nano

Arduino n00b here. I currently have an Arduino Nano set up to run 6 servos from a PCA9685 board. I'm looking to add 6 switches and 6 LED indicators to switch servo positions. What I'm curious about is ...
1
vote
0answers
29 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 ...
1
vote
1answer
122 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 ...
1
vote
2answers
53 views

Connecting a servo motor to an Arduino

I currently have a push solenoid connected to my standard Arduino board. The Arduino is powered via its USB cable, while the solenoid is powered using a 12V Huawei adapter (in conjunction with a ...
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 ...
1
vote
1answer
33 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 ...
2
votes
1answer
59 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 ...
2
votes
1answer
111 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 ...
2
votes
2answers
79 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 ...
1
vote
1answer
44 views

Can I control Arduino functions via PWM?

I want to control small functions from an Arduino, things like moving servos or toggling lights. The purpose of these is to decrease the number of channels on a rover I'm constructing. Using the PWM ...
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 ...
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
56 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
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 ...
1
vote
1answer
450 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
2answers
55 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 ...
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....
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 ...
3
votes
1answer
136 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
45 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
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 ...
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&...
0
votes
1answer
77 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 ...
0
votes
2answers
95 views

Micro-servo 9g SG90 not rotating [closed]

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
34 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 ...

1
2 3 4 5
11