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
1answer
11k views

Why does it say “Servo” does not name a type

#define pingTrig 6 #define pingEcho 7 #include Servo myservo; void setup() { pinMode(pingTrig, OUTPUT); pinMode(pingEcho, INPUT); myservo.attach(9); } void loop() { long duration, inches, cm; ...
1
vote
0answers
853 views

Using an ultrasonic sensor to act as a potentiometer for a Servo?

I would just like to start off by saying that I am new to Arduino so my code and approach to the wanted outcome are probably not the best. Anyway, I had the idea of using an ultrasonic sensor and my ...
0
votes
1answer
943 views

Servo limitations vs SoftwareServo

I heard that Servo library cannot send and receive from other arduinos without inturrupting the timer and messing up the motors. SoftwareServo is supposedly the answer to this. Is this true? Neither ...
1
vote
2answers
379 views

Where can I find beginner resources on using voltage regulators with Arduino circuits?

I'm trying to concurrently learn electronics and Arduino, and have recently moved from simply powering LEDs to servos. In all my attempts with servos and reading about them (especially multiple ones, ...
0
votes
1answer
989 views

Unusual LCD behaviour

Can someone please tell me what's going on with my LCD screen and how I can fix this issues below? I have the following: Arduino Uno R3 w/ ATMEGA 328P-PU 16x2 LCD TowerPro MicroServo SG90 DPDT Slide ...
0
votes
2answers
5k views

How do voltage and resistance work for two 5v servos when using an external 12v power supply?

I have a 12v/1.5 amp barrel plug power supply on my Arduino Uno. I have two servos that say they are rated for 4.8v to 6v, but no amps are specified. When my circuit is configured as it is in this ...
2
votes
0answers
1k views

Power servo with external power using a hacked USB cable

I want to use a servo motor and control it by an Arduino Duemilanove (or a Leonardo). It seems to work fine when I connect it directly to Arduino's VCC, GND and an PWM pin. But I am a bit worried if ...
3
votes
1answer
1k views

Controlling Dynamixel MX24T, MX64T servo wirelessly using Arduino Mega?

I am planning to control multiple Dynamixel servos (MX28T or MX-64T) wirelessly using an Arduino Mega. Since this servo uses serial communication, I need an additional serial port to interface with ...
2
votes
2answers
347 views

Servo library unable to control more than 11 servos

I am working on assembling the ROFI robot from Project Biped (http://www.projectbiped.com/prototypes/rofi) and I have not been able to run any arduino program as they will not function correctly. To ...
2
votes
3answers
2k views

Arduino starter kit servo is shaking

In the example of the arduino starter kit the point is to use a potenciometer to control a servo. The code is angle = map(potVal, 0, 1023, 0, 179); The output in the serial potVal: 1023, angle: ...
1
vote
2answers
13k views

Sample code for using adafruit servo shield?

I would like to control 16 motors with a servo shield, however, I have found scant to nothing sample code online. The one I was able to find is...strange to say the least https://github.com/kachok/...
6
votes
7answers
97k views

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 ...
6
votes
1answer
6k views

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 ...
1
vote
0answers
958 views

Galileo - servo motor moves only in one direction and it doesn't turn back

I have an Intel Galileo (1st gen) and a servo motor (Tower Pro SG90). My problem: my servo moves only in one direction and it doesn't turn back. I want to perform a movement from 0° to 90° and then ...
1
vote
0answers
112 views

Can I use the SVG headers on the SainSmart Uno to drive servos?

I am working with a Sainsmart Uno with SVG header pins. This header is really convenient for hooking a servo to directly, so I have two servos connected to it on D9 and D10 and a 9v battery supplying ...
2
votes
2answers
979 views

Arduino Packet for Bluetooth

I'm having trouble figuring out how to start my project. The objective is to control a robot with four servo motors and six DC motors through bluetooth. I have a bluetooth shield from Adafruit and I'm ...
2
votes
1answer
764 views

Is there some sample code for operating a servo with an Adafruit Motor Shield?

I have an Adaruit Motor Shield v2, and a Tower Pro SG92R micro servo. I've got it setup so the shield works with my Arduino Uno, and I've successfully tested using other types of motors on the shield. ...
0
votes
2answers
2k views

Problems controlling servos using proximity sensor

I've just started using Arduino and I need to make a code to simulate the behavior of a lizard, meaning that if you come close to it, it moves away from you. I'm using a "Arduino duemilanove" that my ...
1
vote
1answer
431 views

Arduino servo acts weird with photocell (lightsensor)

I have a weird thing with my servo, I really dont know what is wrong with my code, I tried everything. Either it is my connection on arduino or my code. Please help me guys, this is my code. #include ...
3
votes
2answers
2k views

Servo Keeps Trying to Turn

I currently have a servo wired to my Arduino and have imported the Servo.h. Here is my sketch: #include <Servo.h> Servo s1; Servo s2; void setup() { Serial.begin(9600); s1.attach(8); ...
1
vote
2answers
3k views

How to map PID output to actuator control?

I'm building a control system for the heating of a house. A sensor reads the temperature inside and is then used as the input in the PID control. The temperature is then controlled by a servo which ...
8
votes
1answer
2k views

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) ...
5
votes
6answers
9k views

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

1
6 7 8 9
10