16F877 ADC using the Allegro ACS754 Current Sensor


Results 1 to 9 of 9

Threaded View

  1. #4
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default

    With a purely resistive load, you should be able to establish the peak through timing. At 60Hz it will occur 4.17mS after ZC while at 50Hz it will occur 5mS after ZC.

    However, this will change with reactive loads because of the voltage/current phase difference. It will also change with non-linear loads which most electronic gear presents. The only way to do this accurately is with many nearly simultaneous samples of current and averaging over time. Digital power meters sample voltage and current several thousand times per second. Your PAUSE 100 means you are only sampling a few times per second and so are unlikely to get the peak.
    Last edited by dhouston; - 3rd May 2009 at 15:14.

Similar Threads

  1. Need a cheap touch sensor idea.. here it is
    By mister_e in forum Code Examples
    Replies: 20
    Last Post: - 16th April 2016, 22:42
  2. PIC 16f877 A/D conversion Allegro ACS712
    By DavyJones in forum General
    Replies: 32
    Last Post: - 4th June 2011, 04:54
  3. ADC input using a current transformer?
    By jessey in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 12th May 2009, 22:13
  4. current sensor interfacing
    By hell_pk in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 29th January 2009, 04:55
  5. Reading (ADC) negative current
    By sougata in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 21st November 2006, 17:38

Members who have read this thread : 0

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

Tags for this Thread

Posting Permissions

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