Detect 240V with a PIC


Closed Thread
Results 1 to 40 of 49

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    You said something about a ready light? There is half of the opto-coupler. A photo diode is the other half.
    Dave
    Always wear safety glasses while programming.

  2. #2
    Join Date
    Jun 2007
    Location
    Mansfield, UK
    Posts
    697


    Did you find this post helpful? Yes | No

    Default

    I wish id have thought of that. I dont have any photo diodes or anything else to sense light. Those ready lights wernt going to be connected. The idea is that the PC can display all that. It wouldnt be hard to connect them back up though.

    I guess if i dont connect it to the PC and just use the origional lights then it wont be a problem. I do have a future project that will use this type of thing though so i wanted to get it right now.

    Ive just connected a transistor up to the mains through a 10M resistor and with a diode across it plus a 100K grounding resistor for the base. It seems to be working perfectly. The LED turns on when the mains is turned on. Ive had it running the whole time ive been writing this post and nothing is smoking so it seems this method will probably work. Just incase, i do have a stack of spare PIC16F877As

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


    Did you find this post helpful? Yes | No

    Default

    Just incase, i do have a stack of spare PIC16F877As
    What about a fire extinguisher near by?
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. SMS via pic
    By kenandere in forum GSM
    Replies: 15
    Last Post: - 10th March 2010, 10:00
  2. Detecting 240V with a PIC (Part2)
    By The Master in forum Off Topic
    Replies: 7
    Last Post: - 18th March 2009, 19:10
  3. pic to pic ir link versus wired link : help please anyone
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 30th May 2008, 21:01
  4. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2005, 23:14
  5. pic detect amperage
    By jetpr in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 11th February 2005, 05:02

Members who have read this thread : 0

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