Detecting 240V with a PIC (Part2)


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    There are advantages and disadvantages to both methods, and both methods are equally valid in their use.

    The Capacitor... doesn't generate heat, but costs 20x the price of a Resistor. You need to use an X2 grade because if it fails, it will take out the protection Diode and the Opto.

    The Resistor... is far smaller and a lot cheaper, but it's entire raison d'entre is to dump heat into the planet, so it may not be the most appropriate component to use if for example you're planning to use a sealed unvented box. At 240V, you're going to have to deal with around 0.2W being wasted. Now, you have two dozen opto channels monitoring two dozen mains Fuses, and you suddenly have a fair amount of heat being generated.

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


    Did you find this post helpful? Yes | No

    Default

    I think i had better stick with the capacitor then. For a start ive actually got the capacitor to work with an LED while the resistor only blew up. The capacitor circuit does use a resistor too and the website i got the circuit from says that resistor acts like a kind of fuse. The whole circuit will be inside an IEC plug so yes, it will be a small enclosed space. I was also thinking of putting some kind of glue or silicon stuff over the whole thing but ill decide on that later.

    The capacitor i was using costs 9p. If i buy 100 of them then its down to 6.8p. I guess thats not so bad. Its not like i plan to sell thousands of them where every penny counts. I was hoping to have another capacitor anyway to keep the opto on during the zero crossover. Compared to the rest of the circuit 9p is nothing.

  3. #3
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    > the website i got the circuit from says that resistor acts like a kind of fuse

    Well, if you know your X2's then you'll realise that it has a Fuseable Resistor inside it already... that's the bit that makes it fail-safe.

Similar Threads

  1. SMS via pic
    By kenandere in forum GSM
    Replies: 15
    Last Post: - 10th March 2010, 10:00
  2. HSERIN & Interupts (aka controlling PIC programs from a remote PC)
    By HankMcSpank in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 17th June 2009, 14:46
  3. Detect 240V with a PIC
    By The Master in forum Off Topic
    Replies: 48
    Last Post: - 28th October 2008, 20:21
  4. 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
  5. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2005, 23:14

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