I´m trying to produce a power supply that can give an output of both 24V and 12V. I want to switch between these two voltages with a signal of 5V, when the signal is low i want to get out 24V and then when it´s high i want an output of 12V.
I have been experimenting with two Zener diodes in series and try to bypass one of the diodes to get the lower voltage. I am not sure if this thery will work totally i practice. I got it to lower about 1V, maybe the transistor doesn´t saturate completely? Any ideas how to easy switch between the two voltages?
Here is some extra information from the comments surrounding the project and an updated schematic:
So it´s suposed to be a power supply to a sensor that operates at 5V, the sensor sends out a 5V signal that should toggle a relay that operates at 24V. Since I want a low power consumption I want to lower the voltage to 12V when the relay doesn´t need to be on. Hope this clarifies a bit.