ac 220v measurement with differential amplifier


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2014
    Location
    Pakistan
    Posts
    19

    Default 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

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,795


    Did you find this post helpful? Yes | No

    Default 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
    Now you have the voltage representation in digital value.

    What you will do next depends...

    Ioannis

Similar Threads

  1. Differential signals applied at speed
    By longpole001 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 12th November 2014, 09:33
  2. Replies: 26
    Last Post: - 13th November 2010, 07:57
  3. Audio Amplifier
    By The Master in forum Off Topic
    Replies: 19
    Last Post: - 20th August 2008, 10:45
  4. PIC network over AC 220V
    By boban in forum Schematics
    Replies: 9
    Last Post: - 6th June 2007, 11:31
  5. Differential Drive Programming
    By shaiqbashir in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 30th December 2006, 15:03

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts