How to control a 5V output pin on STM32 Nucleo L4R5ZI remotely through a connected PC?

I have an STM32 Nucleo L4R5ZI, which is connected to a PC. The Nucleo is located in a place where I don't have direct access to it, so I can only control it through the connected PC. I need to stop the 5V output from one of its pins for 10 seconds, by any means necessary. I'm okay with restarting or shutting down the Nucleo if needed. However, I'm unsure how to achieve this. I've already attempted to cut power to the USB from the OS, but that didn’t work. I’m limited to making changes either in the code or the OS; I can't physically modify the Nucleo. How can I do this?
3 Replies
youcef_ali
youcef_ali4w ago
You can use another mcu card to control a relay to switch on or off the alimentation board, or you can use commutation (transistor's), this is a hardware solution why not a soft solution where you can suspend the tasks when a sequence of chars is received on the serials
Sterling
Sterling4w ago
I appreciate your suggestion @youcef_ali . Regrettably, I am unable to add another MCU or establish a relay due to lack of hardware access currently. Therefore, I can only consider software-based alternatives. Can you provide more details on how the recommended soft solution could be put into practice?
te0
te04w ago
Can't you just use a FET driven by anothet GPIO?
Want results from more Discord servers?
Add your server