A servo is a type of motor which uses a feedback mechanism for precise control of speed and position.
0
votes
0answers
7 views
Servo powering from external power HELP
I have a Towerpro mg995 servo motor. I hooked it up with my Arduino, with the power supply being external. I tried 5V, but the servo behaves nothing like the code, which is just a simple sweeping ...
1
vote
0answers
30 views
Control servo motors with buttons and via web application
I have this assignment and I have been tinkering a long time about it. I need to make a simulation of a parking lot where servos would represent the ramps.
I will be using 2 Arduinos running the same ...
0
votes
1answer
25 views
Arduino Mega with two Arduino Unos as slaves via I2C?
Good morning! This is my first post here, and my first time diving into the world of microcontrollers. Bear with me, as I describe this theoretical project.
I've got an Arduino Mega 2560, two ...
0
votes
1answer
32 views
'Simple' problem. Delay not working?
Servo goes to one end, and immediately travels back without a 2s delay inbetween. After it travels back there is a 2s delay before it loops. Why isn't there a 2s delay before the travel back?
Servo ...
0
votes
1answer
16 views
Arduino Servo.h library returns error in compilation
I have a problem with Servo library. This is my (very short XD) "code":
#include <Servo.h>
void setup() {
Servo.attach(9, 554, 2400);
}
void loop() {
Servo.write(2000);
}
And it ...
0
votes
1answer
24 views
Looking for a small servo, any recommendations? [closed]
I have been scouring the internet for a servo that can fit in a watch, and work with arduino. I can not find any. The ones that I do find are micro and a good size but the control horns(teeth) are on ...
1
vote
1answer
18 views
Help choosing a servo motor
I am struggling to choose servo motor for my project. There are two servos on ebay. Th First one is named Only "Towerpro micro 9g servo" and the second one that is cheaper is named as a "Towerpro 9g ...
0
votes
1answer
27 views
Arduino Motor Shield
It seems that I can't get the DC Motor function to work while also having servos driven off the other ports :(
#include "Arduino.h"
#include <Servo.h>
int pinI1=8;//define I1 interface
int ...
0
votes
2answers
36 views
Receiving partial messages when using VirtualWire and ServoTimer2
I'm writing a project where an Arduino board that is connected to a servo engine receives commands from another Arduino. The possible commands are:
Move 10 degrees
Reset position
Sweep until you're ...
1
vote
2answers
71 views
I would like to control 16 motors with a servo shield
Ok so I've used nicks code and have the code running once ok.... I the noticed however I had a fast 180 sweep and then it returned under control of code. I then noticed the comments wrt pulselen of ...
2
votes
1answer
95 views
Converting Arduino UNO's analog pins to digital I/O
I am working on an Arduino UNO Project and running out of digital pins.
Can I convert the six analog pins to digital I/O and use them to drive servos?
Please suggest me a method
0
votes
1answer
28 views
Servo motors won't work with motor controller
I have a motor controller controlling two motors, which works perfectly fine when I comment out the two servos in the below code. These two servos are not connected to the motor controller but simply ...
1
vote
1answer
55 views
Arduino Mega PWM pins stop working for LEDs once servo is attached?
I can get LEDs to fade properly using PWM on pins 44-46 on the Mega2560 when I don't have a servo attached, but once I "attach" the servo in the code, then PWM pins 44-46 don't work for PWM. They can ...
0
votes
1answer
33 views
Servo Speed Control
I work in a robot using arduino, and i have a few questions:
It is possible to increase the speed of a servo, for example a parallax?
It is possible to measure the current that pass through a servo?
0
votes
0answers
39 views
How to reverse BLDC motor using programming arduino?
I bought ESC from here but it rotates motor in one direction only.
Is there any program which will control direction of rotation clockwise or anticlockwise with same wire configuration.
0
votes
1answer
22 views
outlet switcher using servo moter
I am building a small scale watering system to water my plants controlled by Arduino. I have designed most of the project except for how to switch water between multiple pipes.
A little more ...
0
votes
1answer
46 views
Why is my “mood cue” not working?
I am new to arduino, and I am working through the "Arduino Projects book," with the arduino uno. I am working on project 5, "the mood cue." It is basically a potentiometer-controlled servo. I am ...
-1
votes
1answer
205 views
Controlling servo 360 degree(clockwise and anti clockwise) using arduino with “if statement”
I am facing a problem to control my 360 degree servo motor using arduino by "if statement" and the input will be potentiometer.
For and example, "if the analogRead<200" i want the servo motor to ...
1
vote
2answers
113 views
RC servo misbehave using arduino and MPU6050
I am a beginner.. I am trying to control RC servo using Arduino based of data from MPU6050.
I am using library I2Cdev to communicate with gyro and to get yaw, pitch and roll. I am using example script ...
0
votes
0answers
24 views
Servo + LCD + Ultrasound sensor works on USB, doesn't work on external 9V/1Amp
I have a basic Arduino ("Funduino") Mega circuit set up that moves one of those small blue microservos according to the distance an ultrasound sensor reports.
The distance is also shown on a ...
1
vote
1answer
46 views
Arduino Servo is behaving strangely
I am trying to use the Arduino Servo library to drive a simple servo and am having some difficulty getting it to even move.
Here's the setup:
And the schematic that Fritzing generated for me:
...
0
votes
1answer
58 views
Arduino Servo circuit by example
I have an Arduino program that uses the Thread library to create two concurrent threads, where:
Thread #1 blinks an LED every 500ms; and
Thread #2 blinks another LED every 250ms
I wired things up, ...
2
votes
3answers
88 views
Running a servo and tone() won't compile? “multiple definition of `__vector_32'”?
Im using Spark fun pro micro:https://learn.sparkfun.com/tutorials/pro-micro--fio-v3-hookup-guide/hardware-overview-pro-micro
I am controlling a servo motor which reads its data from a pot connected ...
-1
votes
1answer
54 views
Servo - Serial communication problem
I am sending data from an Arduino Uno to an Arduino Mega via serial communication.
The data is analog value. I'm getting that data and converting it to an int. There is no problem there. However, ...
0
votes
2answers
99 views
Arduino SoftwareServo by example
I am interested in writing a simple Arduino program that will turn a servo back and forth (180 degrees each time) continuously.
I am looking at these servos and am planning on following this example.
...
0
votes
3answers
197 views
How to control 2 servos at same time in sync?
For overcoming torque issues, I have attached 2 identical servos on a certain part of my robot arm and because I saw someone do the same.
Now, while writing code I realize:
#include <Servo.h>
...
1
vote
3answers
715 views
Do I need the Motor Shield to drive servo motors?
I was perusing Arduino's list of official shields and noticed the Motor Shield that can be used to drive up to 2 servo motors.
Being brand new to Arduino/robotics, I am wondering: do I really need ...
0
votes
1answer
66 views
Servos wont move
I made simple code for a robotic arm, but the servos dont seem to be reacting at all. I made debug code before all the if statements, and those arnt working. I made sure my wiring was good and it is.
...
2
votes
1answer
68 views
Why does timer1 not generate correct period on CTC mode with a resolution of 5us?
I have defined my code to generate an interrupt over each 5μs on CTC mode using timer1 but the output shows a time of ~15μs.
Following the equation to set the counting number to achieve the ...
0
votes
0answers
92 views
Unexpected Timer Conflicts (Uno)
I've been working on a project (Arduino Uno: Atmega328) that implements a gyroscope (which is used with the LSM9DS0 spark-fun library) that is communicated with through I2C and uses a Servo library. ...
0
votes
0answers
430 views
Servotimer2.h is not recognised as a library by arduino uno
I'm doing a project for school with an arduino uno. I want to control a motor using a RF-module as remote control. I need the library Virtualwire.h to use the RF-module and the library Servo.h to ...
1
vote
1answer
235 views
How to precisely control servo motor by changing duty cycle?
I developed a PWM using timer1,using arduino uno and digital output, and identified that when I send a wave with duration of 0.6ms in High level, the motor goes to 0º. If I send 2.1ms, it goes to ...
0
votes
2answers
92 views
Servo broken? Explanation, Solution
I had a question, I tried to control a servo with the arduino, to the servo I attached a stick and at the end of the stick a little weight. After runing my code my servo tried to move the stick, but ...
0
votes
0answers
59 views
Servo Issues with Arduino
I am trying to execute the sweep program but all the servo does is go back and forth in one step. When I tried changing the delay, It behaves erratically.
Servo Specs:
Required Pulse: 3-5 Volt Peak ...
0
votes
1answer
63 views
Adding a steering servo
I got a Sparkfun Redbot Kit a while back. I ended up building it vanilla and it was a good introduction to the board (the board is basically Uno and a motor shield in one) and the toys that came with ...
0
votes
0answers
121 views
Which Timer can I use to control a servo with Arduino Uno
I would like to control 2 motors using Timer2 @ 200Hz. The frequency of the timer is printed in the main loop every second. I'm using an Arduino Uno with two interrupt used for the encoders ...
0
votes
0answers
31 views
27 Servo Project, Uno with Adafruit's 16-Channel Drivers
I'm working on a project where I need to be able to control 27+ servos. The problem is that I am unsure how to control them from a computer. I'd love to build a simple program with a user interface ...
0
votes
1answer
42 views
Stop servo when enter 0
I am trying to stop servo motor from rotating when I enter 0 in serial. The code is below. Can someone please help?
#include <Servo.h>
Servo myservo; // create servo object to control a servo
...
1
vote
1answer
87 views
I want a couple of servos to listen for P.C. input (data from OSC protocol), can I bypass having to use an Arduino?
...and whack a stripped usb cable straight into a prototype board?
by bypass having to use an arduino I mean any kind of sheild? polulu would be perfect but im trying to avoid needing any of this.
...
0
votes
0answers
52 views
Servo position initiaition using PySerial unexpected results
Hi I'm using Brian Wendt's code for setting up my Arduino Nano with 4 servos using PySerial which works perfectly.
So my next step was to get a nice GUI with sliders to position the servos, again no ...
2
votes
1answer
71 views
Continuous Servo not setting speed correctly
I have two continuous servos connected to my Uno, and I'm running this code on it:
leftServo.write(91);
rightServo.write(102);
delay(3000);
leftServo.write(112);
rightServo.write(81);
delay(3000);
...
1
vote
3answers
336 views
Why does my servo twitch and turn on its own?
I've been trying to write a very simple program using Arduino to tell a servo to go to a specific angle when a button is pressed, and to another specific angle when it is released. I find that, even ...
0
votes
0answers
153 views
Motor Shield with 4 DC motors + small servo, which battery is suitable?
I am building my first 4wd vehicle with Adafruit motor shield with one Ultrasonic sensor and one small servo to move sensor.
I am facing some problems.
Bought 4 motors (2 GM9 and 2 GM3), found ...
0
votes
2answers
214 views
project not working when switching to battery power
I have a project which involves a photocell, an led, a push button, and a small hobby servo (tower pro sg5010) - the project works as expected when the arduino is powered by usb, but when I switch ...
0
votes
1answer
105 views
Servo Buzz / millis()
I am having a problem with Servo Buzz that I have ascertained is from the millis() function using too much time for Arduino to generate a steady pulse for the servos.
I looked at this thread but was ...
0
votes
2answers
294 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 ...
0
votes
1answer
64 views
Arduino cannot communicate with PC after running servo
I was messing around with my arduino uno r3 and servo today. The book I got said to run the servo through the arduino. Everything was fine. I started changing the code, and then things started to get ...
0
votes
0answers
94 views
Instability issue with servos & what rods/gear wheels/components can fit the 28BYJ-48 step motor (and Tower Pro SG90 micro servos)?
Recently got an arduino kit. Came with a 28BYJ-48 step motor and a Tower Pro SG90 micro servos.
When I run the basic servos example on the SG90, it will finish the code and go back to it's starting ...
0
votes
1answer
754 views
Cannot control servo with button.
I am unable to get a button on my arduino board to control a servo. I'd like the servo to rotate 90 degrees on button push, but it is unresponsive.
Is there a flaw in my code or is it wiring?
...
0
votes
0answers
142 views
Using 4 16bit timers for 400hz PWM
I'm dealing with arduino mega based quadcopter and trying to make PWM frequency for 4 motors = 400hz.
I've found an interesting solution where 4 ATmega2560 16bit timers are used to control 4 ESCs with ...