i am trying to alter the pwm freq of the tlc output pins.
for my project i need to view the dimming leds through a cellphone camera.
currently i see (through the cam) the leds flicker or show moving bands.
here is my setup: arduino mini pro -> tlc5940 -> PWM adj pin on high current led driver.
i am testing 2 high current led drivers
based on the ZXLD: https://www.sparkfun.com/products/9748
based on AL8805W5: PicoBuck LED Driver - COM-13705 - SparkFun Electronics
and also have a regular led connected straight to an tlc output.
i am sending dimming values to the arduino via the DMXSerial library:
i read about adjusting TLC_GSCLK_PERIOD and TLC_PWM_PERIOD.
i tried adjusting these values with the following:
TLC_PWM_PERIOD 4096
TLC_GSCLK_PERIOD 1
TLC_PWM_PERIOD 1024
TLC_GSCLK_PERIOD 1
TLC_PWM_PERIOD 512
TLC_GSCLK_PERIOD 1
when using these values the regular led flickers, visible to the eye.
the high current led drivers do not react anymore.
this is most likely due to these led drivers not liking the very high PWM frequencies.
so, my question would be:
A:
how to fine adjust the PWM freq to a point that they are slow enough so the high current led drivers start reacting and fast enough so there is no flicker visible through the camera.
i know this works because i tried feeding a hardware PWM via the analogWrite using a teensy-micro-controller at about 3000 HZ.
B:
when using the fade tlc example the regular leds do not flicker but the high current led drivers do not react.
again this might be due to too high a frequency.
how could i alter the fade frequency?
thanks a lot,
stephan.