BinghamtonRover / Arm-Firmware

Arduino IDE sketches to run on a Teensy MCU and control the rover arm and gripper
https://binghamtonrover.github.io/arm-firmware/
2 stars 0 forks source link

Add virtual kill switch #10

Open Levi-Lesches opened 2 years ago

Levi-Lesches commented 2 years ago

With the current design, some motors behaving erratically can seriously damage the arm or cause injury to anyone nearby. The motors we're using are powerful; if the code does not regulate them properly, things can go south quickly. Of course, the rover has an E-Stop, but shutting down the whole rover prevents us from doing any useful debugging or recovery. Suddenly cutting power is especially dangerous for the arm as it can break the motors and cause the arm to fall and break.

Instead, we want to be able to shut down the motors using software.

TODO:

Levi-Lesches commented 2 years ago

We'll have Nathaniel look into the best ways to stop a TMC5160 driver for now.