I have a remote installation of a Teensy 4 controlling electric motors. Occasionally, the system can crash due to a bug or extremely invalid input situations. This in itself is rare, and the occurrence with self-restart is fine. However, the pins controlling PWM signals output arbitrary data and potentially cause the electric motors to spin unsafely for multiple seconds.
Is it possible to capture the general class of exceptions that cause a system crash to ensure a controlled restart? Can I use any further tools to capture the relevant information and communicate it back? Any other suggestions?
A hardware/transistor/mosfet solution to disconnect the PWM pins or motors power supply is not possible at this time.
Is it possible to capture the general class of exceptions that cause a system crash to ensure a controlled restart? Can I use any further tools to capture the relevant information and communicate it back? Any other suggestions?
A hardware/transistor/mosfet solution to disconnect the PWM pins or motors power supply is not possible at this time.