Hello,
I havethe circuit diagram below. I did it with multisim. But before I go on ordering parts I will like ideas/comments/suggestions about it. If there is anything I should change or should have done differently. I want this circuit to be safe and of a commercial grade, even dough I'm only going to use it in a few rooms. The concern I have is with the power consumption of the resistor to drive the ac optocoupler. at 120V power is low at about 1.2W, but if I was to use 240V then it goes up to 4.8W. I was thinking of using resistors in parallel to account for this, but if anyone has a better idea, let me know.
Circuit is simple. A three way switch to control the light independent of the Pic. and a relay which is controlled by the PIC. The AC opto is used to tell the Pic if the light is on/off
I havethe circuit diagram below. I did it with multisim. But before I go on ordering parts I will like ideas/comments/suggestions about it. If there is anything I should change or should have done differently. I want this circuit to be safe and of a commercial grade, even dough I'm only going to use it in a few rooms. The concern I have is with the power consumption of the resistor to drive the ac optocoupler. at 120V power is low at about 1.2W, but if I was to use 240V then it goes up to 4.8W. I was thinking of using resistors in parallel to account for this, but if anyone has a better idea, let me know.
Circuit is simple. A three way switch to control the light independent of the Pic. and a relay which is controlled by the PIC. The AC opto is used to tell the Pic if the light is on/off