I agree with aphawk, there is no need of optocouplers and 7805's in the inputs.
A couple of simple resistor dividers and a small ceramic capacitors 0.1 is what you need.
I have a ciruits working like this for years.
↧