LED Driver flash application using PWM

MaxHeadRoom

Joined Jul 18, 2013
30,659
You would need the ability to program the Pic!
I program in assembly, which sometime poses a problem now.
The pic has pins you can reconfigure on the fly, so I controlled each output in turn by switching the pin to PWM via the PPS module the IC had.
The Pic I used for the project was a 8 pin 16P18313.
 

sghioto

Joined Dec 31, 2017
8,634
Another option is using an analog switch like the CD4066.
Once all the pwm generators are activated the control pins on the 4066 can be set High then Low using a single GPIO pin.
1736526970941.png
 

Thread Starter

kowshik1729

Joined May 10, 2020
99
Another option is using an analog switch like the CD4066.
Once all the pwm generators are activated the control pins on the 4066 can be set High then Low using a single GPIO pin.
View attachment 340045
Oh wow this sounds great, I can try this. So I'll have a single gpio tied to all A/B/C/D control pins and toggle that gpio once. Hmm makes lot more sense, any chance these ICs come with more inputs? I may need more than 8, I have an additional LM3409 based current driver
 

Thread Starter

kowshik1729

Joined May 10, 2020
99
Not off hand in that size package.
Why the LM3409?
The lm3409 cauz I have a specific green LED from osram that operates at 10A but we're running it currently at 3A. We found lm3409 can easily support this current rating if the external components are chosen correctly. Also in general do you know if any such drivers that are cheaper? Because ultimately here the IC is just an buck converter right
 

Thread Starter

kowshik1729

Joined May 10, 2020
99
Another option is using an analog switch like the CD4066.
Once all the pwm generators are activated the control pins on the 4066 can be set High then Low using a single GPIO pin.
View attachment 340045
Just realized if I have to use this solution my GPIO pin count is blowing up. I need 9 PWMs and 9 GPIOs to toggle the A/B/C/D Control pins, plus I have onboard LED's too. Don't think this fits my use-case
 
Top