---
slug: "RaspberryPiの、USBポートから給電できるセルフパワーUSBハブを作成する"
title: "Creating a Self-Powered USB Hub for Raspberry Pi Using USB Port Power"
description: "Raspberry Pi is typically powered through a dedicated micro USB port, but unofficially, it can also be powered via:"
url: "https://www.ytyng.com/en/blog/RaspberryPiの、USBポートから給電できるセルフパワーUSBハブを作成する"
publish_date: "2014-06-08T01:24:26Z"
created: "2014-06-08T01:24:26Z"
updated: "2026-02-27T10:43:53.996Z"
categories: ["Raspberry-Pi"]
keywords: ""
featured_image_url: "https://media.ytyng.com/resize/20230812/712c521c4c0848ddacdd5237d1fe0a17.png.webp?width=768"
has_video: false
has_music: false
video_urls: []
music_urls: []
lang: "en"
---

# Creating a Self-Powered USB Hub for Raspberry Pi Using USB Port Power

Raspberry Pi is typically powered through a dedicated micro USB port, but unofficially, it can also be powered via:
- The +5V pin on the GPIO
- The +5V on the USB port

In this post, we will modify a commercially available USB self-powered hub so that it can supply power to the Raspberry Pi through the +5V pin on its USB port.

By doing this, we can connect both the USB hub and the power supply to the Raspberry Pi using a single cable, which helps to keep the wiring neat and tidy.

Here is the USB hub we will be using:

<div><a href="http://ytyng.com/picture/raspberry-pi/powerd-usb-hub/IMG_3246.jpg" target="_blank"><img src="http://ytyng.com/picture/raspberry-pi/powerd-usb-hub/IMG_3246.jpg"/></a></div>

This is an ELECOM USB hub that I had lying around at home. The AC adapter provides 5V at 2.0A, which seems sufficient in terms of current. We will route the 5V from the adapter directly to the Raspberry Pi.

First, let's open the case.

<div><a href="http://ytyng.com/picture/raspberry-pi/powerd-usb-hub/IMG_3248.jpg" target="_blank"><img src="http://ytyng.com/picture/raspberry-pi/powerd-usb-hub/IMG_3248.jpg"/></a></div>

We can see that the +5V from the adapter is directly connected to the switch on the top side.

Therefore, we will connect the +5V after the switch on the top side to the +5V (red cable) of the USB cable.

<div><a href="http://ytyng.com/picture/raspberry-pi/powerd-usb-hub/IMG_3252.jpg" target="_blank"><img src="http://ytyng.com/picture/raspberry-pi/powerd-usb-hub/IMG_3252.jpg"/></a></div>

Since the USB cable is too long, we decided to shorten it as well.

After soldering, we check with a tester to ensure there are no shorts or issues.

If everything looks good, we close the case to finish up.

<div><a href="http://ytyng.com/picture/raspberry-pi/powerd-usb-hub/IMG_3250.jpg" target="_blank"><img src="http://ytyng.com/picture/raspberry-pi/powerd-usb-hub/IMG_3250.jpg"/></a></div>

Since we shortened the cable, we tested the connection with our computer to make sure there were no mistakes in the wiring. Everything seems fine.

Now, we connect it to the Raspberry Pi.

<div><a href="http://ytyng.com/picture/raspberry-pi/powerd-usb-hub/IMG_3251.jpg" target="_blank"><img src="http://ytyng.com/picture/raspberry-pi/powerd-usb-hub/IMG_3251.jpg"/></a></div>

It works perfectly. Since this hub has a power switch, it can also serve as the power switch for the Raspberry Pi (and the entire system).

Now, with just one cable connected to the Raspberry Pi, you can use both the power supply and the USB hub. This is especially suitable for the A-type model, which has fewer USB ports.
