Open source boost driver dev board + technical video series

Hello everyone,


Pictured: Dev board with XHP50.3 HI

I’ve made a post about this dev board a while back asking for help with the high pitch noise, and I received many helpful responses. With @thefreeman’s help, the noise is now even less audible, enough for me to to call it “practically silent”. I’d also like to thank @koef3 for the tests on XHP50.3 HI, which came in super useful when I was calculating component values.

In the time since, I’ve been documenting everything and editing a video to tie everything together.

Here an overview:

  • ATtiny1616 MCU
  • MP3432 boost converter
  • Current regulation with op-amp, setpoint using ATtiny1616’s DAC
  • High dynamic range (HDR) with two current sense resistors, theoretically up to ~1000 unique brightness settings
  • Output is configured for XHP50.3 HI, up to ~5.4A max
  • All the usual features: battery voltage sensing, temperature sensing, off-time estimation etc.
  • Custom test firmware e.g. mode selection, smooth brightness ramping, dynamic VREF etc.
  • Jumpers everywhere to try different things

Everything’s open source and can be found on GitHub. Here’s the link to the test firmware, and here’s the link to the hardware and everything else.

I’ve made a video series on YouTube which includes detailed explanations on the design, including the important calculations. I’ve just completed the first video in the series, so have a look if you like that kind of thing!

The test firmware is neither production ready nor feature complete, since it was written only for testing. It only supports this specific hardware build, so it’s (in my opinion) a lot more straightforward to read and understand. Still, it does all the basic things, like multi-click mode selection, smooth brightness ramping, temperature and battery voltage sensing etc.

The second repository is the catch-all repository, and contains hardware design files like the schematics and PCB layout, and the Python scripts used to calculate component values, brightness look-up tables etc. The hardware’s designed in KiCad, but I’ve made the schematics available in PDF form. To make it even more convenient, here’re the schematics:

This dev board is the first step in my quest to build a custom flashlight, so there’s a lot more to be done. I’m imagining a flashlight that’s:

  • Compact/low-profile, but with replaceable batteries
  • Possibly using StVZO optic (e.g. Ledil Filippa, which I have backordered)
  • Efficient

I’m thinking the primary hurdle might be the battery choice. The boost driver can pull ~10A at maximum brightness, so smaller batteries like 10440 might have difficulties.

In the near future, I’ll be running some efficiency tests (I designed an efficiency tester board, to be assembled), then doing some CAD to see if I can come up with a decent design.

If anybody has any ideas or suggestions, please feel free to let me know!

Thank you for reading!

7 Thanks

This is awesome! I love this. I’m working on a bachelor’s degree in EE right now, and circuits has been my favorite part so far. I also want to build my own custom flashlight hardware at some point, so I will be keeping an eye on what you’re doing.

I don’t feel like I know enough to really offer suggestions at this point, but I just think this is super cool.

2 Thanks

Thank you! Doing fun projects has always been my preferred way to learn, 10/10 would recommend.

This is amazing :slight_smile:

Any interest in doing a buck driver?

I’ve read some of the community project stuff back when it was all 7135s and stuff and it’d be great to have more projects like that by BLF.

Are you considering getting some PCBs made? I’d be interested in a few.

Thank you! I did get these dev boards made! There’s some extra work to be done e.g. efficiency testing and BOM reduction, before I switch the layout to a proper “flashlight-sized” PCB. I might not go with a standard round PCB though, it really depends on the final form factor of my custom flashlight.

1 Thank

Are they populated, or bare boards? I’d definitely be up for buying a few assembled ones, I was considering a devboard project myself for quite a while, just had other stuff going on so didn’t make much progress, but I can’t do SMD stuff.

Ah I bought these boards bare, and I only made Rev. A which has some problems. My assembled board has been hacked to Rev. B.

This board also uses 0402 passives and QFN/DFN components so that might be a problem if you need to change components for dev.

1 Thank