whitehatmiddleman / crkbd-pimoroni-trackball

crkbd with pimoroni trackball
MIT License
131 stars 11 forks source link
crkbd custom keyboard pimoroni trackball

Crkbd with Pimoroni Trackball

Portable keyboard and mouse companion.

alt fullview

This was inspired by foureight84's sofle and vlukash

Materials

Build

I won't go over the details of the crkbd base build there is a lot of youtube clips and the orginal foostan build is already detailed.

Instead of using the standard pro micro, I used the sparkfun pro micro usb-c controller and qwiic port to connect the pimoroni trackball as shown below.

Qwiic Connection

Pimoroni Trackball with qwiic connection: alt trackball-qwiic

Trackball connected to the controller: alt controller-with-trackball-qwiic

Controller connected to the board: alt connection

Right Hand Master: alt right-hand-master

QMK firmware

I'm in no means a pro C/C++ developer and I'm sure once you see the code you could probably find improvements, but most of the development was originally from foureight84, drashna and sevanteri.

Currently the common crkbd doesn't support i2c for the split keyboard communication, so I had to build the firmware similar to vlukash trackpad approach by having a firmware for the right and left controllers. Basically the master hand, the one that has the usb connected, will have the working code for the pimoroni trackball. So you have to explicitly say which is the master and enable the pimoroni trackball for that side only.

The firmware does not include the OLED driver mainly because I haven't tested it yet. The LED in the trackball will change indicating which layer you are currently at.

Clone my firmware here: https://github.com/greyhatmiddleman/qmk_firmware.git

git clone --branch greyhatmiddleman https://github.com/greyhatmiddleman/qmk_firmware.git

The firmware is located in keyboards/crkbd/rev1/common/keymaps/greyhatmiddleman_trackball_[left|right].

The firmware is located in keyboards/crkbd/keymaps/greyhatmiddleman_trackball_[left|right].

Firmware Customization

For this example the trackball will be connected to the right hand which will be the master side.

Here you want to make sure the following:

Flashing Firmware

Connect the usb to right hand controller and run the following:

qmk flash -kb crkbd -km greyhatmiddleman_trackball_right

Next connect the usb to the left hand controller and run the following:

qmk flash -kb crkbd -km greyhatmiddleman_trackball_left

Connect the usb to the right hand controller then to your computer and you should be all set!

Using the Sparkfun pro micro USB-C controllers

When using the sparkfun pro micro usb-c controllers you will need to break the VCC bridge on the back of slave/left hand controller. As shown in the image below. alt left and right hand controllers

When you need to update the firmware on the slave/left hand controller, you will need to jump the 5v and RAW pins prior to connecting the usb cable.

Remember to load the firmware on these sparkfun controllers, you need to press the reset button twice. Refer to sparkfuns documentation for more details.

I found this article when troubleshooting the sparkfun controllers: Only one half of my keyboard works at a time, but not when they are both connected

Adding switch

If you are able to find this switch, you can solder a switch on the VCC bridge connector. After breaking the default 5v bridge to VCC, solder the switch pins to 5v and VCC, so that when the switch is on 5v is connected to VCC and off 5v is disconnected from VCC. No connection is needed for the 3v pad.

alt sparkfun-with-switch

Features

Troubleshooting

Future Improvements

Buy Me A Coffee