Powering from both VUSB and microUSB
Powering from both VUSB and microUSB
What will happen if you have a 5V power supply connected to the VUSB port while the microUSB port is plugged into a computer? Will the Pyboard simply choose a power supply to use or will there be complications?
Re: Powering from both VUSB and microUSB
The VUSB pin is directly connected to the USB connector. Powering there with 5V is uncritical for the PyBoard, if you stay within the limits, but may affect the computer it's connected to. For powering the Pyboard D, see: https://pybd.io/hw/pybd_sfxw.html
- MostlyHarmless
- Posts: 166
- Joined: Thu Nov 21, 2019 6:25 pm
- Location: Pennsylvania, USA
Re: Powering from both VUSB and microUSB
I would advise against it.
The +5V is typically produced by a voltage regulator (7805 or similar). These things really don't like reverse bias. In a good design they will have a reverse current protection diode, but who knows what the design quality of your power supply or PC are?
The end result can be catastrophic. I have killed a Garmin GPSmap 60 CSX with a cheap 12V cigarette lighter adapter. The USB input on the GPS apparently had a bit too much capacitance for the "unprotected" voltage regulator in the 12V adapter. So when powering off the engine (and thus the 12V outlet), the voltage regulator in the adapter got fried. The bad part is that when that happens, there is a chance that on next power up they just float the full 12V on the output ... which fried the GPS. That is no fun when it happens half way between Philadelphia and Toronto on a motorcycle. Find the next store, that has a selection of waterproof GPS units, without a GPS ...
Moral of the story: Never connect expensive equipment to cheap power supplies.
Regards, Jan
Re: Powering from both VUSB and microUSB
VUSB feeds VIN through a diode and fuse. The safest thing to do is connect your 5V supply through another diode to VIN. That way the two diodes block any cross feed of power between your power supply and your PC's USB port, but VIN will always get power.