Skip to content
Adaptive AgroTech NetworkUniversity of Southern Denmark · SDU Drone Center
Cover for ESP32 CAN Bus Motor Failsafe | Timeout & Controlled Restart

Video by Adaptive AgroTech. If the embedded player is unavailable, open the original video ↗.

ESP32 CAN Bus Motor Failsafe | Timeout & Controlled Restart

An ESP32 motor controller can track the age of its last valid CAN command. A timeout lets it move to a defined stop state when commands disappear.

Understand the concept

The key idea

A working CAN interface can keep receiving unrelated traffic after the command source fails. Time the commands intended for this motor and define the conditions for accepting motion again after a timeout.

What to remember

  • Refresh the timer only on a valid command for this controller.
  • Specify a deliberate restart condition after a communication loss.
Pause & think

Check your understanding

Could unrelated messages on the CAN bus prove that a motor command is current?

Show the explanation

No. Only a fresh valid command for that motor establishes command freshness.