0

I have purchased XH-M131 Photoresistor Relay Module to automatically light my outdoor yard at sunset and turn it off at sunrise. I'ts working as it is supposed to, However, if I power off the relay, the light goes off.

I want this to be a closed circuit in such way if the relay malfunction or loose power, the outdoor light stays on which I can manually switch off if I want to.

BTW, I tried connecting the light wires to the otherside, but the whole thing reversed, light goes on when light detected which defies the purpose. Any suggestion or modifications. enter image description here

3
  • It is correct to connect the light wires to the other side (aka normally closed / NC), but then of course you also need to invert your program logic (turning the light off by activating the relay, turning it on by deactivating the relay). Have you tried that?
    – chrisl
    Oct 18 '20 at 17:26
  • @chrisl the relay is self controlled by Light Dependent Resistor. Is there a way to reprogram it or reverse the trigger mechanism? Oct 18 '20 at 18:00
  • Oh, then only if you analyse the used circuit on that module and hack it. But where is the Arduino in your setup? If there is no Arduino, you are at the wrong site. This is Arduino SE
    – chrisl
    Oct 18 '20 at 18:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.