A servo is a type of motor which uses a feedback mechanism for precise control of speed and position.
0
votes
1answer
24 views
How can I stop my Servo rotating?
I have a continuous servo motor connected to my Arduino UNO. I want it to react to the Hexadecimal code received by an Infrared remote. I want the motor to rotate once in one direction and then rotate ...
0
votes
1answer
27 views
Using SPI Interrupt causes two servos to lose functionality
My Arduino MEGA clone (ATMEGA 2650) reads SPI data as a slave using an interrupt.
There are also two servos that make an arm (shoulder and elbow).
When I comment out the line that attaches the SPI ...
1
vote
1answer
22 views
`servo.attach()` paralyzing (one) motor on L298N
I have 2 DC motors (well, 4; but each pair is controlled by the same "signals") connected via a L298N, which is connected to the Arduino. In addition, I have a servo motor connected to the Arduino.
...
3
votes
1answer
82 views
Can you tell me if this circuit will work?
Here's an image of my circuit diagram. There are 8 9g servos connected to the arduino gpio pins. The servos have an external power supply of 3 volts (may vary depending on the voltage requirement of ...
3
votes
0answers
28 views
Servo Driven Through Custom Library Not working Properly
I'm a little new to Arduino, but not to programming or electronics in general. I'm working on a library that will be more fleshed out later, but I'm having issues getting the basics working properly.
...
1
vote
1answer
26 views
Using 2D servo array in my class
I need to use a servo library in my class.
I read this question - Use object of other class within class and it works fine for my LCD application, but now I need to use a 2D servo array in my class. I ...
0
votes
0answers
22 views
Servo with energy feedback [migrated]
I'm following the idea that it could be helpful to have a feedback of a servo. There are already servos on the market plus self-made-tutorials, but all of them provide only the actual position. What I ...
0
votes
1answer
22 views
Servo Control using Pushbutton
I was trying to build a system that when the user pushes the button, the servo rotates 45 degrees and than returns back to zero. This system is going to be duplicated as there will be two servos and ...
1
vote
1answer
152 views
error: stray '\' in program with servo
I'm doing a project for school using Arduino to make a catapult, but I have this error that I didn't have the previous week.
Can anyone see the program and search where is the error?
#include <...
4
votes
2answers
83 views
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 ...
0
votes
1answer
36 views
Servos and Random Number
I am new to coding and this website so I apologize if I make any mistakes. I am trying to get servos to move when a random number is generated. Like if I roll a 2 I want servos 1, 2 and 3 to open and ...
0
votes
0answers
10 views
Servo driver library
I have bought a servo driver from eBay (for $3).
It's not ada fruit, but I want to know whether ada fruit's servo driver library will work on it.
If it won't which library can I use?
0
votes
2answers
38 views
Continuous Rotation
I was wondering how can I make a Servo rotate continuously by using an Arduino code.
I looked through several forums and websites already, but all of them just show how to make it run by changing the ...
1
vote
2answers
53 views
The easiest and most time efficent way to connect to the internet regardless of the cost
I am working on my graduation Project. I want to use the cayenne (mydevices) platform to control my Arduino. Mainly I want to be able to control a servo Motor through the Cayenne app and I want to use ...
3
votes
2answers
107 views
Hold a random number
I am trying to create a code that has at least 6 servos attached and two buttons for a two player game. I want to be able to roll a random number and have it hold that value then when it is that ...
1
vote
1answer
19 views
State machinese for serial input
I am trying to control a servo using keyboard.
void loop() {
if (Serial.available() > 0) {
x = Serial.parseInt();
while(pos < 180){
pos = x + pos;
Serial.println(pos);
myservo.write(...
1
vote
0answers
22 views
How to use Servo movement with RTC with Storage error [closed]
#include <Wire.h>
#include "ds3231.h"
#include <Servo.h>
Servo myservo;
int potpin = 0;
int val;
int pause = 800
#define BUFF_MAX 256
;uint8_t wake_HOUR1 = 10;
uint8_t wake_MINUTE1 = 53;
...
0
votes
1answer
40 views
Can I connect a servo directly to arduino uno without a transistor?
I am going to mount an ultrasonic sensor on the servo.
3
votes
1answer
48 views
The Mysterious Case of the Mostly-Vegetable Servo
Story:
I was playing around with my Uno along with a servo.
To my stupidity (or more appropriately: ignorance), I set the voltage to my servo with analogWrite(), rather than servo.write(). It worked ...
0
votes
1answer
98 views
Why does exit status 1 stray '\302' in program pop up around Serial.println ( “-> Second Service load”);? [duplicate]
/*
Controlling a servo position using a potentiometer (variable resistor)
by Michal Rinott <http://people.interaction-ivrea.it/m.rinott>
modified on 8 Nov 2013
by Scott Fitzgerald
http://...
1
vote
0answers
15 views
Controlling 20 servo motors independently with a single Arduino
I am wondering if I can control 20 different servo motors with only a single Arduino Uno board. My motors must be able to rotate in both directions and I also should be able to define the speed for ...
1
vote
2answers
48 views
Coding problem (gesture sensor)
Hi I am using an Arduino Mega 2560 with two sparkfun zx gesture sensors, two servos, 4 rgb leds strips and 4 light switches.
With the sensor, the code relies on interrupts, which interfere with the ...
-2
votes
1answer
19 views
Setting two distinct min/max ranges for two servos
I am using two servos that need to have the following min/maxes:
left_servo = 10,90
right_servo = 90,170
However, when I try to make two sets of constant integers, the servos do not move. I would ...
1
vote
0answers
38 views
Adding a kill switch for servos with states - blink without delay code
I have many LEDs and two servos connected to one Arduino Uno, and the servos are programmed to move randomly indefinitely. However, I would like to install a kill switch for the servos by reading a ...
1
vote
1answer
27 views
How do I code my arduino to return a throttle servo to idle?
I have an Arduino powering a small 180 degree Parallax servo that is used to control the throttle link for a small engine. I have code right now that will allow me to open/close the throttle (in ...
1
vote
2answers
39 views
Smooth servo control library
Is anyone aware of an Arduino library for smoothly controlling a servo?
I have an especially fast servo, which is trivial to control using Arduino's built-in Servo library. However, the library doesn'...
4
votes
0answers
40 views
Servo.attach method causing strange issue
I am using the L298N motor driver for a robotics project to control 4 motors. 2 in each input and output terminal. I have this connected to an arduino uno which is powered by about 7-8v from nimh ...
0
votes
2answers
111 views
code for automatic door
code changed // i want it running as a normal automatic door so both sensors work as a separate activate the only problem ive seen is that the servo remains active waiting for another high read and u ...
1
vote
2answers
53 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 ...
0
votes
2answers
103 views
What power supply should I use?
I am building a robotic arm using 8 servo motors. I am wondering about what voltage my external power will need to be to control all of them at 6v. I am wanting to use a rechargeable battery.
5
votes
5answers
4k views
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, ...
0
votes
1answer
71 views
Arduino MPU6050 Control 2 Servo
I'm new to gyroscope and accelerometer and am working on my project to control servo with Arduino Uno R3 based on the reading from InvenSense MPU6050 6DOF gyroscope and accelerometer. I've found the a ...
1
vote
1answer
31 views
Servomotor losing its connection right after being connected to Arduino
I am working with two servomotors and both are having the same problem: right after i connect them to the arduino and upload the code, they do as the code says for a really small amount of time (0.1s ...
1
vote
3answers
154 views
Why does HC-SR04 return 0s in this sketch
I am building a robot with multiple sensors, abilities etc. Since I had a bug with a HC-SR04 rotated by a servo, I experimented in a different sketch. If the distance is less than 30cm, the servo ...
1
vote
1answer
75 views
How come my code does not wait for a specific time before going into an if statement?
I have an HC-SR04 attached to a servo. When the 90 degree reading is less than 30 cm, I want the motor to take 2 seconds to turn to 130 degrees, get a measurement on the right, and turn back to 90 ...
0
votes
1answer
58 views
How to turn servo to a specific location and then turn over
I work on my first arduino car project and i want to turn my servo to a position with a letter input
This is my code so far
#include <Servo.h>
Servo servo;
void setup() {
Serial.begin(...
0
votes
1answer
25 views
Arduino servo motor on pushbutton
I'm working on my first arduino project and i have my first problem dealing with servo motor , i'm trying to control the servo from my pc with this code but it just spining :
#include <Servo.h&...
0
votes
0answers
56 views
servo detach function problem
This is my test code.
I used the detach() function to stop the servo, but it didn't turn.
By the way, I used the Uno board.
#include <Servo.h>
Servo servo;
int servopin =6;
void setup(){
...
0
votes
1answer
27 views
Problems with running multiple ESC
I've written a program which allows me to use my Arduino Uno to send a PWM to an Electronic Speed Controller. 5 seconds after startup the ESC is sent a config via PWM to signal the low to high PWM ...
0
votes
1answer
30 views
Arduino servo seems to time out after code runs for some amount of time
I am running a simple servo program that swings the servo back and forth, it is essentially pressing a button continuously. However, after some time the servo stops moving and it seems like the code ...
0
votes
1answer
26 views
Servo City PT785 with HS785 servo. help
I have acquired a Pan Tilt system that uses the hitec HS785 servos. These servos are (3.5 to 6) multi turn "SailWinch" servo. I was hoping someone here has Arduino code that runs them full range. I am ...
0
votes
0answers
19 views
Science behind hyperterm Tx Rx and Simulating same through Arduino. Serial Communication Between Rs160d motor controller and Arduino
I have a motor module Rs 160D. I am able to access it through Serial via Hyperterm software. I have noticed that every character i enter as part of command Send/Receive LED blinks on the USB-RS232 ...
0
votes
1answer
23 views
Why does my servo execute an action in the beginning when the odds are almost 0?
I made a servo motor turn if the result of random(0, 10000) is less than or equal to 1. If that is the case, the motor turns to 130 degrees, to 50 degrees, and then to default position(90 degrees). It ...
2
votes
1answer
139 views
how to run servo 180 degrees and stop
I'm creating a PIR motion sensor doggy door.
The problem I'm having with it is, it runs 3 times, I've figured out how to pause when reaches 180 but not how to stop.
I was thinking I could use ...
0
votes
1answer
24 views
Servo Speed Changer with Buttons
ok so yesterday i was in trouble with the buttons, with help from you i got over it and everything worked fine with the 1st speed of the servo, then i added the other 2 speeds and it looks like it all ...
0
votes
1answer
60 views
Arduino uno unexpected void loop stop
I have a trouble with following, few lines code.
For some reason after few seconds Arduino uno stops responding into void loop section of code.
I tried to remove serial communication, all print and ...
0
votes
0answers
33 views
incorrect servo angle
I am making an arduino code to control a servo motor , arduino will receive data from matlab ( the angle from 0 to 180) , this is the code
#include <Servo.h>
int servoPin = 9;
int num;
Servo ...
0
votes
2answers
107 views
Can anyone recommend a breadboard for the new Arduino 101?
I just got an Arduino 101 board. I was told that it's practically the same as the UNO. But have no experience using the UNO and I've only done super simple things on the 101 board without using a ...
-1
votes
2answers
42 views
is it possible to control 5 servos with arduino mega? [closed]
I want to make a robotic arm (quite large ). I am going to use more than 7 to 8 volt servos should I use relays to control them. Is it possible to control 5 servos with arduino mega or should I buy ...
0
votes
2answers
38 views
Scale Magnometer to Servo
I'm trying to determine what is the best way to scale a magnometer to a servo, I am using the BNO055 from Bosch I get a heading say 50 degrees, and I want to be able to input 45 degrees and have the ...