“I was inspired to create the Hackberry Pi Zero about three years ago when I found a project about reverse-engineering on Hackaday,” Zitao says. “I thought it would be really cool to have a device with a thumb keyboard, so I began reverse-engineering old BlackBerry keyboards and made it technically work. I then saw a project called Beepberry and thought it would be super-cool to create a similar device with a different BlackBerry keyboard. I basically looked to use the same design but mount a Raspberry Pi Zero 2 W instead.”
Well-connected
Beepberry – or Beepy as it’s now known – is a versatile device designed primarily to run various messaging services via the chat app Beeper. Created by Eric Migicovsky, who founded the Pebble smartwatch, Beepy uses the keyboard of a BlackBerry Classic and a Raspberry Pi Zero W. It allows access to Linux, which can be viewed on a 2.7-inch black and white LCD display.
“My start point was to design a learning tool for Linux beginners like me, but also address the pain points from the Beepberry such as using a display with a backlight and adding external USB ports,” Zitao says. It’s why the Hackberry Pi Zero has three USB 2.0 ports, made possible thanks to the use of an internal hub. “As the project progressed, I found it would also be cool to add a STEMMA-style I2C port for communicating with sensors. In this way, beginners can learn to code with Python.”
The device also has an external TF card slot so that the operating system image can be replaced very easily. Flip the device onto its back and you’ll find Zitao has added three compartments as well. One of these can be opened to reveal Raspberry Pi Zero 2 W, giving users easy access. The other two house a pair of swappable batteries and, in keeping with the mobile phone theme, these take Nokia BL-5C rechargeable lithium-ion packs. You’re able to replace them within ten seconds without killing the power.
Key to success
Of all of the components, the keyboard is arguably the most eye-catching and Zitao says the choice of BlackBerry keys was rather straightforward. “The BlackBerry keyboards are known to be good quality and they offer a great typing experience,” he notes. “The optical trackpad from a BlackBerry keyboard can work as a mouse too and this also offers a very good user experience. The choice of keyboard influenced the size of the screen because I needed them to fit alongside each other.” As it happens, it’s a perfect fit.
Zitao hasn’t stuck to using just one BlackBerry Qwerty keyboard. Although he initially chose to incorporate one from the BlackBerry Classic (or Q20), a smartphone that was unveiled in 2014, he has also created another device that makes use of the keyboard from a Q10 (unveiled the previous year). He has also developed a third variant – one that uses a keyboard from the BlackBerry Porsche Design P’9983. And there has been scope for a bit of fun.
One of the devices Zitao has made features a set of colourful buttons showing a circle, triangle, cross, and square, which gamers will instantly spot as having been inspired by Sony’s PlayStation controller. “I actually started making a Bluetooth keyboard variant of the BlackBerry keyboards about six months ago and at that time the top row of keys were the original BlackBerry-style keys,” he says. “Then a customer suggested I try PlayStation-like buttons. I found they fitted very well and were easy to print.”
Mapping the way
The keyboards needed a bit of work in order to get them to operate with Raspberry Pi – notably, hooking them up to a keyboard controller which uses a RP2040 chip. There’s an analogue button which needs to be switched on so that the keyboard controller communicates with Raspberry Pi Zero 2 W. If it is turned off, another device can be connected to the USB-C port – a PC keyboard, perhaps – and that will be used to communicate with Raspberry Pi instead.
It’s also possible to customise the keymap. “I chose the open-sourced firmware QMK to power the keyboard through the USB interface and one benefit for that is the user can remap the keyboard layout if they want by using the Vial app,” Zitao explains. “The BlackBerry keyboard only has about 40 keys so I designed three layers for the keyboard, which means each key can be mapped into three symbols or letters.”
The remapping tool vial is basically a web app and Zitao says Raspberry Pi Zero 2 W doesn’t have enough power to open it due to its limited RAM. “I designed a USB-KVM on board to make the keyboard controller chip able to communicate with the external computer so the customer can edit the keymap on their computer,” he adds. “At the same time, the hardware can make the Hackberry Pi Zero work as an emergency keyboard.”
It certainly works well. Hackers are likely to use Kali Linux – an advanced penetration testing distro for ethical hacking and network security assessments – but Zitao just likes to play around. “I’ve used the devices to learn coding with Python, learn the Linux command-line terminal, and to play some retro games. It really is a lot of fun.”