OSL emergency shut down button

Hi. How can we add an emergency shutdown button to turn off the motors through hardware or software?

@senthur Do you use an emergency off switch at UMich? I would appreciate any insight on how to implement this. Thanks!

Hello @malizade No emergency are used at UMich.

If I had to do it, I would add it between just before the actuator supply. Remember that a safety switch is not supposed to directly manage current and need to control a relay or transistors. Also wire it a NC configuration (so a cutted wire from your safety switch will also kill the power).

More infos here: https://www.youtube.com/watch?v=Mpv7g0WLDYQ

Thanks.

Without an emergency stop, do you use software signals (e.g., Ctrl-C) to stop running the code and the motors in case you need to quickly stop both motors?

It can be done with software signals but in any case it is better to also use an emergency stop.