# need help to measure ac voltage and current

Status
Not open for further replies.

#### eng_mahmoud87

##### Newbie level 6
i need to measure ac current and voltage by microcontroller PIC16f877 (A/D) but this A/D can measure until 5v so i need circuit to make scale between 5 v and 24 v and thanks alot

#### hassenman

Hi eng_mahmoud87,

This is very simple, u can use a simple resistors divider to measure the voltage .
Concerning the current, u will have to measure it by measuring the voltage across a resistor and manage to do the math with your soft.

Hope this helps,
regards,
Hassen.

#### max0412

##### Full Member level 5
Good app note from Zetex might give you some ideas.

Code:
http://www.zetex.com/3.0/appnotes/apps/an39.pdf

Status
Not open for further replies.