# USB Power Switch Pro

Control power to your USB devices using a Raspberry Pi Pico

- **Seller:** [8086 Consultancy](https://lectronz.com/stores/8086net), Nottinghamshire, ENG, UK
- **Price:** €3.59 (EUR, before shipping and taxes)
- **Availability:** In stock
- **Categories:** Power management, Power, Raspberry Pi
- **Country of origin:** UK
- **HS code:** 8471800000
- **Product page:** https://lectronz.com/products/usb-power-switch-pro

## Options

**Kit or Fully Assembled**

- Kit [Add €3.59] (18 left)
- Assembled W [Add €6.90] (5 left)

## Links

- [Code](https://github.com/8086net/usb-pwr-switch-pro-examples)

## Images

![USB Power Switch Pro](https://lectronz-images.b-cdn.net/lectronz/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NTI1NDEsInB1ciI6ImJsb2JfaWQifX0=--9a93a937fb8fcda72c3175fda04f1f2275be4ed4/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls5NjAsNjQwXSwic2F2ZXIiOnsic3RyaXAiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--970c165836a83091725a1a0fd4f37ce9408da1bf/2023-08-28T10-02-39.106Z-IMG_20230828_102458958.jpg)
![USB Power Switch Pro](https://lectronz-images.b-cdn.net/lectronz/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NTI1NDIsInB1ciI6ImJsb2JfaWQifX0=--a03a1faa1e1abf8377e8467db274db56b69c2b63/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls5NjAsNjQwXSwic2F2ZXIiOnsic3RyaXAiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--970c165836a83091725a1a0fd4f37ce9408da1bf/2023-08-28T10-02-39.106Z-IMG_20230828_102912018.jpg)
![USB Power Switch Pro](https://lectronz-images.b-cdn.net/lectronz/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NTI1NDMsInB1ciI6ImJsb2JfaWQifX0=--3ec00012b1c11fd72d40e952bc6e99d5043ebad9/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls5NjAsNjQwXSwic2F2ZXIiOnsic3RyaXAiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--970c165836a83091725a1a0fd4f37ce9408da1bf/2023-08-28T10-02-39.106Z-IMG_20230828_102938053.jpg)
![USB Power Switch Pro](https://lectronz-images.b-cdn.net/lectronz/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NTI1NDQsInB1ciI6ImJsb2JfaWQifX0=--25f8a3b1a86631ab5dc0bee9d4edb66f8d972876/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls5NjAsNjQwXSwic2F2ZXIiOnsic3RyaXAiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--970c165836a83091725a1a0fd4f37ce9408da1bf/2023-08-28T11-29-28.835Z-IMG_20230828_122444512.jpg)

## Description

Enables power to a USB device (Chromecast/Raspberry Pi/USB Fan/USB light/etc.) to be turned on/off by a Raspberry Pi Pico or Pico W.

The board can be used with either a Pico W for WiFi enabled control or using a regular Pico when using sensors or button inputs.

**Connectors**

- Micro USB* - Power input / USB Data connected to output USB Type-A Socket.
- Micro USB* (Pico) - Power input / USB Data connected to Pico.
- 3-in 0.1" pin header (GND/GP13/GP12).
- 4-pin SH - I2C STEMMA QT/Qwick compatible (GND/3v3/GP26/GP27).

[*] The micro USB ports are intentionally back to back to prevent both being connected at the same time.

**Example usage**

- Simple push/slide switch at the end of a (long) cable, using internal pull up on the Pico.
- Internal temperature sensor triggering a USB fan when reaching a temperature.
- I2C CO2 sensor triggering a light.
- Wireless controlled Sleep function for Chromecast/Monitor.

You can find example CircuitPython scripts on Github (see "Source Code" link below).

Power for the output USB ports is controlled using GP2 (high=on), the other pins have been chosen to increase the usefulness of the board for those those who may want to talk advantage of the alternate functions.

| GPxx | Port | Functions |
| -------- | -------- | ---------------- |
| GP12 | 3-pin header | UART0 TX / I2C0 SDA / SPI1 RX |
| GP13 | 3-pin header | UART0 RX / I2C0 SCL / SPI1 CSn |
| GP26 | 4-pin SH | A0 / SPI1 SCK / I2C1 SDA |
| GP27 | 4-pin SH | A1 / SPI1 TX / I2C1 SCL |
| GP2 | Internal | USB Power Switch |

Please Note:

- FOR USE ONLY WITH 5 VOLT supplies and devices - Using anything else may damage your power supply/charger/USB devices and the USB Power Switch Pro board.
- USB data lines are connected at all times to either Pico or Output USB port depending on which micro USB port is used.

**Options**

- Kit :: Requires soldering of Pico/PicoW (not supplied) and USB Type-A socket (supplied unsoldered).
- Assembled W :: Supplied fitted with a Raspberry Pi Pico W

## Shipping policy

Please ensure your address is full and correct before placing an order and be aware I'm unable to use some shipping methods to PO boxes.
Deliveries to the USA are sent using RoyalMail PDDP (Postal Delivery Duties Paid).
