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.

Searching for a MCU for flashlight(not an expert)

Other Parts Discussed in Thread: TPS54201, MSP430FR2311, MSP430FR2310, MSP430WARE

Dear Gentleman,

in the LED Driver Forum I already had good answers for my question but I need a little bit more information and hope that you can help me.

I am trying to build a LED flashlight.

I already have a powerbank with 5V, 2.1A output and 3* 1W LED.

The other Forum additionally suggested TPS54201 LED Driver to me with the recommendation to use an MCU to archieve several modes for the flashlight (100%, 30%, off, SOS, strobe).

Can you help me to find a suitable MCU to connect those parts to have a batterie powered flashlight?


With kind Regards

Jens

Btw. here is the link to the discussion in the LED Driver Forum "e2e.ti.com/.../2222755

  • Hi Jens,

    I'm not an expert on the TPS54201, but it looks like you'll need to be able to generate a PWM signal as input to the device. This is a relatively simple application so I'd recommend a part from our FRAM portfolio. More specifically the MSP430FR2311 or the MSP430FR2310 depending on your memory needs.

    You can get started with the MSP-EXP430FR2311 LaunchPad Development kit as well as a plethora of software examples for this device that can be found in MSP430Ware. They can show you how to setup a button to switch between modes and setup PWM  on this device as well. If you have any further questions feel free to ask!

    Best regards,

    Caleb Overbay

  • Dear Caleb,

    thank you for your response.
    As I mentioned this will be for a flashlight.
    How can I implement MSP430FR2311 into a flashlight so that I can change the modes with a simple switch without beeing too expensive?

    Best Regards
    Jens
  • Hi Jens,

    I'm not sure I understand your question. From my point of view, you can use the MSP430FR2311 to create PWM signals that are input to the TPS54201. This can be accomplished using one of the Timers available on the device. Then, you can setup the GPIO to interrupt when a button is pushed and reconfigure the Timer to output the PWM frequency necessary to achieve the desired light level. Again, you can find example code for the Timers and GPIO interrupts in MSP430Ware.

    Best regards,
    Caleb Overbay

**Attention** This is a public forum