Discussion in "PIC Microcontroller Discussion" started by    Karan123    Jun 15, 2015.
Mon Jun 15 2015, 09:11 AM
#1
Hi forum,

I want to make low cost AC Volt-meter 0 - 1000 V AC with MCU Like PIC16F72.

How do I fed AC Voltage to MCU Analog Pin ?

1) With Voltage divider circuit
2) First Convert AC into DC then fed in to Analog PIN

any other suggestion are welcome ..


Wed Jun 17 2015, 01:34 AM
#2
Obviously with voltages around 1000v you need to be careful.
None of the circuit will be safe to touch unless you use a transformer
to step down the signal.

Basically you just need a resistor divider network.
You could measure AC by sampling just the positive half of the cycle and
calculating the R.M.S voltage.



Wed Jun 17 2015, 08:11 AM
#3
Hello,


I want to use only resistor divider network

How do i measure AC by sampling in 'C'?
Fri Jun 19 2015, 04:23 AM
#4
I would not recommend using a voltage divider or something like that for measurement of AC that too @1000V. You better go for a Metering IC from Analog devices or similar to do all these measurements. Check the following link:
http://www.analog.com/en/products/analog-to-digital-converters/integrated-special-purpose-converters/energy-metering-ics.html
Tue Jun 23 2015, 05:18 PM
#5


How do i measure AC by sampling in 'C'?

Karan123



Add a diode to your circuit to shunt the negative half of the
signal to ground.

Exactly how to read the value depends on the compiler you use.
Some will have a built in routine for example readADC();
What compiler do you have ?

Assuming you are measuring mains type sine waves
you need to find the peak voltage.

Sample the signal over a few cycles.
Note the highest reading per cycle.
Discount any very high or very low readings.
Average the rest.
Multiply by 0.707 to get the RMS voltage.


[ Edited Tue Jun 23 2015, 05:21 PM ]
Thu Jul 02 2015, 09:12 AM
#6
@ajay_bhargav

i will not prefer costly ic because of product cost is low.

@experimenterUK

I am not getting you.




Get Social

Information

Powered by e107 Forum System

Conversation

Sun Oct 13 2019, 02:02 AM
Aline Hutchinson
Hey there,
ExperimenterUK
Sat Oct 12 2019, 10:23 PM
Log in.. then post your code in the 8051 forum
Sat Oct 12 2019, 10:18 AM
Bhadra Sajikumar
i am doing a countdown timer with 8051 for my project, unfortunately our professor had to take a leave of absence before he could teach us most of it.. can someone explain the .asm code of it for me?
Mon Sep 23 2019, 07:37 AM
Nathaniel
I am doing a project for my schools wireless security system with cameras,sensors and spot lights using 8051 micro controller, could you help me out with the design and its source code.
Wed Sep 18 2019, 08:48 PM
Caryn Kover
Thank you for your time,
ExperimenterUK
Mon Aug 05 2019, 07:09 PM
@Ismail ..post in forum, give details
Mon Aug 05 2019, 04:33 PM
Ismail balghmi
Hello. Please I won't download
ExperimenterUK
Wed Jul 24 2019, 12:47 AM
@BUSTER123 Please post in the forum
Tue Jul 23 2019, 06:13 PM
BUSTER123
hello! newbie here. i am kind of a guy who hates using ready - made existing libraries, so this helped a lot as i was trying to control and write to a character lcd display. however, i can't figure out how to set the cursor position. for example, i want to set it to the 5th column in the first row, so position 5. so according to the table, i am sending 10000101 on the 8 data lines of the lcd (register select pulled low). the cursor does not move there however. and i cant move the cursor left or right too. is it something wrong that i am doing? thank you.
ExperimenterUK
Thu Jul 11 2019, 07:55 PM
@ramos https://www.theengineeringprojects.com/2017/09/l298-motor-driver-library-proteus.html

Downloads

Comments

ilylily07
Tue Oct 15 2019, 04:32 PM
hientran123
Tue Oct 15 2019, 02:27 AM
Sat Oct 05 2019, 02:38 PM
zexalo
Thu Oct 03 2019, 09:53 AM
thanhle12345
Thu Oct 03 2019, 07:37 AM
ramon_vsc
Fri Sep 20 2019, 04:53 PM
youssoufba
Thu Sep 19 2019, 11:57 AM
Taiphan000
Tue Sep 17 2019, 04:21 AM

Online

Guests: 37, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38097
Newest member: ilylily07
Forum Activity
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sun Oct 20 2019, 03:09 PM
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sun Oct 20 2019, 03:02 PM
sir, when i on display ,sometime 3rd display is no...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sun Oct 20 2019, 02:53 PM
sir, when i on display ,sometime 3rd display is no...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sun Oct 20 2019, 12:21 AM
Your code seems okay on my simulationTry my code o...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sun Oct 20 2019, 12:21 AM
Your code seems okay on my simulationTry my code o...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sat Oct 19 2019, 07:13 PM
please find video attachment. 3rd & 4th displa...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sat Oct 19 2019, 07:05 PM
sir, 3rd and 4th dot matrix display flickering, ...
ExperimenterUK Avatar
Posted By ExperimenterUK
Fri Oct 18 2019, 09:18 PM
Hopefully you understand some of the program.Which...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Thu Oct 17 2019, 09:38 PM
ExperimenterUK Avatar
Posted By ExperimenterUK
Thu Oct 17 2019, 08:35 PM
Do you understand how this code works?If so, addin...