Pic Microcontroller Programmin

Pic Microcontroller Programmin
i need programming for the PIC Microcontroller (( PIC18F452 )) , i need a code that makes the PIC able to calculate and measure :

RMS Voltage
RMS Current
Power Factor

i have to finish the codding so i can start building the device + start testing it ,

the details i have :

i have to design a circuit that converts :

230 V AC to 5 V DC

then i have to get 2 outputs from the circuit : one for the voltage and one for the current and put them in the PIC

The device should be able to calculate and report the following parameters in real time :

· Real power, apparent power and power factor

· RMS voltage and RMS Current

· Frequency

· Energy usage ( Kilowatt

this is the circuit i’m using :

http://www.discovercircuits.com/DJ-Circuits/images/240vac5vdc.jpg

PS : i attached a document file , that has the needed formulas that can help you in writing the code

Leave a Reply

Your email address will not be published.