Questions tagged [servo]

A servo is a type of motor which uses a feedback mechanism for precise control of speed and position.

A servomotor is a rotary actuator or linear actuator that allows for precise control of angular or linear position, velocity and acceleration.

It consists of a suitable motor coupled to a sensor for position feedback. It also requires a relatively sophisticated controller, often a dedicated module designed specifically for use with servomotors.

From Wikipedia

532 questions
9
votes
7 answers

What is commonly done to stop a servo after reaching desired position?

When I started Arduino, I did not expect that everything must be contained in an infinite loop. I thought I could just write something like: motor start -> motor stop. But in actuality, what I get is motor start -> motor stop -> motor start -> ...…
Fraïssé
  • 905
  • 5
  • 13
  • 16
9
votes
1 answer

How can the Arduino Uno support up to 12 servos if it only has 6 digital PWM pins?

According to this: The Servo library supports up to 12 motors on most Arduino boards and 48 on the Arduino Mega. On boards other than the Mega, use of the library disables analogWrite() (PWM) functionality on pins 9 and 10, whether or not…
user1265
  • 93
  • 1
  • 3
7
votes
1 answer

Why does Arduino's servo library use pulse widths of 544 to 2400?

I learned in school that typical servos use a simple "PWM" system to control a servo. To do this, we would generate a 1000 µs pulse to put the servo at 0 degrees and a 2000 µs pulse to set it at 180 degrees. Simple basics, right? I recently tried…
DSdavidDS
  • 71
  • 1
7
votes
3 answers

How do I extract code from an arduino?

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 get it back?
Awesome_Ace22
  • 87
  • 1
  • 1
  • 2
6
votes
4 answers

How do I make a Servo Stop if it Hits Resistance?

I am trying to make a device which will turn a turn key with a servo. However, I want it to stop turning the turn key if the resistance is too great (meaning it is locked and will not ever turn). How do I do this? Would I just tell it to turn and…
Student-LTB
  • 61
  • 1
  • 2
6
votes
1 answer

Difference between PWM and regular output port for servos?

I have been controlling my servomotors for a while now only using pin 0. After some research, it has became apparent to me that the ports with ~ are the PWM pins. I thought that all pins sent out PWM signals, therefore the motor was able to move…
Fraïssé
  • 905
  • 5
  • 13
  • 16
6
votes
6 answers

My Servo Won't Sweep Smoothly

So I've tried this a few times and I always get the same issue. When I try to run the sweep example the servo goes round 180 degrees but only in steps. Anyone know a way to fix this? The servo I'm using is a Tower Pro Micro Servo 9G SG90 // Sweep //…
Jordan Adams
  • 169
  • 1
  • 1
  • 3
5
votes
1 answer

Useless box wiring and code

just want to give a back story first. So i saw this video on youtube about the useless box, and i thought that it would make a great gift for my 7 year old. So i went out and bought everything that the guy posted in his description box. Just want to…
PeterJoe
  • 53
  • 1
  • 4
5
votes
2 answers

How to move my robot in the right direction?

After all there is more question poping up then answers i decide to upload the pdf where is everything writen, like the wire, motor type and what we can and can't use. Here is the link pdf format of the assignment So i am working on a project for…
twistedhat
  • 51
  • 3
5
votes
5 answers

Is Arduino stable enough to use it for a door lock?

I want to replace my door lock with an one made with an Arduino and a servo, but I'm not sure if the platform is stable enough to use it for something like this. If I do everything right (code, connections, constant power), could I trust in this?
IAmJulianAcosta
  • 163
  • 1
  • 6
5
votes
1 answer

Why can't most servos rotate more than around 180°

I was looking how a servomotor works. I realized that a standard servo can only turn up to 180°, but I didn't understand why. Is it because of the potentiometer?
roshan timsina
  • 117
  • 1
  • 2
  • 6
5
votes
2 answers

How do I calibrate an ESC after connecting it to an Arduino?

I'm trying to connect an Arduino to an Electronic Speed Control and failing horribly. I'll explain what I've done so far, and then I'll explain the problem. Before we get there, here's the list of parts I'm using: Arduino Uno (genuine) 6V to 8.4V…
4
votes
1 answer

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 video: https://www.youtube.com/watch?v=b_xvu6wWafA…
4
votes
2 answers

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 <= lightON; pos1 += 1) { servo1.write(pos1); …
Marcelo_M
  • 121
  • 1
  • 7
4
votes
5 answers

PCA9685: how "unset" PWM signal?

I use my Arduino with Adafruit PCA9685 servo controller. To set PWM signals I use the provided library: https://github.com/adafruit/Adafruit-PWM-Servo-Driver-Library It allows easily set PMM signal and works good. But how can I "unset" PWM signal…
1
2 3
35 36