Hello,
I'm having some issues trying to create a circuit to control a room lamp with a pic. I can turn the lamp on/off with the pic or switch with no problem. But what I'm having problems with is that If I have the lamp turned on with the pic I would want the switch to turn it off no matter what it's state is. I can only turn the lamp off with the pic if it's on from the switch. I'm trying to accomplish this witch relays. Any idea will be appreciated thanks. It's something like the switch will remain in "normal" operation to mater what happens on the other side of the pic if it dies or something. Imagine that the 5v switch is from the Microchip. So If J2 is closed lamp is ON, what I want is that if J1 is then flipped the lamp goes OFF.
Jose
I'm having some issues trying to create a circuit to control a room lamp with a pic. I can turn the lamp on/off with the pic or switch with no problem. But what I'm having problems with is that If I have the lamp turned on with the pic I would want the switch to turn it off no matter what it's state is. I can only turn the lamp off with the pic if it's on from the switch. I'm trying to accomplish this witch relays. Any idea will be appreciated thanks. It's something like the switch will remain in "normal" operation to mater what happens on the other side of the pic if it dies or something. Imagine that the 5v switch is from the Microchip. So If J2 is closed lamp is ON, what I want is that if J1 is then flipped the lamp goes OFF.
Jose
Attachments
Last edited: