Light switch sensing


Closed Thread
Results 1 to 14 of 14

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Sometime current transformer are great, sometime, when misplaced and/or not properly insulated they can ruine your life and reading... just think what happen if they're located to close of a transformer, or close to a switching power supply, or, or, or.

    EDIT: Did you place any kind of load at the output of your current transformer before sending it to your op-amp???
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  2. #2
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    Hi,

    See picture below.

    Best regards,

    Luciano

    Attached Images Attached Images  
    Last edited by Luciano; - 20th July 2006 at 12:37.

  3. #3
    Join Date
    Oct 2005
    Location
    New Zealand
    Posts
    171


    Did you find this post helpful? Yes | No

    Talking

    Thanks Luciano,

    I had thought of that initially, but disregarded it as the TRIAC would have to be off at the same time as the light bulb is on. But seeing your picture made me think about it, and I figured that I can just measure the voltage there just after zero crossing and before I trigger the triac - either that or charge a little cap through a diode and read the cap anytime. Makes it a really simple circuit too!! Will try it as soon as I get back from holiday - am off to Fiji for a week, BULA!!!

  4. #4
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by George
    ... or charge a little cap through a diode and read the cap anytime.
    Yes, this was the idea.

    * * *

    AN521 Interfacing to AC Power Lines
    http://ww1.microchip.com/downloads/e...tes/00521c.pdf

    AVR182: Zero Cross Detector
    http://www.atmel.com/dyn/resources/p...ts/doc2508.pdf

    * * *

    Enjoy your holiday!

    Luciano

Similar Threads

  1. Stairwell light code from BS1 to PHP2.50a
    By vtt-info in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 21st December 2007, 18:32
  2. A/D on 16F767 for light tracking.
    By Ryan7777 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 10th November 2007, 06:56
  3. Replies: 14
    Last Post: - 26th September 2007, 06:41
  4. PIC10F200 Automated IR Light Switch
    By Bruce in forum Code Examples
    Replies: 7
    Last Post: - 3rd May 2007, 12:40
  5. Newbie - 16F628A and switch latching
    By malc-c in forum mel PIC BASIC Pro
    Replies: 45
    Last Post: - 19th May 2006, 03:35

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