On/Off Switch USB Cables & Power Adapters for Development Boards

Orange Pi Development Boards

Many development boards don’t have a power switch, and simply boot when you apply power. So if you need to turn off and turn on your board, you’d either remove the power cable and re-insert it, or do the same with the power adapter on the power strip or socket, but the latter is not always convenient, and the former may damage the power connector, especially if the board uses a fragile micro USB connector for power. The solution to this small problem is to use a USB cable with an on/off switch.

Power_adapter_with_on-off_switch

The example above is a 5V/2A with a switch button with the plug working with Orange Pi, Banana Pi M2, and other board using a 4mm jack (like PS4) for power. That model sells for $3.90 on Aliexpress. Another solution is instead to buy a short USB cable with an on/off switch instead for just around $1 on eBay, plus a male USB adapter or cable to whatever power input connector your board uses.

USB_on-off_switchIf instead you’d rather have some fun and make your own USB on/off switch cable, there are instructions for that.

Thanks to Onebir for the idea.

Support CNX Software - Donate via PayPal or become a Patron on Patreon

4
Leave a Reply

avatar
4 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
4 Comment authors
zoobabcnxsoftTCbooby Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
booby
Guest
booby

I can’t recommand to buy this interruptor (not the cable usb) on picture, i bought ten on aliexpress, perfect for led (100-500ma) but the switch is crappy with high resistance so for high load (500-2000ma) don’t be surprise to see voltage drop. Maybe drive a little blue chineese relay 10A at 5v level is better, who said an overkill? Yes but always cheap.
Better solution will use small mosfet p like CEM4943 (always chineese), with this crappy switch to drive it.

TC
Guest
TC

what do you think of the included power supply?
assuming that it will sneak through customs despite missing CE,
shouldn’t it be considered as electrical shock or fire hazard?

zoobab
Guest

On the same topic, I toggled a 5v relay via the DTR pin of a cp2102 usb-serial adaptor, while the tx-r-gnd were still used for the serial console of a bananapi:

https://mobile.twitter.com/zoobab/media/grid?idx=8

I plan to replace it with an esp8266, since the serial can be exported via TCP.