How to read AC mains with an inductance coil


Closed Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2008
    Posts
    3

    Default How to read AC mains with an inductance coil

    Can anyone point me to an example circuit of how to read AC with an inductance coil
    and have PBP interpret the fact that AC voltage has turned on in the AC mains wire?
    I'd like to use the most basic of PICs... 12C509 or F84 or 628...what I have here now on the bench.

  2. #2
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default

    If you just want to sense if AC is present, I would recommend using an opto-isolator
    instead of a transformer. The opto approach is smaller and cheaper.

    If you instead want to measure whether a load connected to the AC mains is ON or
    OFF, you can still use an opto - but it takes a few more parts.
    Charles Linquist

  3. #3
    Join Date
    Jan 2008
    Posts
    3


    Did you find this post helpful? Yes | No

    Default total disconnect from the AC being sensed

    I wanted to sense if the AC current was ON without actually tapping into the AC circuit.
    I was thinking of how a clamp-on ammeter does not make actual contact with the
    AC current but does actuate a meter needle to swing.
    I just want an ON OFF detection that can fire off a relay or a PIC to be able to sense that ON OFF in PBP.

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


    Did you find this post helpful? Yes | No

    Default

    Coilcraft (and others) make what you want.Click BACK at upper left to see specs, etc.

  5. #5
    Join Date
    Jan 2008
    Posts
    3


    Did you find this post helpful? Yes | No

    Default yes but how to use it in PBP

    YEs...this is what I was thinking but I don't know how to have PBP
    interface this inductance coil.
    I'm a programmer, not an electronics engineer, so I am at a loss as to
    what PBP command to use with this coil from coilcraft.
    My first thought was to do PULSIN but I do not know the proper way to wire
    PULSIN to an inductor coil.
    Any example or advice how to wire and read the COILCRAFT coil output?
    Last edited by KB3BYT; - 20th February 2008 at 05:48.

  6. #6
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Rectify the coil output and then read it with an ADC pin on the PIC.
    With a little experimentation, you will not only be able to see if the load is on or off, you will also be able to tell what the load is.

    Say the max amps in the load circuit is 20 and the ADC is 8 bit. Set the VREF so that 20 amps reads 255 at the ADC. Then 127 at the ADC would indicate 10 amps on the load circuit. Or there abouts.
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. Cleaning up code
    By Tobias in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 2nd December 2009, 07:14
  2. SEROUT WORD variable problem
    By Tobias in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 19th April 2009, 11:20
  3. AC to PIC read hi or low
    By Normnet in forum Schematics
    Replies: 6
    Last Post: - 23rd July 2007, 03:46
  4. Write and Read from eeprom
    By savnik in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 9th June 2007, 14:56
  5. Changing declared variables names on the fly
    By jessey in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 16th December 2006, 06:34

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