Ancestors

Written by jaseg on 2025-01-16 at 11:02

With @sad_electronics and others discussing funky switching regulator circuits in another thread, I was reminded of something I’ve been wanting to try for a while now: Take a small microcontroller such as STM32G030 and make it a switching regulator with as few external components as possible.

=> More informations about this toot | More toots from jaseg@chaos.social

Toot

Written by jaseg on 2025-01-16 at 11:03

I know that other people have done this before and that there are manufacturer application notes on this because it has legitimate applications in high-power converters that need complex, custom control loops. I still kind of want to try it myself.

=> More informations about this toot | More toots from jaseg@chaos.social

Descendants

Written by jaseg on 2025-01-16 at 11:05

This idea has a similar vibe to @janamarie deciding to use an STM32 as an IO expander in a thread last weekend. It would be a neat challenge to take a schematic and just see if you can replace every chip with a microcontroller somehow 🤣

=> More informations about this toot | More toots from jaseg@chaos.social

Written by Jana on 2025-01-16 at 11:13

@jaseg I've used STM32's before as switching regulators 😬 (actually my first STM32 project was all about this). I can highly recommend to look at their HRTIM, up 5.6GHz "clock" with 16bit timer depth and good analog peripheral interconnect allows for >Mhz PWM output with a fairly high resolution, current and voltage measurement and control, and even overcurrent break inputs

=> More informations about this toot | More toots from janamarie@chaos.social

Written by Marcus Müller on 2025-01-16 at 11:12

@jaseg I'd say go for it. I'd probably start with an stm32g* that has a hardware comparator built in, just to have an easy way to be sure you react in time to overcurrent, but other than that: not that hard. (I mean, the hard part is the robust yet nimble control loop design, and hm, you'd probably just test that with a PRNG-switched load as test and fiddle an IIR as loopback filter until you get good behaviour.)

=> More informations about this toot | More toots from funkylab@mastodon.social

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113837699316607179
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
279.713443 milliseconds
Gemini-to-HTML Time
0.832153 milliseconds

This content has been proxied by September (ba2dc).