Voltage regulator using PIC

Status
Not open for further replies.

ghattas.akkad

Member level 1
Joined
Apr 30, 2013
Messages
39
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
1,555
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
 

Hi,

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.

Still, it would all be a good exercise ...
 

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


Hi,

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

http://picprojects.org.uk/projects/ppc/index.htm#Firmware
http://www.susa.net/wordpress/2012/10/picmosfet-pwm-model-train-controller/

Also see these tutorials which cover PWM and lots of other helpful start up info.



**broken link removed**

http://www.winpicprog.co.uk/pic_tutorial.htm
http://www.amqrp.org/elmer160/lessons/
http://www.epemag.wimborne.co.uk/resources.htm
 
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…