Hey all!
I am trying to control a number of servos using PWM. As quick background, the max current each of my servo motors will draw will be about 180mA and I have about 10 of them. I have a power source providing a stable 5V and up to 4A, which I am using to power my motors and Arduino.
I am using the following a TLC5940 to extend my Arduinos PWM outputs. I am using this tutorial.
And this is the documentation of the module
I want to know how to decide on the following:
- The IREF, the reference resistor, they use a 2k ohm in the tutorial, how do I calculate it for my use? Is it based on the current the servo motor will pull for the PWM signal? or the one it will pull from the power source to run it (max 180mA)?
- How do I decide on the capacitors I need between power source and Arduino+TLC?
Finally, the TLC has some info about current driving capability, is this with regards to how much current the motor will need to draw? or is it the current of the PWM signal?
"Driving Capability
– 0 mA to 120 mA (VCC > 3.6V)
– 0 mA to 60 mA (VCC < 3.6V)"
I am just confused about one thing, if the motor is getting its current directly from my 5V 4A power source, why does it matter what the ratings of the TLC are? I am only using the TLC to send a PWM signal to tell the motor driver how much current it should allow through, right? And then that is pulled from the power source? This is my thinking so please correct me if this is a wrong assumption.
Sorry if I forgot to add any extra information.
Thank you for your help!