Afternoon and happy new year to all :)
Currently I am developing a new lighting controller that needs to be able to handle NC,NO (normally closed and Normally open) relay connections (eg from a PIR sensor/ momentary switch) - thing is I have no idea what is the best way to interface these to my microcontroller.
In the past I have just done some simple resistor biasing and basically used the relay as a switch that would pull the interrupt line on the microcontroller low. But to me this method seems a little hacky, especially when the distance between the controller and the Relay gets long.
Can anyone offer any assistance on this one?
Thanks in advance,