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
2 answers

Servo with Arduino

this is not my first time that work with servo motor on arduino mega adk, but this time something went wrong! I'm connecting my servo Motor to an arduino as it should be. and then I wrote my code as mentioned here: #include Servo…
Mehdi Ben Hamida
  • 893
  • 4
  • 16
  • 38
0
votes
1 answer

I have trouble, j = pygame.joystick.Joystick()

My example code from google. #!/usr/bin/env python import pygame from pygame import import time import RPi.GPIO as GPIO GPIO.setmode(GPIO.BOARD) # Initialise the pygame library pygame.init() # Connect to the first JoyStick16:11:10:05:0B:1C j =…
0
votes
1 answer

Import C++ DLL in C# Servo Motor

I'm trying to make a Servo Motor work with very simple code in C#. The company that built the Servo is called TEKNIC, and the motor that I'm trying to move is the ClearPath-SC-Series. That company offers a software download called ClearView and…
0
votes
1 answer

servo motor working incorrectly

I am making a car that is to be controlled by Android app through bluetooth. The problem that I am facing with servo motors is that before bluetooth module hc-05 gets connected to any bluetooth device, the servo motors rotate irrespective of whether…
Irfan Ansari
  • 73
  • 2
  • 9
0
votes
1 answer

Not able to send 4 potentiometer values through i2c bus

I'm trying to send 4 potentiometer values via. i2c after receiving those values through virtual wire from another arduino. My setup consists of 3 arduinos. 1st arduino is connected to transmitter and 4 potentiometers.It sends values via. tx…
Anant Vikram Singh
  • 109
  • 1
  • 3
  • 14
0
votes
1 answer

Controlling Servo Motor based on Characters

I've been making a simple Arduino program which involves Slave-Master I2C communication between 2 Arduino UNOs. The Master Arduino has a Servo Motor attached to it, and the slave returns a request for 6 bytes by returning a message with six bytes. I…
Mark
  • 5
  • 3
0
votes
1 answer

Get value from a slider to control a servo with Arduino

I have a question. Can I get a value from a slider on my HTML page to control the angle of a servo connected to the Arduino board? I am able to get a value from a button, for example information like: on/off, it is easy to get it, but I'm not able…
Gocek1
  • 17
  • 1
  • 8
0
votes
1 answer

How to fix brown out reset in AVR?

In my ATMEGA32 developer board, I am working with servo motor and I guess that causes the problem. I have two working subroutines in assembly, which make servo rotate opposite directions. They are definitely fine when they are called alone but when…
qwerty
  • 21
  • 4
0
votes
1 answer

Does Arduino Uno/OSEPP Uno have enough memory to create a servo array?

I'm pretty bad at coding (I know the basics), and I'm trying to create an array of servos in Arduino to control via Serial with Processing. I vaguely remember something about Arduino microcontrollers having really limited memory, so I'm not sure if…
Jason Chen
  • 312
  • 1
  • 4
  • 12
0
votes
0 answers

error opening serial port busy proseccing/arduino-servo

Hello i have this processing sketch for my thesis project to move a servo left or right with Emotiv Epoc(Actually I want to send keystrokes r or l). The first goal is to identify automatically the port. I get an opening serial port busy error…
0
votes
1 answer

Timer does not hop to default value or next interval

In following code. the code does run al individual lines. the Interval 1 line wil run between 21.00 and 21.05hr the Interval 2 line wil run between 22.00 and 22.05hr The standard pulse line wil run on al other timeframes. Problem: the code does…
0
votes
1 answer

Schneider setting position of servo with Codesys

I am trying to set to position of a Schneider LXM52 servo with a PacDrive using Codesys. I have tried using the SetPosition function block but that is not setting the position in the drive through a power cycle of the drive. Any thoughts?
mrsargent
  • 2,267
  • 3
  • 19
  • 36
0
votes
1 answer

Servo won't stop on a FPGA

I'm working on making a servo run off of an FPGA for a digital lock. My code is as follows: `timescale 1ns / 1ps /* 1 pin for servo--ORANGE CABLE red cable-- 5V, brown cable-- GND. Position "0" (1.5 ms pulse) is middle, "90" (~2ms pulse) is…
Cody Friszell
  • 27
  • 1
  • 8
0
votes
1 answer

Servo on an FPGA

I'm trying to make a servo work on my Spartan-6 based FPGA. my code is as follows: `timescale 1ns / 1ps /* 1 pin for servo--ORANGE CABLE red cable-- 5V, brown cable-- GND. Position "0" (1.5 ms pulse) is middle, "90" (~2ms pulse) is all the…
Cody Friszell
  • 27
  • 1
  • 8
0
votes
1 answer

Servo controller with PCA9685 and Raspberry Pi

I try to learn how to use a PCA9685 module to control servos with a raspberry pi. I am following the adafruit tutorial which supplies the following code: # Simple demo of of the PCA9685 PWM servo/LED controller library. # This will move channel 0…
AaronDT
  • 3,940
  • 8
  • 31
  • 71