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
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
0answers
22 views

Continuous servo rotation with on/ off switch

I am trying to make a ball return catapult. I have a mechanical design already in mind. I need to have a servo rotate constantly. Just one will be enough. I preferably want to do this without an ...
1
vote
2answers
52 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
43 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(...
2
votes
2answers
79 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
27 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
22 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
21 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
29 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 ...
1
vote
0answers
48 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 ...
0
votes
0answers
19 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
27 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
34 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 ...
0
votes
0answers
25 views

Servo moving in steps of 10º after Servo.attach without any write command

I am new to Arduino and I was trying to test some code with servos. However, once I place the Servo.attach(myPin) to the code my servo starts moving continuously in steps of around 10º, with a delay ...
1
vote
0answers
35 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
13 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
29 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
33 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
111 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
55 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. ...
1
vote
0answers
44 views

Power supply for servo motor [closed]

I try to built a snake robot. I used servo motors mg996r. Its Operating voltage is 4.8 V to 7.2 V and running current is 500 mA – 900mA. I used 4 servo motor. So I need a power supply that is 4*(900mA)...
0
votes
1answer
46 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
33 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
39 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
38 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
64 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
42 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
152 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 ...
0
votes
1answer
51 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 ...
3
votes
2answers
485 views

How to move a servo quickly and without delay function

Im trying to move a servo from one place to another while using the typical for loop you find in the servo's library example. int lightON = 180; int lightOFF = 90; for (pos1 = lightOFF; pos1 <= ...
2
votes
2answers
44 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 =...
0
votes
0answers
25 views

Why Micro SD card can't log the data when we connect servo motor?

recently Iam making a project which includes Arduino Nano, MPU6050, BMP280, micro SD card module and a servo motor. Brief explanation of my project is basically I am trying to collect data from the ...
-1
votes
1answer
51 views

Need to move a servo for certain periods of time

#include <Servo.h> //declare to insert Servo.h library Servo myservo; //create servo object to control a servo int pos = 0; //variable pos to store position of servo unsigned long time; void ...
2
votes
1answer
36 views

Movement and storage of servo positions via bluetooth

I am trying to program a 4DOF robotic arm (using 4 servo motors). I would like to move the servos using an Android app, by means of bluetooth (HC-05). I developed the app, in whose interface there are ...
-1
votes
1answer
45 views

Arduino waits until button release to activate

I'm fairly new to arduino, and on my own I'm trying to move a servo to the left and right using 2 buttons. I've got it working for the most part, however when I hold the button down nothing happens, ...
1
vote
0answers
102 views

DHT11 thermometer connected to a LCD and 2 servos connected to joysrick [duplicate]

Im trying to find a way to run two codes from the one arduino me being an absolute begginer doesnt even know where to start the DHT11 thermometer is connected to a LCD showing temperature and humidity ...
1
vote
1answer
58 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 ...
2
votes
0answers
77 views

servo acting weirdly

I have bought two original TowerPro MG966R 360 degree continuos rotation Hi-torq digital servos. Expected results : 90 deg -- no rotation 90 - 0 deg -- speeding up to one side 90 - 180 deg -- ...
1
vote
0answers
26 views

How can I power off a servo the best way? Problems with MG90S servo [duplicate]

I have a NodeMCU and im trying to control a servo to move from angle A to B and viceversa. The thing is I want to be able to power off the servo after moving so it could stop getting voltage and ...
0
votes
1answer
43 views

How might I add a delay, close the servo and go to the start again?

#include <Servo.h> Servo myServo; const int piezo = A0; const int button = 2; const int yellow = 3; const int green = 4; const int red = 5; int knockVal; int buttonVal; const ...
1
vote
0answers
31 views

IR output won't stop

So I basically tried to control a Servo motor with an IR Remote. I'm a complete newbie in arduino programming but I just took some things from other scripts and tried them out until It worked, and it ...
0
votes
0answers
94 views

LEDs lighting up when off due to servo motor being on

Within my arduino project I have began to run out of GND ports on my arduino so I am having to resort to using 1 GND port for lots of electric components. I have 2 LEDs that are each connected to a ...
0
votes
1answer
120 views

ESP32 servo runs continuous

I have ESP32 connected to TZT servo SG90. This is the code #include <ESP32Servo.h> #define TURN_TIME 175 Servo myservo; // create servo object to control a servo // 16 servo objects can be ...
1
vote
1answer
24 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 ...
1
vote
0answers
28 views

How do I reset to servo position everytime I excecute a particular sequence

I'm trying to make a prosthetic hand that can play rock, paper, scissors with a human. It is based on the premise that you push a button and it randomly selects a move to play. After each move, I'd ...
2
votes
1answer
31 views

Servo doesn't move if I detach it AFER the write?

So this is a bit weird, and I don't understand anything. Basically, I'm just playing with my servo. I wrote a small program, which can be found at this link: https://pastebin.pl/view/8e9c9573 (Note: ...
1
vote
2answers
143 views

Arduino Vin pin does not work, but Arduino 5v pin power works

I have a very weird problem, at least it seems to me that way. I have connected L298N motor driver, Arduino and a hobby servo with a 6v power supply (tested with both 4xAA and 9v alkaline batteries). ...
-1
votes
1answer
40 views

Servo motor analog vs digital and AC vs DC

I am little confused with servo motor terminology. Q1. AC servo motor requires AC power source ? Q2. DC servo motor requires DC power source ? If answer to above 2 questions are YES then what does ...

1
2 3 4 5
10