Shop OBEX P1 Docs P2 Docs Learn Events
Detecting zero crossing point — Parallax Forums

Detecting zero crossing point

PorterPorter Posts: 9
edited 2007-12-17 18:55 in General Discussion
This is a hardware question but i did not know where else to ask.· I'm working on a AC diming project with multipule channels (ok christmas lights).· I need to detect the zero crossing point of the AC line.· I've read Picref-4 but gut feel says AC straight into a uM with just a 20m resistor will set off smoke alarms.· Any help or comments appreciated.

Comments

  • BeanBean Posts: 8,129
    edited 2007-12-16 14:23
    Porter,
    That would work, but it is VERY dangerous. I'd go for an opto-isolator.

    Bean

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    www.iElectronicDesigns.com

    ·
  • PorterPorter Posts: 9
    edited 2007-12-16 20:21
    I did not like the resistor idea either. and had not realized there is an AC input optoisolator.

    Any ideas on a part number.· I looked in Digikey and found MID400 but data sheet says it's for line monitoring and Zero crossing would be ignored.· any suggestions???????????
  • Shawn LoweShawn Lowe Posts: 635
    edited 2007-12-16 22:05
    If alll you want is the product, look at EFX-Tek FC-4 boards.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Shawn Lowe


    Maybe I should have waited to do that......
  • PorterPorter Posts: 9
    edited 2007-12-17 11:44
    Thanks PJ. thats the type thread i've been looking for.
    tried doing a search on zero crossing but nothing came up.

    to everyone else thanks i learned a lot with this request
  • JonnyMacJonnyMac Posts: 9,217
    edited 2007-12-17 18:55
    I created an eight-channel lighting controller for my November column in Nuts & Volts magazine. The relevant files are attached and my prove useful to your project. You'll see in the schematic that the AC and DC sides of the project are isolated from each other for safety.
Sign In or Register to comment.