PIC 16f88 based variable bench power supply help
Posted: Wed Mar 13, 2013 7:57 pm
hello everybody
. I'm Nipuna from the Aruppola Technical college. My course is NCIT Electrical And Electronic Engg.
We're in the sophomore year and have to do a project. Our group decided to go for a bench power supply since we already had an old UPS which we could scrap for most of the parts (4 FETS, 650VA transformer).
our idea is to rewind the transformer for 30V-0V-30V (its currently at 18-0-18 if I remember right), then use the PWM modules of a 16F88 on the FETs to vary the output current/voltage using a buck converter configuration. ( or just use buck-boost instead?)
Right now, I've 2 problems for which I request your help.
1) what is the best current metering method for this config? i need a readout accurate to 1mA- eg: 853mA (display consists of three 7-segments) for currents below 1A, and 100mA (eg- 09.2A) for currents above 1A (max current is ~10A).
2) <I'm new to PIC programming.> I'm thinking of using the F88's comparators to do the regulation job (set Vref= value proportional to required output voltage and then increase/ decrease duty cycle on occurrence of interrupt as relevant),
but I don't know if it's possible to change the comparator reference voltages on the fly (which is how I'd change the output V), or whether it'd be more practical to just use the outputs of the ADC which I'd be using to measure output voltage, to do the job) I'd be very thankful if you could shed some light on this

We're in the sophomore year and have to do a project. Our group decided to go for a bench power supply since we already had an old UPS which we could scrap for most of the parts (4 FETS, 650VA transformer).
our idea is to rewind the transformer for 30V-0V-30V (its currently at 18-0-18 if I remember right), then use the PWM modules of a 16F88 on the FETs to vary the output current/voltage using a buck converter configuration. ( or just use buck-boost instead?)
Right now, I've 2 problems for which I request your help.
1) what is the best current metering method for this config? i need a readout accurate to 1mA- eg: 853mA (display consists of three 7-segments) for currents below 1A, and 100mA (eg- 09.2A) for currents above 1A (max current is ~10A).
2) <I'm new to PIC programming.> I'm thinking of using the F88's comparators to do the regulation job (set Vref= value proportional to required output voltage and then increase/ decrease duty cycle on occurrence of interrupt as relevant),
but I don't know if it's possible to change the comparator reference voltages on the fly (which is how I'd change the output V), or whether it'd be more practical to just use the outputs of the ADC which I'd be using to measure output voltage, to do the job) I'd be very thankful if you could shed some light on this
