50hz sync for light dimmer


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2008
    Posts
    2

    Default 50hz sync for light dimmer

    I found this site with a real simple circuit for a light dimmer (http://www.radiolocman.com/shem/sche....html?di=34004) that I built and it works but I'm having problems figuring out how to do the zero crossing detection with this 1M resistor connected directly to the pic12f675 gpio.2 pin. Since he connects it to gpio.2 pin my first guess was that he used INTE to trigger the interrupt but I have failed to make it work, it seemes that an other method is required to detect the change in the sine wave. I need to find how he has slowed it as this limits the components and obviously works. Via A/D?

    If anyone is interested in my app so far here it is (it's not working so far). The idea is to make a dimmer that is connected between the ac line and the lamp with an ir-reciver and lightsensor (LED used as sensor). Then a central ir-transmitter with a clock sends a signal for timed control or a remote control for direct control or ir-diode connected to a computer for control via internet or possibly voice... haha, depending on how far I get.

    For now I need to find the zero crossing with only a resistor between the ac line and the gpio2 pin. Any ideas?
    Attached Files Attached Files

  2. #2
    Join Date
    Mar 2006
    Location
    Pennsylvania, USA.
    Posts
    130


    Did you find this post helpful? Yes | No

    Default

    Personally, I wouldn't use a resistor, it's just dangerous. Please consider using an opto-isolator, and take a look at this link;

    http://www.8051projects.net/_zero_crossing_opto-triac

    It's simple, inexpensive, and unlike the 1 meg resistor, it gives you some isolation so that a spike doesn't come through and fry you or PIC.

    I built an IR remote system using Bruce's IR decoder chip, my Sony television remote control, and some X-10 modules. Sit on the couch, aim the remote away from the TV and toward the circuit, and turn on different lights. Then I added a modem so that I can turn the lights on and off using text messages. I used a 16F877 with Darrel's Instant Interrupts, so I'm sorry that I can't help you with the 12F chip and interrupts, but I'm sure someone else will chime in.

    Good Luck,

    Jerry
    If your oscilloscope costs more than your car...

  3. #3
    nasib's Avatar
    nasib Guest


    Did you find this post helpful? Yes | No

    Default ups

    Please can u send me a schematic diagram for 2000 watts inverter and the details of the transformer winding for same 2000 watts inverter?

Similar Threads

  1. Ideas on ir-code for dimmer
    By tirithen in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 13th February 2009, 23:22
  2. Action on line sync
    By hansknec in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 23rd August 2006, 13:42
  3. RS-232 async to sync converter
    By jmartin in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 11th October 2005, 23:04

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