Hello, I was wondering how it is possible to control current with PWM. I have heard (and read) many people that say that if you are running off of a battery for higher loads, it is better to use PWM rather than resistors due to efficiency, and the heat used up by resistors eg. (Electronic Basics #2: Dimming all kinds of LEDs!? - YouTube).
However, I just don't understand how this is a good idea. In this example, it seems to me something has to burn up eventually if he does not use the resistor to limit current anyway, since whenever the transistor (or any digital switch) is closed, his circuit (in this case just an LED) should be drawing infinite current. Is the PWM only to dim more efficiently than a rheostat does? Because he still needs a resistor, so the closer he gets to max brightness, the less it matters?
So I was wondering, what is the proper way to do it? How is PWM correctly used in order to limit current? Is it used in series with an inductor which resists the change in current so you don't have infinite current when the loop is closed? Or is there another trick I am not aware of?
Or maybe there is a more simple way to do it based on the transistor used, in which case I am guessing you could use a resistor on the Base to limit a small current, which would then affect the current that can flow from the collector to the emitter?
PS. I do realize that the safest and simplest way is to use resistors, but I am wondering if this PWM stuff is just folklore, or there is an actual proper way of doing it, since all PWM does is turn a signal on off really rapidly.
So to sum it up: Is there a way to use PWM to efficiently limit current in a circuit without the resistor?
or: Is PWM just coupled with a resistor to make the dimming more efficient than a rheostat, which changes nothing on full power? (actually less efficient since you need to power the PWM circuit too)