ecaits
August 6, 2015, 6:06am
1
Dear Friends,
As I am working on heliostat project on Arduino Uno and I have to control the multiple servos (Vigor VS-2) using TLC5940nt.
I have written the code for same but the servo is rotating approx half of the given angle in program code.
For example, if I have written 90 degree in code then the servo is just rotation approx 45 degree.
Is there any problem in program code???
I dont understand why this is happen.
Please suggest me.
system
August 6, 2015, 8:48am
2
Is there any problem in program code???
Yes. It is missing from your post. So is a link to the hardware and a schematic showing how it is connected.
ecaits
August 7, 2015, 11:09am
3
Dear Sir,
Please find the schematic and program code for the TLC5940NT and servos interface with arduino uno.
I have to control multiple servos by TLC5940NT but it rotation is not exactly what we have commanded from program code and the rotation is approx half of it.
Plz suggest me what may be the problem.
Servo +TLC Code.txt (975 Bytes)
SparkFun-TLC5940-Breakout-v12.pdf (44.2 KB)
system
August 7, 2015, 12:14pm
4
#define SERVO_MIN_WIDTH 177
#define SERVO_MAX_WIDTH 571
Are those the correct values for YOUR servos?
Can your servos move as fast as the code is giving you new values. A delay of 0.2 second sounds fast to me.
Why are you updating the TLC every servo update? What not once you have set all the values.
Finally do you know the frame rate you are giving your servos? Too fast might damage them.
system
August 7, 2015, 2:38pm
6
Please suggest me.
I suggest you don't post the same question FOUR TIMES in different parts of the forum, unless you want to lose your posting privileges.
ecaits
August 7, 2015, 7:04pm
7
PaulS:
#define SERVO_MIN_WIDTH 177
#define SERVO_MAX_WIDTH 571
Are those the correct values for YOUR servos?
Dear Sir,
I have already tried by defining the servo_min_width as 177 and servo_max_width as 571. But still the same problem is there.
Is there any other problem???
That answer makes no sense at all.
Those are the numbers in your code, of course you have tried them. We are asking have you tried other values.
Why have you not answered my questions?
Hi,
I don't know why the OP hasn't posted the servo specs, or even read them.
Tom....
VS-2-Servo.pdf (875 KB)
ecaits
August 10, 2015, 9:12am
10
Grumpy_Mike:
That answer makes no sense at all.
Those are the numbers in your code, of course you have tried them. We are asking have you tried other values.
Why have you not answered my questions?
Dear Sir,
I have also tried with other values but there is no any difference....
ecaits
August 10, 2015, 9:15am
11
TomGeorge:
Hi,
I don't know why the OP hasn't posted the servo specs, or even read them.
Tom....
Dear Tom,
I have read it but I didn't get the solution as I am new in this field and working on first project....
Can you give me some clues???
Thank you,
Nirav
ecaits
August 10, 2015, 9:51am
12
PaulS:
#define SERVO_MIN_WIDTH 177
#define SERVO_MAX_WIDTH 571
Are those the correct values for YOUR servos?
Dear Sir,
How you have calculate the value of Servo_Max and Servo_Min?
In my servo, Vigor VS-2, output angle is >= 170 and STD direction is Counter clockwise/pulse traveling 800 to 2200 μsec.
Thank you,
Regards,
Nirav
system
August 10, 2015, 10:24am
13
pulse traveling 800 to 2200 μsec.
Well, then, those look like the limits you should be using!