Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4824

General • Re: Ensuring PWM/GPIO outputs are low after critical events

$
0
0
I could do this in MMBasic and obviously therefore in C - sorry can't help with python

In MMbasic you can trap CTRL-C and action anything you want very easily. You will want a hardware watchdog triggered in the main loop to check for the software failing in some way and you can detect incipient brownout by monitoring the pico input voltage. I would also use a proper reset monitoring device like the TCM809 that will put the Pico immediately into reset if the voltage sags. This would be connected to the RUN pin. And ,of course, all relevant control signals should have resistors pulling them into a safe state in the event the driving pins are tri-state

Statistics: Posted by matherp — Thu Feb 29, 2024 3:52 pm



Viewing all articles
Browse latest Browse all 4824

Trending Articles