I'm trying to use the smallest size possible controller, therefor id like to use a 5v AnIn pin as a DigIn with 24vdc input. from the switch
Is it as simple as using a resistor to drop the 24vdc down to 5vdc?
Anyone done this before and can advise what size resistor they use?
*EDIT FYI, I do not want to use the 5+ from the controller or use a relay to switch the 5+.
The application requires it to be compact and simple.