Using the Blackberry 10 I2C Keyboard PMOD with the Pinephone
While Pine64 is working on a great clamshell design keyboard, an alternative idea that's interested me for a while is the concept of a (vertical) thumb keyboard for Pinephone. That's really the ideal form-factor IMO for mobile use. Well lucky me (and us) - it turns out this is doable today.

Enter Arturo182's awesome Blackberry PMOD:
It comes from Sweden and took about 2 weeks to arrive.

Combine that with the I2C breakout from SMR404:

And you have a workable keyboard on the Pinehone today. Also the other thing to note, the BB Keyboard is the *perfect* size horizontally / fits perfectly on the Pinephone. My idea is have the software block out the LCD portion where the keyboard will sit and accept that as dead space / for stability or counterbalance. Below is my PP w/ BB keyboard prototype and a small video of where I'm at so far:
[Image: ppbbkb.jpg]

Demo video:

Obviously its not the prettiest thing what with being held together with a rubberband Rolleyes  but it is surprisingly stable and it is already quite usable. With a 3D-printed case and the kernel module refined a bit more, this is will be perfect.


So I'm opening this thread as an open discussion for anyone else who also is interested in hacking on the BB keyboard in combination with the Pinephone.

My WIP kernel module for this keyboard is available at:

Some ideas & notes / musings on progress:
- DONE: Modified arturo182's RPI kernel module to not require DTC changes and work with Pinephone's I2C
- DONE: Temporarily modified kernel module to use polling rather then interrupt for events (probably not smart.. but works)
- DONE: Implement tap-modifiers so that Ctrl/Alt/Shift can be used one-handed by tapping modifier
- DONE: Implement symbols layer that also works with tap-modifier logic
- TODO: Rework kernel module to support 3rd layer for programming symbols
- TODO: Figure out how / if interrupt via GPIO IRQ mapping is possible (without DTC updates..)
- TODO: Either figure out how to get custom underscan resolution to block out bottom 300 pixels or implement padding into Sxmo
  - Trials so far with custom underscan resolution produces burn-in which lasts several days
- TODO: Find 3D printer or person with 3D printer to print a case
- TODO: PCB design a cable to go from Pogo I2C to keyboard so thing looks better put together / hidden (flex cable?)

Happy hacking,

Congratualations. That's awesome.
This is probaby complete rubbish, and I'm sure you've already thought of it, but could xrandr be of any use, e.g.

Good luck
P.S. Is there any soldering involved? Can't believe this hasn't got more attention.
Nice find, and work on getting it going.

There's some soldering involved - the rainbow ribbon cable is soldered at the keyboard end although it looks like it's using dupont connectors at the pogo breakout end. A practical everyday version might rework the pogo breakout and integrate the ribbon as a flexi pcb, and reroute to clear the USB. There's scope to add a flip mechanism to the case and some sort of open/closed sensor to use the extra screen space, but that's taking things to another level once the basics are working. I'm not yet convinced the clips for the back cover can be successfully 3d printed on a domestic machine, but hope I'll be proved wrong.
(02-20-2021, 09:47 PM)mil Wrote:   - Trials so far with custom underscan resolution produces burn-in which lasts several days
welcome to the club
Great idea, and I'm pleased to see it working.

Rather than blocking off the bottom of the screen, why not build a chassis to house the keyboard below the screen. Yes, it ends up being a long device, but it's similar to what TCL did for the Key series.

Possibly Related Threads…
Thread Author Replies Views Last Post
  Play along - create a PinePhone keyboard Luke 205 63,620 02-20-2021, 05:08 AM
Last Post: CharlieGordon
  Alternative Compatible Cases for the PinePhone? Trizzle 2 223 02-12-2021, 03:57 PM
Last Post: kqlnut
  Mouse for the PinePhone? Peter Gamma 3 382 02-08-2021, 03:03 PM
Last Post: Peter Gamma
Question Pinephone back plate / case idea for switches bartaco 5 735 01-29-2021, 03:34 AM
Last Post: sunburnedpenguin
  Pinephone with Google Fi SIM riotsu 5 2,117 01-03-2021, 01:25 PM
Last Post: rocket2nfinity
  3D Printing a Pinephone Back Cover sundog 19 6,505 12-16-2020, 08:03 AM
Last Post: tophneal
  Pinephone charger - does LED change color? Zebulon Walton 1 446 12-15-2020, 12:38 AM
Last Post: tllim
  3D Printed PinePhone stand simoni 13 2,361 12-10-2020, 10:15 AM
Last Post: patrickmollohan
Heart PinePhone / Pine Tab dock or PineBook hockleyj 6 3,053 12-10-2020, 03:47 AM
Last Post: sbl
  Thermal imaging solution board for the PinePhone board jnpine 2 609 12-04-2020, 04:27 PM
Last Post: jnpine

Forum Jump:

Users browsing this thread: 1 Guest(s)