this post was submitted on 24 Jun 2025
16 points (100.0% liked)

Ask Electronics

3716 readers
1 users here now

For questions about component-level electronic circuits, tools and equipment.

Rules

1: Be nice.

2: Be on-topic (eg: Electronic, not electrical).

3: No commercial stuff, buying, selling or valuations.

4: Be safe.


founded 2 years ago
MODERATORS
 

After playing around with some greeting card modules to modulate sound onto a LED i found out that the driver part of said greeting card modules are not audio drivers but PWM drivers (oscilloscope confirmed).

This made me wonder if normal PWM controllers could be used to drive more power full LEDs.

My idea was to just remove the potentiometer and feed in music from Aux at that point.

Is there a chance of this working?

Update: I just tryed if it works and sadly it dosent, LED gets modulated somewhat but there is not audio to recover from it afterward, its only noise.

you are viewing a single comment's thread
view the rest of the comments
[–] einfach_orangensaft 2 points 5 days ago (1 children)

They can be both! A Class D audio amplifier can be constructed by rendering an audio signal into a PWM or PDM output signal, then passed through an RC filter to remove the switching noise, yielding only the intended audio.

I did not know that! Very interesting for sure :D

You’ll have to provide a schematic

[–] litchralee 2 points 5 days ago

Based solely on this drawing -- since I don't have a datasheet for the PWM controller depicted -- it looks like the potentiometer is there to provide a DC bias for the input Aux signal. I draw that conclusion based on the fact that the potentiometer has its extents connected to Vref and GND, meaning that turning the wiper would be selecting a voltage somewhere in-between those two voltage levels.

As for how this controls the duty cycle of the PWM, it would depend on the operating theory of the PWM controller. I can't quite imagine how the controller might produce a PWM output, but I can imagine a PDM output, which tends to be sufficient for approximating coarse audio.

But the DC bias may also be necessary since the Aux signal might otherwise try to go below GND voltage. The DC bias would raise the Aux signal so that even its lowest valley would remain above GND.

So I think that's two reasons for why the potentiometer cannot be removed: 1) the DC bias is needed for the frequency control, and 2) to prevent the Aux signal from sinking below GND.

If you did want to replace the potentiometer with something else, you could find a pair of fixed resistors that would still provide the DC bias. I don't think you could directly connect the Aux directly into the controller.