You are right. It is the first CNC I made with spindle. All previous builds were with routers, I had no experience with spindles and their inputs. I made 6 axis control board with Atmega2560 (I will use 3 axis with option for additional rotary one and two other maybe for putting - pushing material on vacuum wasteboard) and all outputs and inputs are through optocouplers with dedicated power supply. I use 24V for inductive limit switches and 5V for other outputs. I put optocouplers on enable and direction pins but I made it that it is zero or 5V output I should leave just optocoupler output unconnected.