For @
Chema in particular ....
I had previously measured the current draw of the dimming circuit on the LDD drivers as between 5mA and 52mA, depending on the duty cycle of the PWM control. If this was correct then it would put us in danger of exceeding the current limits of the Arduino.
Now, I am the first to admit that I have limited electronics knowledge - I know enough to get myself into trouble but that is amount it.
So, after discussing this with my Dad, who knows a fair bit more about this stuff than me, he dragged out the oscilloscope tonight and we ran a few tests.
My measurements were sort of correct, I just had a decimal point in the wrong place
The actual results are:
- 100% duty cycle i.e. fully on - 7.7uA
- 0% duty cycle i.e. fully off - 53uA
Note, these measurements are in microamps, not milliamps. So, in effect these drivers draw around 0.05mA and not 52mA. So, in theory, you could run 700+ LDD's off each Arduino pin.
This obviously alleviates any concerns I had as, in practical terms, we are never going to go close to the theoretical limit.