+ Reply to Thread
Results 1 to 2 of 2
-
- 16th September 2018, 07:24 #1
ac 220v measurement with differential amplifier
hello guys,
do anyone has example code of pic basic pro or proton basic for ac 220v measurement with differential amplifier method,
this is reference link for example of design and c code
http://microcontrollerslab.com/ac-vo...crocontroller/
please help if someone knows thanks
-
- 24th September 2018, 13:41 #2
Re: ac 220v measurement with differential amplifier
1. Be very careful with such circuits. IT CAN KILL YOU INSTANTLY!!!
2. Be very careful with the earth symbol, as it is the low voltage 5V or 12V common point and NOT the Power Line Earth!
3. After the opamp divider you will get about 4.04 Volt max for 240VAC rms line voltage. What is the problem you face? You mean that you cannot make a program with ADC to convert the 4volts to digital and display it?
You have to take into account that the voltage is not rectified by the opamp and the output is still a sinus signal of positive offset. So you have to find the maximum voltage measurement within many samples. The circuit is not exactly a voltmeter rather a detector and incidentally according to the firmware, highest voltage detector (or lowest, or mean or whatever).
Example:
Code:temp var word line_voltage var word temp=0 for i=0 to 49 adcin 1,line_voltage if temp<line_voltage then temp = line_voltage next i
What you will do next depends...
Ioannis
Similar Threads
-
Differential signals applied at speed
By longpole001 in forum mel PIC BASIC ProReplies: 4Last Post: - 12th November 2014, 09:33 -
Airspeed from MPX5500DP differential pressure sensor using a PIC16F88
By marcusvm in forum mel PIC BASIC ProReplies: 26Last Post: - 13th November 2010, 07:57 -
Audio Amplifier
By The Master in forum Off TopicReplies: 19Last Post: - 20th August 2008, 09:45 -
PIC network over AC 220V
By boban in forum SchematicsReplies: 9Last Post: - 6th June 2007, 10:31 -
Differential Drive Programming
By shaiqbashir in forum mel PIC BASIC ProReplies: 14Last Post: - 30th December 2006, 15:03
Bookmarks