TLC5940 + Servos in microseconds control ???

Status
Not open for further replies.

ecaits

New Member
I have started to work on TLC5940NT to control the multiple servos through arduino uno.
Generally we are providing rotation of angle by below given program line.

tlc_setServo(SERVO_CHANNEL, angle);

But I want to provide command in form of ServoWriteMicroseconds to measure the exact rotation of angle.

But in TLC library, there is no such a command.

So how can control the TLC servo by microseconds???
 
Write your own library (modify the existing one?), however, is a servo likely to give any worthwhile accuracy to uS timing?.
 
I don't understand this!!

The command is " Move the servo to X position" what has this to do with micro seconds??

Some servos will take longer than others.... Are you talking about stepper motors rather than servo?
 
I don't understand this!!

The command is " Move the servo to X position" what has this to do with micro seconds??

I think the OP is referring to the pulse width of the control signal as explained here: **broken link removed**

It is common for a pulse width of 1.5 ms (corrected, see post#6 below) to cause the servo to center and a deviation +/- 500 us to either side of that to cause full swing. However, he should know that both the centering width and +/- change may need to be adjusted for each servo. Cheaper servos are usually worse than more expensive ones in terms of adherence to those general specifications. There are also some specialized servos for helicopters (sometimes called tail-rotor servos) that are substantially different from the most common servos one sees.

John
 
Last edited:
Oh I see.....

Then he'll need a wrapper function to turn the Set_servo() back to the original pulse length call!!

EDIT.. I thought it was 1.5mS with a swing of .5mS each way!!
 
I wasn't being awkward... I forget things easy these days...

I actually prefer to work in pulse width rather than angle!!!
 
That library was made for leds more then servo I think servo was after thought. It works great with leds fading. Here the best info on it
https://forum.arduino.cc/index.php?topic=37963.0 the reference link is broke. I think the guy that wrote it may of gotting out of collage by now..
**broken link removed** good link tells how to add function to it that may fix the op up.

Read the files that came with it there really helpful
#define SERVO_MIN_WIDTH 204
The 1ms pulse width for zero degrees (0 - 4095).
 
Last edited:
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…