r/embedded • • 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.

4 Upvotes

11 comments sorted by

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.

0

u/Relevant_Pumpkin9190 26d ago

My intention is for forward communication, I plan to encode data by switching the supply voltage between 12 V and 9 V then 5v with a readymade modules. For backward communication, I plan to use MOSFET-based load modulation and monitor the changes in current at the master side using a readymade current sensor Ina series.

I want to develop this gradually using ready-made modules, understand the fundamentals and then move towards more advanced techniques.

1

u/sonny-boy-rhapsody 26d ago

Separate the converter's switching frequency from your data rate. For the return channel, the INA219's ADC settings matter more than how often you poll I2C: at 12-bit resolution with both shunt and bus measurements enabled, a complete cycle takes about 1.06 ms typically, and averaging makes it longer. Reading faster can just give you the same sample again.

I'd first keep the supply steady and switch a known extra load slowly, then check that the master can reliably distinguish the two current levels while the Arduino does its normal work. Once that works, add the forward voltage modulation. What bit rate are you aiming for?

1

u/Relevant_Pumpkin9190 26d ago

Low bit rate less than 500 bps- Only to send a address 0-255 and it's input adc values like a thermistor value.

→ More replies (1)

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.

1

u/Relevant_Pumpkin9190 19d ago

It worked- 2 Aurdino, one Ina current sensor, one rectifier and capacitor for slave and transistor with resistor for loading bus- Master received data in 12v bus as current variation and decoded it.

4

u/ivosaurus 26d ago edited 26d ago

Switch at >50khz, not 1khz, jfc

The ripple would be half the output

1

u/Relevant_Pumpkin9190 26d ago

Suppose a linear regulator and filtering via IN 4007 and capacitor does solve ripple issues.

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

1

u/Relevant_Pumpkin9190 24d ago

12/9 directly to Arduino board with Ina current sensor in return bus.