Yet Another Pi Zero USB Hub

The Raspberry Pi Zero was back in stock at Adafruit this week – for about eight minutes. That means a few more people get Pi Zeros, many more will put them up on eBay, and everyone is working on their own version of a Pi Zero USB hub. The latest version of a Pi Zero hub comes from [Nate], and he’s doing this one right. His Pi USB adapter adds four USB ports and features not found in other DIY USB hubs like fuses and ESD protection.

As with other Pi Zero USB hub add-ons, this build relies on a USB hub controller, a few passives, and not much else. The chip used in this hub is the FE1.1s chip, a highly integrated 4-port hub controller that can be found through the usual Chinese resellers. This hub controller doesn’t require much, just a 12MHz crystal, a few passives, and four USB jacks.

Of particular interest is how [Nate] is connecting this hub to the Pi Zero. He’s left the option open for using either a USB cable, or soldering the USB’s differential pairs directly between the Pi and the hub. In either case, the hub should work, and with the addition of the zeners, fuses, and other parts that keep the hub from frying itself, [Nate] might have a very nice project on his hands.

Turning The Pi Zero Into A USB Gadget

The Raspberry Pi Zero is limited, or so everyone says, and everyone is trying to cram a USB hub and WiFi adapter on this tiny, tiny board. One thing a lot of people haven’t realized is that the Raspberry Pi Zero comes with a USB OTG port, meaning it can function as a USB device rather than a USB host. This means the Raspi can become a serial device with just a USB cable, an Ethernet device, MIDI device, camera, or just about anything else you can plug into a USB port. Adafruit has your back with a tutorial for using the USB OTG port as a serial and Ethernet interface, and the possible applications are extremely interesting.

The only requirement for using the USB OTG port for device applications is an update to the kernel. This is easily installed by dumping a few files on an SD card and a employing bit of command line wizardry. The simplest example is setting up the Pi Zero as a USB serial device, allowing anyone to log into a serial console on the Pi with just a USB cable.

A slightly more interesting application is setting up the Pi as an Ethernet gadget. This effectively tunnels all the networking on the Pi Zero through a USB cable and a separate computer. The instructions are extremely OS-specific, but the end result is the same: you can apt-get on a Pi Zero to your heart’s desire with a new kernel loaded onto the SD card and a USB cable.

This experimentation is just scratching the surface of what is possible with the OTG port on the Pi Zero. MIDI devices are easy, and with a ton of GPIOs, the Pi Zero itself could become a very interesting musical instrument. Want the Pi Zero to be a storage device? That’s easy too. The USB Gadget will end up being one of the most exciting uses for the Pi Zero, and we can’t wait to see what everyone will come up with next.

Here Comes Santa Claws

Liberty Games in the UK was looking for a fun way to support charity for the holidays, and we think they succeeded. They decided to set up an arcade crane machine to run over the internet, with each type of toy snagged earning  a donation. Snag a bear, and they will donate £5 to St Mungos, a UK charity that works with homeless or at risk people. Snag one of the rarer Santa toys, and they will donate £20. It’s a great cause, and a nice hack. Behind the scenes, the Internet side of things runs on a Raspberry Pi connected to a PiRack and a couple of PiFace digital interface cards that are wired into the electronics of the crane machine so they could control the buttons on the machine from a Web interface. Unfortunately, it didn’t seem to be running when we tried it, but hopefully someone will give the machine a swift kick shortly to get it going until the Hackaday traffic invariably brings it down again.

One of the interesting thing that they discovered while working on these hacks: they have a pay-out ratio that is determined by the strength of the grabbing arm. The owner can tweak this so that the arm does not grab very firmly, which means a dropped bear. Want to torture your friends with hopes of snagging the best stuffed animals?. Follow the example of this claw machine build all from parts on hand.

Firing Up A Raspberry Pi Zero

I ordered a Raspberry Pi Zero from Adafruit in their Startup Pack right after they were released. There are a few Greater Than Zero Pis (GTZPi) already on my workbench so my purchase was driven by curiosity, not necessity. With no rush on delivery it eventually got here, and I finally got around to looking at it. My experience with the Pi family began with the Pi B+ and, shortly after that, the Pi 2. The speed difference between them was noticeable so I decided to dive in and further test the performance of the Zero.

Continue reading “Firing Up A Raspberry Pi Zero”

Raspberry Pi Laser Beam Profiler

[Anthony] at UCLA needed to verify the shape of a laser beam. Commercial units for this, as you would expect, are expensive. But a Raspberry Pi with a Pi Noir camera easily handles the task. Not only is the use of the Pi cool but so is the task – they are using lasers to cool molecules to study quantum effects. The Pi camera without the IR filter captures a wide bandwidth making it suitable for use with non-visible lasers. [Anthony] captures the beam along two axes and plots both curves on the LCD touchscreen. That data, based on the pictures, is also available on a host PC. All this in a super compact package with a 7″ touch screen display.

One reason I find this fascinating is I did something similar 1977 at the University of Rochester Laboratory for Laser Energetics. My project was measuring the energy cross-section of a laser beam. The research goal of the Laboratory was the study of inertial confinement laser fusion. While [Anthony] uses an entire camera my project was limited to a 1 dimensional array of charge coupled devices (CCD). The output went to a Tektronix storage terminal and was printed on thermal paper for reference. He uses Python running on the target system. My work used a Z80 development system the size of a tower PC to write my program in assembly language which was then executed on a single board computer. We’ve come a long way. My code is long gone but you can get [Anthony’s] on GitHub.

Yet Another Pi Zero USB Hub

It’s quite fascinating to see the world of hackers rise up and start messing around with new hardware as soon as it’s released. As everyone knows, the Raspberry Pi Zero only has two micro USB ports… a bit lacking for any computer — even one the size of a credit card. While there will probably be an official USB hub coming out someday, we’ve already seen a few home-made versions — though we think this might be the nicest layout so far!

[Richard Hawthorn] threw this PCB design together to give the Pi Zero four USB 2.0 ports. It can be attached by either a USB connector, or by soldering 4 pins between the two boards. It can either be powered off of the Pi Zero, or with an external power connector jack. In a future design he hopes to add pogo pins so it can just be attached and detached whenever you need it.

It’s a bit more involved than simply strapping a mini USB hub to the back of your Pi, but if you’re interested in a more sleek solution, [Richard’s] got all the details on his GitHub.

Open Sesame Raspberry Pi Style

[Don] installed an Android tablet into his wife’s vehicle and realized he wanted to allow it to operate and monitor the garage door. His biggest challenge? Meeting the (what he refers to) as the WAF or Wife Acceptance Factor. He decided to use a Web app on a Raspberry Pi, along with a handful of switches and a relay. His list of goals were straightforward:

  • Provide the status of the door (open/closed/unknown)
  • Open and close the door
  • Work across multiple platforms
  • Secure enough to connect to the Internet
  • Reliable and simple

Continue reading “Open Sesame Raspberry Pi Style”