Circuit to remotely control an electric switch
I have been trying to design an electric/electronic circuit to allow remote controlling of an electrical device (say, a bulb) in addition to its existing switch (electrical switch). A couple of issues:
1) I am finding it really difficult to synchronize between a) digital control (via a relay) and b) physical switch control.
2) I am using ACS 712 current sensor to detect if physical switch is switch on or off; so that MCU can take appropriate action (such as, if required, override physical switch on logic and turn the switch off). It's quite sensitive to change in temperature (if circuit left switched on for some time) and that results in a lot of noise in the output reading of ACS 712.
Attaching a snapshot of my circuit.
Any ideas to resolve this issue...or suggestion of a better circuit?