wlefferd
Posts: 12
Joined: Thu Apr 23, 2020 4:40 pm

Keyboard and mouse USB

Tue Apr 28, 2020 1:59 pm

I am having trouble getting my mouse and keyboard to work with my pi0
There are two spots I can connect a cable to, one marked pwr and one marked usb
I assume I should hook my mouse to the one marked usb, which I do. I am going through a usb hub which also powers the pi0
I can use the usb cable to transfer files to my phone so I assume it should transfer data properly.
I can get my pi3 to work doing the same thing with the same SD card but with a different USB cable.
Do I also need to hook power to the pwr connector, which I have done.
Can either be used to connect a usb device to the pi0

What am I overlooking?

DarkElvenAngel
Posts: 750
Joined: Tue Mar 20, 2018 9:53 pm

Re: Keyboard and mouse USB

Tue Apr 28, 2020 2:48 pm

The Pi 0 only has one USB port the power port is solely intended to power the device.

You should only power your pi with one supply or you could cause damage.

If I understand your setup correctly you have the USB port connect to your hub and everything plugs into that and you are using a port on the hub to power the pi?

Is that correct?

wlefferd
Posts: 12
Joined: Thu Apr 23, 2020 4:40 pm

Re: Keyboard and mouse USB

Tue Apr 28, 2020 2:50 pm

yes

DarkElvenAngel
Posts: 750
Joined: Tue Mar 20, 2018 9:53 pm

Re: Keyboard and mouse USB

Tue Apr 28, 2020 2:56 pm

You've got it connected properly, this is the only way to use USB devices.

You can with some configuration changes use the USB port on the pi as a device. Much like when you plug your phone in and can access the files. The Pi can be setup as a device.

Does that answer your question? Or do you want to know something else?

wlefferd
Posts: 12
Joined: Thu Apr 23, 2020 4:40 pm

Re: Keyboard and mouse USB

Tue Apr 28, 2020 3:25 pm

are there some setting I should look at?

On my pc I have to have the proper device drivers for my usb devices to worK. These devices work on my pi3 just fine without any configuration changes.

Do you think my usb port is just bad?

DarkElvenAngel
Posts: 750
Joined: Tue Mar 20, 2018 9:53 pm

Re: Keyboard and mouse USB

Tue Apr 28, 2020 3:36 pm

wlefferd wrote:
Tue Apr 28, 2020 3:25 pm
are there some setting I should look at?

On my pc I have to have the proper device drivers for my usb devices to worK. These devices work on my pi3 just fine without any configuration changes.

Do you think my usb port is just bad?
Can you take a picture of the setup it would be easier to tell if maybe something just isn't hooked up right before we say something has gone bad

wlefferd
Posts: 12
Joined: Thu Apr 23, 2020 4:40 pm

Re: Keyboard and mouse USB

Tue Apr 28, 2020 4:31 pm

I have attached a picture
Attachments
pi0hookup.jpg
pi0hookup.jpg (59.4 KiB) Viewed 409 times

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5590
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: Keyboard and mouse USB

Tue Apr 28, 2020 4:45 pm

DarkElvenAngel wrote:
Tue Apr 28, 2020 3:36 pm
wlefferd wrote:
Tue Apr 28, 2020 3:25 pm
are there some setting I should look at?

On my pc I have to have the proper device drivers for my usb devices to worK. These devices work on my pi3 just fine without any configuration changes.

Do you think my usb port is just bad?
Can you take a picture of the setup it would be easier to tell if maybe something just isn't hooked up right before we say something has gone bad
+1 and, FWIW, can you compare what you're doing with what I did here: https://www.cpmspectrepi.uk/raspberry_p ... t_Mini_Hub
NB: power was only supplied to the P0 and the hub was unpowered but provided power to the wireless keyboard/trackpad's dongle. I suspect it's your "powered" USB hub's port that cannot supply enough current, see these, albeit somewhat old, examples: https://www.cpmspectrepi.uk/raspberry_p ... st_Results
Trev.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

fruitoftheloom
Posts: 23132
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Keyboard and mouse USB

Tue Apr 28, 2020 4:46 pm

wlefferd wrote:
Tue Apr 28, 2020 4:31 pm
I have attached a picture

Maybe try a shorter good quality USB Power / Data Cable !
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

User avatar
rpdom
Posts: 17029
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Keyboard and mouse USB

Tue Apr 28, 2020 4:51 pm

I don't think that hub is connected correctly. It looks like you've just used a micro-USB to USB cable to connect to one of the ports of the hub. Is that the same port as you'd connect a PC to if using the hub on there?
Unreadable squiggle

DarkElvenAngel
Posts: 750
Joined: Tue Mar 20, 2018 9:53 pm

Re: Keyboard and mouse USB

Tue Apr 28, 2020 4:58 pm

rpdom wrote:
Tue Apr 28, 2020 4:51 pm
I don't think that hub is connected correctly. It looks like you've just used a micro-USB to USB cable to connect to one of the ports of the hub. Is that the same port as you'd connect a PC to if using the hub on there?
+1 it's not looking like it's connected correctly

wlefferd
Posts: 12
Joined: Thu Apr 23, 2020 4:40 pm

Re: Keyboard and mouse USB

Tue Apr 28, 2020 5:45 pm

My Hub is a 2.0 it has 4 USB A ports and one USB Mini. When I connect up my pi3 I use the USB Mini port and stick the USB A into the pi. With the pi0 I was sticking the USB A into the hub and a USB Micro into the pi. I have tried different ports on the hub and my USB cable transfers data from my phone to my computer with no problems.

DarkElvenAngel
Posts: 750
Joined: Tue Mar 20, 2018 9:53 pm

Re: Keyboard and mouse USB

Tue Apr 28, 2020 5:51 pm

wlefferd wrote:
Tue Apr 28, 2020 5:45 pm
My Hub is a 2.0 it has 4 USB A ports and one USB Mini. When I connect up my pi3 I use the USB Mini port and stick the USB A into the pi. With the pi0 I was sticking the USB A into the hub and a USB Micro into the pi. I have tried different ports on the hub and my USB cable transfers data from my phone to my computer with no problems.
Your hub has to plug into the pi with one of these,
Image

The way your connected the pi is a device on the hub and the pi can't access the hub

fruitoftheloom
Posts: 23132
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Keyboard and mouse USB

Tue Apr 28, 2020 5:53 pm

wlefferd wrote:
Tue Apr 28, 2020 5:45 pm
My Hub is a 2.0 it has 4 USB A ports and one USB Mini. When I connect up my pi3 I use the USB Mini port and stick the USB A into the pi. With the pi0 I was sticking the USB A into the hub and a USB Micro into the pi. I have tried different ports on the hub and my USB cable transfers data from my phone to my computer with no problems.

You need a Mains Powered Hub !!

Or an un-powered Hub and power supply !!
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

wlefferd
Posts: 12
Joined: Thu Apr 23, 2020 4:40 pm

Re: Keyboard and mouse USB

Tue Apr 28, 2020 5:59 pm

The only thing left to try is get a USB Micro male to USA A female connector and hook the mouse dongle to that. That will get my USB cable and hub out of the mix.Of course I live 6 miles past nowhere so it will take me a week to get one. Thanks to everyone that responded

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5590
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: Keyboard and mouse USB

Tue Apr 28, 2020 6:00 pm

wlefferd wrote:
Tue Apr 28, 2020 5:45 pm
My Hub is a 2.0 it has 4 USB A ports and one USB Mini. When I connect up my pi3 I use the USB Mini port and stick the USB A into the pi. With the pi0 I was sticking the USB A into the hub and a USB Micro into the pi. I have tried different ports on the hub and my USB cable transfers data from my phone to my computer with no problems.
As an unpowered hub the USB mini port is its "input" for power and the "root" of the hub. The four full-sized ports are the "output" for power and the "branches". If the port of the device connected to the "root" can only supply "X" amps (where X often = 0.5A) that will be shared over the four "branch" ports. If the hub had a separate power input then that would supply power to the hub and root ports. FWIW here's an example of a similar hub to yours but with a separate power input: https://www.cpmspectrepi.uk/raspberry_p ... rtHub.html
Trev.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

wlefferd
Posts: 12
Joined: Thu Apr 23, 2020 4:40 pm

Re: Keyboard and mouse USB

Tue Apr 28, 2020 6:05 pm

My Hub has power.

Why does my setup work on my pi3 but not on the pi0?

fruitoftheloom
Posts: 23132
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Keyboard and mouse USB

Tue Apr 28, 2020 6:08 pm

wlefferd wrote:
Tue Apr 28, 2020 6:05 pm
My Hub has power.

Why does my setup work on my pi3 but not on the pi0?

So you use this powered Hub to power your RPi 3B ??
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

User avatar
rpdom
Posts: 17029
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Keyboard and mouse USB

Tue Apr 28, 2020 6:30 pm

wlefferd wrote:
Tue Apr 28, 2020 6:05 pm
My Hub has power.

Why does my setup work on my pi3 but not on the pi0?
Because, as was explained previously, you need to connect the Pi 0 to the USB Mini on the Hub, the same as you did with the Pi 3.
Unreadable squiggle

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5590
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: Keyboard and mouse USB

Tue Apr 28, 2020 6:40 pm

wlefferd wrote:
Tue Apr 28, 2020 6:05 pm
My Hub has power.
...
But where from? It's difficult to see that on your 'photo.? If it is via a separate, not shown, power supply, and not just another USB port what type/spec. of power supply is it? In my experience many supplies provided with (older) USB2 hubs were of poor quality.
Trev.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

wlefferd
Posts: 12
Joined: Thu Apr 23, 2020 4:40 pm

Re: Keyboard and mouse USB

Tue Apr 28, 2020 7:12 pm

"Because, as was explained previously, you need to connect the Pi 0 to the USB Mini on the Hub, the same as you did with the Pi 3."

I am very sorry, if it made sense to me I would not have asked.

User avatar
HawaiianPi
Posts: 5710
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: Keyboard and mouse USB

Tue Apr 28, 2020 7:13 pm

wlefferd wrote:
Tue Apr 28, 2020 6:05 pm
My Hub has power.

Why does my setup work on my pi3 but not on the pi0?
The hub has a single upstream port that connects to the computer, and multiple downstream ports that connect to devices (mouse, keyboard, etc.). You have your Pi0 connected to one of the downstream ports, when it needs to be connected to the USB-Mini upstream port.

It works on your Pi3 because you are correctly connecting it to the USB-Mini upstream port.

The tricky part will be finding a USB Mini-to-Micro cable for the Pi0 (they exist, but they are not common).
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

wlefferd
Posts: 12
Joined: Thu Apr 23, 2020 4:40 pm

Re: Keyboard and mouse USB

Tue Apr 28, 2020 7:19 pm

"But where from? It's difficult to see that on your 'photo."

The power input is the far left, then my USB A to the pi0 then my mouse/keyboard dongle in the middle.

wlefferd
Posts: 12
Joined: Thu Apr 23, 2020 4:40 pm

Re: Keyboard and mouse USB

Tue Apr 28, 2020 7:21 pm

I understand now. The mini port allows my computer to talk to the 4 USB A ports but the USB A ports don't talk to each other.

fruitoftheloom
Posts: 23132
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Keyboard and mouse USB

Tue Apr 28, 2020 7:41 pm

Removed unhelpful response...
Last edited by fruitoftheloom on Tue Apr 28, 2020 7:49 pm, edited 2 times in total.
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

Return to “Troubleshooting”