Skipping the USB hub?

Having trouble with your GBZ build? Ask your questions here!
Post Reply
Sandler
Posts: 8
Joined: Mon Dec 19, 2016 6:18 am
Has thanked: 2 times

Skipping the USB hub?

Post by Sandler » Tue Jul 25, 2017 7:15 pm

Reposting this question because apparently the first time I accidentally posted in "Other Projects" instead of "Game Boy Zero."

A bit of background: My boyfriend and I have been working on our GBZ builds for a while now and we're running into a wall -- for whatever reason, we keep getting USB hubs that don't seem to work. We started by each taking apart a Targus USB hub the way wermy did in his guide, soldering them to our Pi zero w's, and plugging a USB controller into the remaining port. Mine worked and went on to work with the Teensy no problem. His didn't work. We tried redoing all the connections in case there were shorts, including removing it entirely and connecting it to my pi, but it didn't work there, either. We ordered a new hub, stripped it, and tried again but came across the exact same problem. We're both frustrated and looking for another way to finish our builds together.


My actual question:
We're not using USB audio and the zero w has built-in bluetooth and wi-fi, so we only need the hubs to hold the teensy and the external USB port. Is there any way to connect both of those to the pi directly? Is it possible to solder one to pads 22/23 and the other to some set of GPIO pins or will that cause interference?

Thank you in advance to anybody who can provide advice!

User avatar
wermy
Site Admin
Posts: 1346
Joined: Tue May 03, 2016 8:51 pm
Has thanked: 620 times
Been thanked: 1322 times
Contact:

Re: Skipping the USB hub?

Post by wermy » Tue Jul 25, 2017 7:27 pm

Hi,
Unfortunately no, it's one or the other. If you're happy with transferring roms and stuff over wifi then you could forego the external USB port and just connect the teensy to the USB pads.
Another option would be to use GPIO for your buttons. This requires some software setup (and some more soldering) but is not hard, and would let you then skip the teensy, and wire up your USB pads on the pi to the external USB port.
This is the software I use for GPIO button input on the mintyPi. It's very easy to set up and works great (it shows up as a keyboard just like the Teensy): https://github.com/adafruit/Adafruit-Retrogame
ImageImageImageImage

User avatar
Lphillimore
Posts: 993
Joined: Sat Jan 07, 2017 7:03 pm
Location: Perth, WA
Has thanked: 796 times
Been thanked: 527 times

Re: Skipping the USB hub?

Post by Lphillimore » Tue Jul 25, 2017 7:51 pm

I recommend using the GPIO for buttons and skipping the teensy - this will also slightly save on space inside. So long as pads 22/23 are good, as Wermy says you can wire up an external USB port from these and power straight from the Powerboost or Bangood / Generic psu.

As ever, it's always good to fire some images over of your current wiring as often you miss / overlook things that are obvious, I've done this a lot myself :D

Sandler
Posts: 8
Joined: Mon Dec 19, 2016 6:18 am
Has thanked: 2 times

Re: Skipping the USB hub?

Post by Sandler » Tue Jul 25, 2017 8:27 pm

Thank you both! I guess we'll probably end up wiring the controls through the GPIO, then, and the external hub through the USB port. Even if we can transfer ROMs via WiFi, it would be nice to potentially be able to plug in another controller.

User avatar
Lphillimore
Posts: 993
Joined: Sat Jan 07, 2017 7:03 pm
Location: Perth, WA
Has thanked: 796 times
Been thanked: 527 times

Re: Skipping the USB hub?

Post by Lphillimore » Tue Jul 25, 2017 9:39 pm

You could also Bluetooth a controller to the Pi 😎

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest