Yes, a 7805 regulator would do the job for input voltages above 8V or so. Otherwise you need a DC-DC buck boost converter. That’s a little more elaborate but quite common these days and would be more efficient than the 7805. How much current (amps) do you need? And nothing will take you down to 0V.I wonder if there is a circuit that will clamp a constant DC voltage, say at 5VDC, for a variable input voltage from 0 - 12 VDC. My application is to be used for lighting on HO model trains ...
A low dropout (LDO) regulator could also be used so you can get a stable output with inputs starting very close to 5V. The following link is just one example - it has a dropout voltage of 0.015V, so it should work reliably with as little as 5.015V input.Yes, a 7805 regulator would do the job for input voltages above 8V or so. Otherwise you need a DC-DC buck boost converter. That’s a little more elaborate but quite common these days and would be more efficient than the 7805. How much current (amps) do you need? And nothing will take you down to 0V.
If you find a circuit capable of producing a 5V output from a 0V input please let me know ... it would be nothing short of miraculous. That being said, a DC-DC buck-boost switching regulator module could produce an output of 5V from an input of, say, 2V-35V, but it would be an expensive and cumbersome circuit. On the other hand, it is far easier to bring the input voltage down instead of having to push it up. So a linear regulator such as the 7805 is a simple and cheap solution for an input in the range of 8 to 35V, for instance.I wonder if there is a circuit that will clamp a constant DC voltage, say at 5VDC, for a variable input voltage from 0 - 12 VDC. My application is to be used for lighting on HO model trains ...
by Duane Benson
by Jake Hertz
by Jake Hertz