How to design a 2 way switch using Triac and SPST standard switch

mainspowerswitchingtriac

I have a triac which I turn ON and OFF by giving a gate pulse through microcontroller. With the help of triac I turn ON/OFF a light in my bedroom. The bedroom light is connected to a standard SPST switch. I want to control the light (ON/OFF) using both microcontroller and SPST switch. I want to have exactly a 2 way switch action. But how could I achieve this 2 way action using SPST switch and a Triac acting like a NO switch ?

Please any feedback would be appreciated. Please find below the arrangement.

Also suggest any design or other arrangement for a 2 way action using SPST and Triac (as NO switch)

Current arrangement

Thanks in advance,
Gaurav

Best Answer

If I understand correctly you wish to be able to toggle the lamp status from either the wall switch or your micro.

schematic

simulate this circuit – Schematic created using CircuitLab

This would be the easiest way. Use two triacs triggered by seperate output pins on your micro. Make TRI2's trigger the inverted logic of TRI1. Light will be on if switch is up and TRI1 is on OR switch is down and TRI2 is on.

The other option is to use a relay changeover contact.

[Sigh] The things we do to avoid getting out of bed!

[Edit: SPST version]]

Pop a changeover relay into the circuit. Coil needs to be rated for mains voltage and AC. Contacts need to be rated for mains voltage and the lamp current.

schematic

simulate this circuit

A simpler method might be ...

schematic

simulate this circuit

Use the relay contact to signal the switch status to your micro. Let your micro then keep track of the relay signal and its local signal to determine when to switch the light on.

Related Topic