How should tests protect people and equipment when firmware controls an actuator?
Answer
Begin with hazards, permitted operating envelopes and a physically safe test setup with independent limits and emergency stop. Verify normal commands, interlocks, feedback disagreement, command loss, sensor faults, watchdog reset and power transitions. The expected safe state and maximum reaction time must be measurable without relying only on the software under test.
Strong answer includes
- starts from hazards and independent safeguards
- measures safe-state timing
- does not use the product software as the only protection
Practical example
A robotic arm's test rig relies solely on the firmware's own limit-switch software check to stop motion during testing. A bug in that same firmware causes it to ignore the switch, and the arm crashes into a fixture because there was no independent hardware-level emergency stop wired outside the software under test. After the incident, the lab adds a physical relay-based cutoff that trips regardless of firmware state.