hello i was thinking of developing a voltage regulator using only a pic
where you can input any voltage in the range of 5 to 24 volts and output either 5 9 or 12 volts
is this possible to implement using only a pic and opamps ? without the use of variable regulators
i was thinking of using the internal pic comparators and upon the result output a "1" at any pic port equivilant to a 5V
and then increase it using the opamps
Not sure about your method of using comparators and op amps ? simply use an voltage selector switch to change the Pics PWM output driving a power transistor or mosfet would be simpler.
Unlike a proper voltage regulator you would have little true control of the output voltage and current unless you added lots of additional circuitry to monitor them and feed that info back to the Pic so it can compensate accordingly.
However you would of course need a 5v regulator to power the Pic in the first place.
oh ok thank you then i have little experience with power transistors and pwm gating
this looks like a good opportunity to get familiar with them
thanks
oh ok thank you then i have little experience with power transistors and pwm gating
this looks like a good opportunity to get familiar with them
thanks
There are lots of examples of Pic voltage controllers using pwm, generally for dc motors, below are just two.
They use a variable resistor to adjust the voltage, but this could equally be fixed resistors relating to your fixed voltages or simply a switch that selects a pre programmed fixed value, the choice is yours.
In case you do not have those particular pic chips, the code for the 12F and 16F chips can generally be migrated to other similar 16F chips without too much problem