I want to replace some timers with a PIC16F887 micro-controller. The problem is that the input voltages to the I/Os is going to be 24V which is too much. For the output part I was thinking about using a relay module. I'm stuck on the input part. How can I use the 24V as a input to the micro-controller?
The application is simple. When a input pin goes high the output will be enabled after a certain period of time (When 24V is received from the input the output will send 24V in other words). The time will be adjustable trough some push buttons. The times will be displayed on a LCD.
This question is tied to a different question I asked from the forum before. A user recommended a similar cheap solution which is already made but I want to build one just for a personnel project.