Pages: [1]   Go Down
Author Topic: tlc5940 and hs422  (Read 676 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Sr. Member
****
Karma: 0
Posts: 301
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
I'm trying to move hs422 from 0 angle to 180 using TLC5940 with Arduino, but it does not move to far ends, when I use the library:

Code:
 
tlc_setServo(14, 0);
Tlc.update();
delay(1000);

tlc_setServo(14, 180);
Tlc.update();
delay(1000);

I searched forum but found people talking of same problem, but no answer I could use.

Please let me know what to do, I'm using standard servo example of Arduino IDE with tlc5940. Will appreciate it greatly!

« Last Edit: April 18, 2011, 11:40:16 am by ironbot » Logged

The Netherlands
Offline Offline
Full Member
***
Karma: 2
Posts: 178
Beep!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Are you sure your servo is capable of 180 degree turns?
Not every servo goes that far.
Logged

0
Offline Offline
Sr. Member
****
Karma: 0
Posts: 301
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Are you sure your servo is capable of 180 degree turns?
Not every servo goes that far.

Yes, absolutely sure. I have another servo controller (SSC-32 of Lynxmotion) and also I used general servo lib of Arduino, all ok with servos. When I searched the forum I found other post where the writer mentioned of this problem with hs422, but no solution there (it was not the central topic). I think the problem is with the way the init. func. is defined in the TLC lib, but I'm not sure. Hope someone knows it smiley
Logged

San Diego, California
Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Have you tried playing with the constants in tlc_servos.h? Looks like there's quite a bit of latitude for adjusting to particular servo models.

-- Gordon
Logged

Pages: [1]   Go Up
Jump to: