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
0
votes
1 answer

How to query the servo MBean for Hystrix?

I am able to access the MBeans in JConsole, and they show up like com.netflix.servo > HystrixCommand > countSuccess > (actual commands and their attributes) I couldn't find any examples on how to query these objects and the values, e.g. the…
user2066936
0
votes
1 answer

Arduino Tower Pro SG90 Continuous rotation servo Control

I have Hacked Tower SG90 for continuous rotation. I can control it for forward and backward motion. But I don't know how to stop the servo. I am using arduino nano to control Servo. Here is my code : #include Servo myservo; // create…
The SuperKat
  • 234
  • 2
  • 10
0
votes
1 answer

What power supply for servo?

This might be a stupid question although I tried to search everywhere and the answer is kinda of fuzzy. I am trying to power a MG996R High Torque Metal Gear Dual Ball Bearing Servo (manual and description below). This is attached to an arm (wooden)…
The Law
  • 83
  • 1
  • 14
0
votes
1 answer

Servo continuous rotation Arduino Serial

I'm working on a Bluetooth controlled Arduino robotic arm. I want that when I send an integer, a servo moves, and when I send another Int, it stops. All I have found on forums are systems where the servo moves to a specific position, but I want it…
Hugo Trombert
  • 25
  • 1
  • 8
0
votes
2 answers

GND Servo and Arduino

I was working in a little project with Arduino and two Servomotors Why is it necessary to putting the GND from external source (necessary to power the servomotor) and Arduino GND together? Why is not able to work properly with separated GND?
0
votes
0 answers

Moving a servo with Python and Arduino via serial not working

In Python I've made a script to read pointers of a game, it reads and output the data through the python console. Now i'm trying to send that data to an Arduino and move a servomotor similar to a speedometer. The problem that i've got is the…
0
votes
1 answer

Ethernet connection crashes when using python socket

Ok so I have a UDP socket setup between two computers. One computer gets coordinates from a joystick and sends them as a array over the socket. At the other end the array is received and then the value is sent to a servo. The problem is, is that…
ferret249
  • 53
  • 1
  • 10
0
votes
1 answer

Weird behaviour after deleting/commenting code

I've run into some weird behaviour and looks like I can't find an answer. I've written some simple code to control a servo motor via bluetooth using my phone. #include #include "SoftwareSerial.h"; int servoPin = 2; int bluetoothTx =…
mrklr
  • 81
  • 1
  • 6
0
votes
0 answers

Serial to RS232 for servo control

I am trying to control an Ultramotion Linear Actuator that takes in strings as commands such as TR TE TA .... etc. I have been able to get the Linear actuator to work using a USB to RS232 converter and the program PuTTY. However i need to control…
emg184
  • 850
  • 8
  • 19
0
votes
1 answer

Arduino Servo Motor Control with SD Card Data

I've been working on a project where I need to control servo motors based on data saved on an SD card. So far it is going well, however I'm having issues with controlling the timing and speed of the servo motors movements. I'll explain what I'm…
0
votes
1 answer

Inverse-Kinematics: How to calculate angles for servos of a robotic arm to reach all possible points in a canvas?

I have a robotic arm composed of 2 servo motors. I am trying to calculate inverse kinematics such that the arm is positioned in the middle of a canvas and can move to all possible points in both directions (left and right). This is an image of the…
0
votes
1 answer

arduino servo and delay

I have a servo that will sweep from 0 to 180 degrees then back to 0 however i cannot use the delay() function as i need the sweep to be interrupted by a motion sensor. I have written some code however the sweep is not smooth, the servo jumps around…
LEMONVirus99
  • 1
  • 1
  • 2
0
votes
1 answer

Invalid Syntax on "def sleeper"

I am working on a small project involving servos on the Raspberry Pi. I wanted the servos to run for x amount of time then stop. Was trying out my code and am currently getting Invalid syntax on "def sleeper" and have no idea why. Also being new to…
TGFoxy
  • 39
  • 5
0
votes
0 answers

MATLAB and Arudino, set registers (PWM)

I am using an Arduino MEGA with MATLAB for the first time to try and control a servo motor, the issue is that the default PWM frequency for the pin I am trying to use is at 976Hz, while I need it to be around 50Hz. I found code for changing the…
oblivioncth
  • 315
  • 3
  • 11
0
votes
1 answer

What is the reason behind the servo motors rotate to different angles initially?

Here the rough sketch of my circuit connections: The 8 servo motors are powered externally with a DC Power supply. The ground of power supply, the servo motors and Arduino is made common. Arduino is powered by laptop #include…