Questions tagged [servo]

Programming questions related to controlling a servo motor through programming.

A servo is a hardware mechanism that moves with signal input. It uses negative feedback to control itself precisely.

297 questions
-1
votes
1 answer

doit.am 4-way motor & 16-way servo shield board not working with adafruit libraries

Got a servo + motor driver arduino shield with a robotic arm chassis from amazon. Found this link on the web : https://github.com/SmartArduino/SZDOITWiKi/wiki/2-4ch-DC-motor-%26amp%3B-16ch-servo-shield---motor-and-servo-shield Not enough details to…
-1
votes
1 answer

Is there a way to write the servo position in angles with Adafruit 1411 Servo shield?

I'm trying to control my 180 degree servo motors through a Adafruit 1411 Servo shield. However I don't find it simple enough to write the servo's position in angles like the normal servo library without the shield. Using the Adafruit 1411 Servo…
Arnoldy14
  • 3
  • 1
-1
votes
1 answer

How to code EEPROM with potentiometer in Arduino

I have A code I got from a site. I've been trying to add EEPROM in that code but I can't get it right. I tried adding EEPROM.write and EEPROm.read I also add another servo Can someone help me with it, Adding EEPROM in the code? Thank you in advance…
Coddie
  • 9
  • 2
-1
votes
1 answer

what is a motion controller card (ni motion controllers ) and its difference to motor driver?

I have a 400 watt servo motor with a driver which needs some pulses to move the motor and control its speed , it can count the encoder pulses, includes electronic gears and many thing else . is the motion controller card a replacement for the…
Hesi
  • 113
  • 2
  • 10
-1
votes
1 answer

Arduino/C++ IF/ELSE statements

[Later Edit] I have a Arduino Uno together with an RFID-RC522, a servo motor and some LED's + I also made a aluminium foil sandwich/switch. Here is the code BEFORE THE ALUMINIUM SWITCH, with everything working perfect: #include #include…
-1
votes
1 answer

4.8 Volt Servo Motor with 4AA or 9V

I am trying to use eight 4.8V SG92R servo motor with my Arduino, but I can't seem to power them correctly. I have tried one 9V battery for every two and splitting the voltage with two 100 Ohm resistors, and 4AA batteries (6V total), but nothing…
-1
votes
1 answer

Servo motor misbehavior

I am trying to make an automated door which opens/closes the door on receiving commands via Bluetooth. All I want the servo to do is: Remain steady on powering up the Arduino. (Currently it rotates to a certain angle and comes back on powering up…
Rohit Mathur
  • 131
  • 2
  • 7
-1
votes
2 answers

Motors for linear and rotary motion

I have a use case where I should apply a push action and then rotate 45 degrees or so. I want to know what kind of motors I should look for! (google talks about servo motor / potentio motor, etc.). I want to listen from experts on this. It is an IoT…
Gana
  • 482
  • 3
  • 11
  • 32
-1
votes
1 answer

powering arduino and servo with a single battery

I have been struggling to power up a servo and arduino at the same time. Is it possible to connect a 3.7v 2200mah battery using a step up voltage regulator and then connect the servo and arduino in parallel? I also want to charge the battery, that's…
-1
votes
1 answer

Disjoint Movement of Joints of Aldebaran Nao

I am working on a locomotion system for the Aldebaran Nao. I noticed that my robot's motions are very disjoint as compared to those on other robots - a problem that I am pretty sure is code related. I am updating my robots motions using code…
Austin
  • 79
  • 1
  • 6
-1
votes
1 answer

Servos not running properly on AVR

I'm not gonna waste your time, and just post the code along with the explanation #define F_CPU 8000000UL #include #include #include int main(void){ sei(); //Enable interrupts DDRB = (1 <<…
Shahe Ansar
  • 314
  • 2
  • 12
-1
votes
2 answers

arduino servo is moving randomely

i have amg996r servo and an arduino mega. when i am running the sweep example from the arduino servo library the servo is moving almost randomly, looks like it moves toward the desired position and before reaching moving back to 0 degrees(altough it…
guy
  • 40
  • 7
-1
votes
1 answer

Gps in combination with servo on arduino

We are building a boat which needs to steer towards a certain coordinate. Therefore we attached a GPS and a compass into the board. We were able calculate the direction that the boat has to steer. When we plug in the GPS module together with the…
-2
votes
0 answers

Servo Easing with Servoblaster on Raspberry Pi

I am using servoblaster from https://github.com/srcshelton/servoblaster Is it possible to implement some sort of easing algorithm in python? Example: The following will full speed move servo_x to 1125 at full speed and then back to starting position…
DanZ3r0
  • 1
  • 1
-2
votes
1 answer

Motor Driver isn't working properly while servo.attach(A0); line present in the code

I written a code for a motor car and written basic functions like go_forward(), go_backward(), turn_left(), turn_right() and stop(). all functions are working properly in the loop() function. but when I added the code lines for servo motor: #include…
1 2 3
19
20