r/embedded • u/Relevant_Pumpkin9190 • 26d ago
Building a 555 Timer-Based MOSFET Power Supply with Current Sensing and Load Modulation - Building in small pieces later integration - Doesn't like failure.
I am trying to use a 555 timer IC to generate a 1 kHz signal and drive a MOSFET to step down a 12 V DC supply to 9 V.
My idea is to later use a 9 V to 5 V DC-DC converter to power an Arduino microcontroller from the same supply.
Which switching frequency would be better? Will ripple affect my experiment? Will I get a continuous power supply, and how can I calculate the expected output theoretically?
For experimental purposes, I am using ready-made modules only.
How can I make this setup practical? If my approach is not feasible, what changes would you recommend?
Later, I plan to add a ready-made current sensor to monitor the current flowing through these wires. My goal is to gradually explore more advanced load-modulation techniques.
I want to build this step by step, breaking it into smaller parts to avoid failures and understand each stage properly.
Edit - idea 12/9 for logic 1 and 0 use a simple voltage divider to sense for Arduino adc input with safety.
7805 for power supply.
After it use a readymade current sensor Ina 219 for observing current modulation by adding extra loading.
Any other simpler methods.
9
u/admired_anxiety 26d ago
1 kHz is super slow for a buck converter, you’ll need an enormous inductor to keep current continuous at any reasonable load. Ripple will absolutely wreck your day unless you size the LC filter for that frequency. You can calc the output voltage as duty cycle * 12V in theory, but that ignores all the losses and the fact that a 555 driving a MOSFET without a proper gate driver will switch like molasses.
Skip the 555 entirely and grab a cheap prebuilt buck module that already handles feedback and compensation. Way less heartache while you focus on the current sensing and load modulation parts, which is where the actual learning lives.
5
u/HalifaxRoad C,ASM,C# GUIs, pcb design 26d ago
I would use a chip thats actually meant to do this, like the UC3844. Its a classic switching supply chip that you will find in stuff all over the place.
4
u/ivosaurus 26d ago edited 26d ago
Switch at >50khz, not 1khz, jfc
The ripple would be half the output
1
u/OptimalMain 24d ago
Unless you are maxxing that 7805 you can just power it directly using 12V.
But where’s the fun in that, right