Hi,
I'm using a Pico to drive two PWM electric wheelchair motors via a "dumb" motor driver board that amplifies the PWM signal, no more, no less.
When coding, if I press Ctrl+C in the console, the PWM signal gets stuck high (I'm guessing there's 50% odds of this at 50% throttle) and the motors run at 100%, which is not good for this case. I'm also worried about what happens during any crashes, exceptions, brownout, etc: I'd like that PWM line pulled low unless the main program loop is running and active!
Maybe I need to rethink my system design (use a different/smarter motor controller), or add some external safety circuitry with a timer between the PWM output and the motor controller? I'm open to any suggestions for things that can be done in software on the Pico side.
Thanks!
I'm using a Pico to drive two PWM electric wheelchair motors via a "dumb" motor driver board that amplifies the PWM signal, no more, no less.
When coding, if I press Ctrl+C in the console, the PWM signal gets stuck high (I'm guessing there's 50% odds of this at 50% throttle) and the motors run at 100%, which is not good for this case. I'm also worried about what happens during any crashes, exceptions, brownout, etc: I'd like that PWM line pulled low unless the main program loop is running and active!
Maybe I need to rethink my system design (use a different/smarter motor controller), or add some external safety circuitry with a timer between the PWM output and the motor controller? I'm open to any suggestions for things that can be done in software on the Pico side.
Thanks!
Statistics: Posted by Novicaine — Thu Feb 29, 2024 1:29 pm