LED Driver PT4115 PWM control

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
Frank607
Posts: 192
Joined: Mon Mar 04, 2013 8:07 pm
Has thanked: 29 times
Been thanked: 15 times
Contact:

LED Driver PT4115 PWM control

Post by Frank607 »

I have a LED Driver PT4115 and a 10W LED.

This LED driver has a DIM input for controlling the brightness of the LED. I want to control this DIM pin with PWM and a 12F683 and a ADC input (trimpot)

I tried many configurations and also the standard “ADC Controlled PWM 16F88.fcf” what is in the examples folder on FlowCode 5. I read a lot of topics on this forum but the answer is not there.

I can’t get this to work smoothly with the trimpot. The LED always flicker and the trimpot (5K, 50K or 100K) is not accurate. Maybe it has something to do with the PWM frequency, I don’t know.

The DIM pin on this LED Driver can be driven by PWM or 0 to 2.5V

Can someone help me with me with a flowchart to get this to work?

Here is a link to the datasheet of the PT4115
https://people.xiph.org/~xiphmont/thinkpad/PT4115E.pdf

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: LED Driver PT4115 PWM control

Post by Benj »

Hello,

Please can you attach your flowchart so far and we will have a look and try to make suggestions.

Frank607
Posts: 192
Joined: Mon Mar 04, 2013 8:07 pm
Has thanked: 29 times
Been thanked: 15 times
Contact:

Re: LED Driver PT4115 PWM control

Post by Frank607 »

Hi Ben,

Thanks for your answer. I quit with this PWM and use a DC voltage from 0.1 to 2.5V.

This works really smooth and have full control on it.

Thanks again.

Post Reply