There are a number offew ways to get 5V from a 12V supply and each. Each has its advantages and disadvantages, so I've drawn up 5 basic circuits to illustrate the point made in my commentshow their pros and cons.
![enter image description here][1]
Circuit 1 is a simple series resistor - just like the one "some people" were talking about.
- Circuit 1 is a simple series resistor - just like the one "some people" told you about.
Does it work? Yes.It works, BUT it only works at one value of load current and it wastes most of the power supplied. If the load value changes, the voltage will change, since there is no regulation. However, it will survive a short circuit at the output and protect the 12V source from shorting out.
Circuit 2 is a series zener diode (or you could use a number of ordinary diodes in series to make up the voltage drop - say 12 x silicon diodes)
- Circuit 2 is a series Zener diode (or you could use a number of ordinary diodes in series to make up the voltage drop - say 12 x silicon diodes)
Does it work? Yes.It works, BUT most of the power is dissipated by the zenerZener diode. Not very efficient! On the other hand it does give a degree of regulation if the load changes. However -, if you short circuit the output and, the magic blue smoke will break free from the zenerZener... Such a short circuit may also damage the 12V source once the zenerZener is destroyed.
Circuit 3 is a series transistor (or emitter follower) - a junction transistor is shown but a similar version could be built using a MOSFET as a source follower.
- Circuit 3 is a series transistor (or emitter follower) - a junction transistor is shown, but a similar version could be built using a MOSFET as a source follower.
Does it work? Yes.It works, BUT most of the power has to be dissipated by the transistor and it isn't short circuit proof. Like circuit 2, you could end up damaging the 12V source. On the other hand, regulation will be improved (due to the current amplifying effect of the transistor). The zenerZener diode no longer has to take the full load current, so a much cheaper/smaller/lower power zenerZener or other voltage reference device can be used. This circuit is actually less efficient than circuits 1 and 2, because extra current is needed for the zenerZener and its associated resistor.
Circuit 4 is a three terminal regulator (IN-COM-OUT). This could represent a dedicated IC such as a 7805 or a discrete circuit built from op amps / transistors etc.
- Circuit 4 is a three terminal regulator (IN-COM-OUT). This could represent a dedicated IC (such as a 7805) or a discrete circuit built from op amps / transistors etc.
Does it work? Yes.It works, BUT the device (or circuit) has to dissipate more power than is supplied to the load. It is even more inefficient than circuits 1 and 2, because the extra electronics takestake additional current. On the other hand, it would survive a short circuit and so is an improvement on circuits 2 and 3. It also limits the maximum current that would be taken under short circuit conditions, protecting the 12v source.
and finally ...
Circuit 5 is a buck type regulator (DC/DC switching regulator).
- Circuit 5 is a buck type regulator (DC/DC switching regulator).
Does it work? Yes.It works, BUT the output can be a bit spikey due to the high frequency switching nature of the device. However. Its, it's very efficient because it uses stored energy (in an inductor and a capacitor) to convert the voltage. It has reasonable voltage regulation and output current limiting. It will survive a short circuit and protect the battery.
TheyThese 5 circuits all work and they all have their pros and cons - i(i.e. they all produce 5V across a load) and they all have their pros and cons. Some work better than others in terms of protection, regulation and efficiency. Like most things itsengineering problems, it's a trade off between simplicity, cost, efficiency, reliability etc . in other words engineering design.
Regarding 'constant current' - you can'tcannot have a fixed (constant) voltage and a constant current with a variable load. You have to choose - constant voltage OROR constant current. If you choose constant voltage, you can add some form of circuit to LIMITlimit the maximum current to a safe maximum value - such as in circuits 4 and 5.
[1]: https://i.sstatic.net/lVoQL.png