I have a bad habit of forgetting to unplug the USB on my Arduino when I turn the main power off for my system. Instead of the main 36V power supply powering the Arduino through the VIN (though a buck converter at 12V) and all the other components of my system, suddenly there is a huge power draw on the Arduino trying to make up for the missing 36V and powering everything. I don't think that this is very good for the Arduino.
I have been trying to find a USB-C to USB-C switch that essentially acts as a dead man's switch so that when the 36V power gets switched off, the USB power also gets disconnected so that it's not trying to power everything. I haven't been able to find any modules like this though.
So I am thinking about trying to build a switch using a P-channel MOSFET and an NPN transistor. Before I go building something like this though, I was wondering if anyone here knows of anything like this on the market, if anyone has advice about building a USB power cutoff switch, or whether something like this is even necessary with the Arduino Giga. Thanks!