Simple question to control AC from microcontroller

Discussion in 'General Electronics Chat' started by nepdeep, Apr 4, 2013.

  1. nepdeep

    Thread Starter Member

    Sep 14, 2011
    139
    0
    Hi, I have a simple question.

    Can I control AC using optocoupler such as MOC3021...

    ...instead of the relay?

    is there any other better idea to control the AC via µ-controller?
     
  2. MrChips

    Moderator

    Oct 2, 2009
    12,449
    3,365
    Get a solid state relay.
     
  3. t06afre

    AAC Fanatic!

    May 11, 2009
    5,939
    1,222
    Most often a relay is the best thing. Then it comes to the end they are least burdensome. But yes your IC can do the work that to
     
  4. gerty

    AAC Fanatic!

    Aug 30, 2007
    1,153
    304
  5. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,394
    1,606
    Generally the answer is yes, that is what that part is designed to do. You can google the part number and get some suggested schemAtics.

    But as this will probably be a direct line connected device is violates our terms of service so we can't give detailed advice. We want to keep the new people safe. <smile>
     
Loading...