saddem019 / tlc5940arduino

Automatically exported from code.google.com/p/tlc5940arduino
0 stars 0 forks source link

Problem with controlling servomotor #9

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I am working on a servo controller using an TLC9540.
Problem is that I am not able to turn the servos more than +- 60 degrees using 
the standard program for controlling servo's with an TLC9540. (the servo is 
able to rotate 180 degrees)
What can cause this? 
Thanks in advance!

What is the expected output? What do you see instead?

On what operating system?
Windows 7

Please provide any additional information below.

Servo: RS-2 Modelcraft
Arduino: Diecimila with Arduino 0022 program

TLC9540 shield

Original issue reported on code.google.com by brunotij...@gmail.com on 30 Nov 2011 at 12:17

GoogleCodeExporter commented 8 years ago
Hi ... I experience same problem here
is any solution for this problem ? 

Original comment by sargon...@gmail.com on 11 Jan 2012 at 8:30

GoogleCodeExporter commented 8 years ago
Try different values for SERVO_MIN_WIDTH and SERVO_MAX_WIDTH.

For example,

#define SERVO_MIN_WIDTH  190
#define SERVO_MAX_WIDTH  450
#include <tlc_servos.h>
...

Original comment by acle...@gmail.com on 11 Jan 2012 at 8:59

GoogleCodeExporter commented 8 years ago
thank you very much 
for HS-311 servo works great with 

#ifndef SERVO_MIN_WIDTH
/** The 1ms pulse width for zero degrees (0 - 4095). */
#define SERVO_MIN_WIDTH     110
#endif
#ifndef SERVO_MAX_WIDTH
/** The 2ms pulse width for 180 degrees (0 - 4095). */
#define SERVO_MAX_WIDTH     474
#endif

Original comment by sargon...@gmail.com on 11 Jan 2012 at 9:31