This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/msp430fr5949: msp430fr5949 used for LED dimming with LM3414 dimmer IC

Part Number: MSP430FR5949
Other Parts Discussed in Thread: LM3414

Tool/software: TI C/C++ Compiler

Hello Everyone,

                      please help to have code for led dimmer using msp430fr5949 PWM, i want led dimming with moonlight effect using PWM(timer) of msp430fr5949, i tried but wihle diming my led start flickring, so suggst me any code of PWM which help me to have led dimming with moonlight effect without flicker. please help me for this issue.

Regards,

Kinjal

  • Hello,

    In general, dimming LEDs via a PWM is controlled by the pulse width of the PWM. The shorter the pulse width, the dimmer the LED will be perceived, and vise versa. The PWM is actually tuning the LED on for a certain amount of time and off for the rest of the period of your PWM. The dimming effect comes from the limitations of how the eye perceives the fast switching of the LED. If the LED is turned off long enough, then the eye will perceive the LED as off rather then dimmed. This is what causes flickering. In other words, the PWM needs to be fast enough to dim, but not flicker. There is a trade-off here on the frequency of the PWM versus the minimum pulse width of the PWM. The faster you run the PWM (higher frequency) the smaller the width of the PWM can be to not cause flickering. Conversely, if your PWM is not high enough frequency, then your minimum pulse width needs to increase to reduce flickering.

    The above is just general LED control fro the MSP430 perspective. You will need to use this information along with the specifics of the LM3414, which I am not familiar with, in order to solve your issue. Hope this helps!
  • hello Sir,

                   thank you for your guidelines, i will try this and check the result.

    Regrads,

    kinjal

**Attention** This is a public forum