AC voltage measurement with PIC Micro-controller.

General discussion on mikroBasic.
Post Reply
Author
Message
Thomas Pan
Posts: 1
Joined: 11 Nov 2015 07:45

AC voltage measurement with PIC Micro-controller.

#1 Post by Thomas Pan » 11 Nov 2015 08:27

AC voltage measurement with PIC Microcontroller.

1N4007 470k 10k
0v~300vAC-----------|>|-------^^^--------------^^^---------> To PIC Microcontroller ADC input
|
|
>
> 3.3k
>
|
|
GND

bpislife
Posts: 539
Joined: 11 Jun 2006 21:16
Location: Cumberland, RI

Re: AC voltage measurement with PIC Micro-controller.

#2 Post by bpislife » 18 Nov 2015 16:37

You message makes no sense. If you are reading 0-300VAC, then you will need to rectify that voltage as the negative voltage will destroy the chip. You also need to click the higher voltage down. Since you are using large resistors, and since the PIC uses a charge and hold capacitor, you will need to add a buffer (unity gain op-amp works) to reduce the impedance to less than 2.5Kohm for some pics and 10kohm for others.

Then take a look at the ADC library and the help file.

Post Reply

Return to “mikroBasic General”