Hello @raphael.cloutier,
Is this a correct understanding of your schematic?
As I understand the design:
- Understand the emergency switch is placed on the high side of each relay. It is designed to break the coil circuit.
- The microcontroller receives a MAX debounced signal indicating that the estop has been pressed.
Thoughts:
- Consider moving the estop to the supply side of the system. This may or may not be possible given the nature of your loads.
- Perform the debounce in software.
- Depending on the nature of your design consider a proper emergency stop with redundancy. Ref: What are the attributes of an emergency stop pushbutton? - Electromechanical / Switches
- Watch out for resistor size on your transistors. Ref: Digital Switching: Transistor Saturation and Forced Beta. Consider using a MOSFET. Ref Guide to Selecting and Controlling a MOSFET for 3.3 VDC Logic Applications
Thoughts?
Sincerely,
Aaron