relay - opposite functioning
Posted: Fri Feb 19, 2016 10:58 am
Hi!
I'm controlling a led using raspberry pi from a relay board. It is interfaced with a photo sensor program wherein the led has to light up when it is dark and vice versa. But when i'm connecting with the relay and giving suppose GPIO.LOW , it's doing the opposite i.e the led is lighting up. Why?
PS: GPIO.LOW and GPIO.HIGH are working fine when i'm just controlling the led using Pi alone.
please help
I'm controlling a led using raspberry pi from a relay board. It is interfaced with a photo sensor program wherein the led has to light up when it is dark and vice versa. But when i'm connecting with the relay and giving suppose GPIO.LOW , it's doing the opposite i.e the led is lighting up. Why?
PS: GPIO.LOW and GPIO.HIGH are working fine when i'm just controlling the led using Pi alone.
please help