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

Vibrating servo on a Pi with bluetooth

As a newbie I'm testing my Pi2B with a Micro Servo SG90 attached. Im running the code below. It works quitte fine, but it doesn't hold the left and right position steadily, there are small vibrations. My Pi has a bluetooth mouse, and when I use it,…
Willem-Jan
  • 67
  • 8
0
votes
1 answer

MATLAB Slider GUI with Background While Loop to Control Feedback Servo Motors

I am attempting to implement a servo motor with feedback control program in MATLAB for multiple servo motors. The objective is to read servo(s) analog output, compare with a user value from slider bar(s), write the new position to the servo, and…
0
votes
0 answers

If statement is giving a wrong signal values in arduino due

I am trying to transmit signal to servo from transmitter through Arduino DUE and wrote code like this: #include Servo servo1; int ch1; void setup() { // put your setup code here, to run once: pinMode(40,INPUT); …
0
votes
0 answers

Omron Servo throwing error 0x84 while test running

Update and answer The mistake i've made is keeping the Servo on PIN 34 ON while trying to test run the servo on CX-Drive. after making Servo ON pin OFF and the problem Solved. I'm using CP1H-XA PLC and Omron G series Servo. I've connected the servo…
user2604947
0
votes
2 answers

Can't control any servo with my RaspberryPi 2

I am having the problem, that I am not able to control any of my servos I have. I have two servos, one is a normal servo used in model planes and the second one is a micro sized servo. I wired both of them separately (The signal cable to a GPIO pin…
pythoniosIV
  • 237
  • 5
  • 18
-1
votes
1 answer

Arduino Servo robot arm, How can I make a windows application that can send data to C++ file

So I have coded C++ file that sets the parameters for the Six servo motor robot arm I have built. What I am trying to do is figure out how to code an application that uses sliders to move the servos in the corresponding direction. I am using an…
-1
votes
1 answer

C# interfacing between pc and Omron servopack sgdh

I need help to write code c# interfacing between PC and Omron Servopack by rs232 to USB connection enter image description hereto drive ac servomotor
ali
  • 1
-1
votes
1 answer

servo retaining its position everytime i send some value

i wanted to control my servo with bluetooth modue. I gave certain values for rotating it. but when i press those values the servo rotates but then retains it's original position and pc pc also make the sound of arduino board disconnecting because i…
-1
votes
2 answers

Arduino servo code resetting to positon 0

(excuse my english) Hi. I'm a beginner at coding who started trying things in Arduino and c++ (because of Arduino). Recently I just learned that you could write to the Arduino board via the serial monitor, and thus via your PC through your COM port,…
N. Ope
  • 21
  • 2
  • 7
-1
votes
1 answer

Simple Arduino code to control servo motors

I am a newbie in Arduino. Right now, I am trying to control a servo motor with an Arduino and I saw an instruction online like this: #include //Servo library Servo servo_test; //initialize a servo object for the connected…
Jamie
  • 1
  • 1
-1
votes
1 answer

How to move 2 separate servos in Serial monitor

#include Servo servo1; Servo servo2; void setup() { // put your setup code here, to run once: Serial.begin(9600); servo1.attach(6); servo1.write(0); servo2.attach(7); servo2.write(0); } void loop() { // put your main code here, to…
Filip GG
  • 31
  • 1
  • 6
-1
votes
1 answer

Coral edge TPU problems connecting and controlling a servo

I’m having problems with coral board edge tpu interacting with a servo micro SG90. I don’t think that the problem is in the code because I tried it on the reaspberry pi and it worked, maybe the problem is the power voltage of the coral dev…
mike
  • 1
  • 1
-1
votes
1 answer

Controlling a 360 degree servo with Arduino

I am making a robot and and bought an MG90s servo, but unfortunately it is a modified servo (continuous rotation servo). I don't need 360° and these servos cannot be rotated by myservo.write() and in my project I need it to rotate not more than…
Rohit
  • 71
  • 9
-1
votes
1 answer

Arduino timer with set/reset buttons

i'm building an automatic hay feeder for my horse,something like this but with just two floors every 24hrs the plate in the middle should fall and let the hay fall down for the horse to eat,the interface should be very simple,3 buttons one to start…
franco asd
  • 23
  • 3
-1
votes
1 answer

How can I control a servo motor with an Xbox controller over a distance using NRF24L01

I want to be able to set up an Xbox controller with a laptop that leads to an Arduino connected to a NRF24L01 card and antenna. This will transmit the signals to another arduino connected to another NRF24L01 and control a servo motor. Any ideas?