Brain surgery! RP2040 style (32u4 ft Raspberry pi Pico)

That’s a Pi Pico
Partying like it’s nineteen QWERTY nine!!

The interest in the mini keyboard is strong as ever, but – there’s a new kid on the block soon – The Amiga A500 Mini

That Beastie –

To turn this Mini’s ridiculously small keyboard into a ‘toothpicks required to operate’ WORKING keyboard will be tricky as it has a significantly larger number of keys than the C64Mini

Infact, there’s 96 on European Keyboards and 94 on others? ..Either way – it’s More than 81 – which is the maximum you can put on 9×9 Matrix – which exceeds the capacity of the good old 32U4 when used as a keyboard (well, technically, the Pro Micro I use has 20 GPIO available, Allowing for 100 keys IF I go and hack out the two LED’s and solder a bridge)

So…Enter the Fantastic (and new) Ruby Firmware for Keyboards – PRK,

Which can be found here –

and, with a good overview – here on Youtube (in Japanese, but, enable Captions and translate to English, you’ll get the gist of it)

It’s taken me a Solid Month to figure out how to get this far – I’m a relative noob to Linux, cross compilation, Ruby, C, and, generally ‘stuff’ like this –

To be able to compile this, i’ve setup WSL for Windows – which is essentially Ubuntu Linux, running nativley in Windows!

Inception! WSL running Ubuntu whilst i type this blog!

I’ve also had to setup the Raspberry Pi Pico-SDK

Ruby – For Linux – something higher than 2.6

Bundles for Ruby

And a few other things….all of which are quite finickitey and throw a wobbly at the slightest provocation! – Linux is fun eh!..

I’ll eventually get around to step-by step documenting and linking each step to ensure a good build environment so that others can duplicate what I’m doing

Once it’s all compiled, I drag the .uf2 file over to the pico (after holding bootsel whilst plugging it in) the thing reboots and becomes a keyboard

What’s Next………..

  • Ensure the Keymap is correct
  • Finish the basic keyboard layout, testing all basic keys
  • Introduce shifted keys
  • introduce ‘layers’ to ensure special keys are correct
  • introduce fancy stuff

Where this is going……………..The RP2040 Chip is fairly priced against the 32u4. I’m hoping that I can eventually switch the C64mini keyboard over to a fully SMT ready assembled kit – just add keycaps. And, i’m hoping I can do that for the Amiga Mini!, as much as I love soldering 600+ points, I appreciate some of you out there don’t!

And, I’ve another TOP SECRET project on the go also…It’ll blow yer mind! but, in 2022 that one, it’s a long burn that ‘looks’ finished (i’m holding it in my hands now!, all 2 circuit boards and about 100 3D printed pieces) but, needs quite a bit of work behind the scenes.

Also, Blinkenator, slow going, but I’m really trying, it’s just hard getting over this hurdle where it must be soldered….one last thing to try!

And, final before I go to bed, the C64 mini running the keybaord upgrade kit with pi Pico transplanted brains!

It’s being captured via a HDMI capture dongle and OBS studio so I can use my laptop as a test monitor!

C64 Mini Keyboard Kit – Newer Firmware!

Loads fixed with this – and it should hopefully be on Github soon also

Google Drive Link Here

The Hex File is above

There are only a couple of extremely tricky issues remaining now! they may need macros, and may not even be possible

Note with this firmware – It works perfectly with ENGLISH Language and UK Keyboard layout set in the firmware…

I hope to eventually be able to create more localised keymaps to change behaviour on boot so every language in the mini works well. IF there’s any pressing issues, please contact me, I should now be able to quickly and easily tweak a couple of keys for you.

Also, the Firmware will be part of the QMK Github soon, so you can download and tweak away yourselves!

To Upgrade your Keyboard, I’m finding QMK ToolBox to work brilliantly

Most older fimrwares out there will need to have B held down whilst shorting the reset jumper at the top of the keyboard inside , for whatever reason though t

I’ve found this a little flaky for whatever reason, sometimes mashing down every key whilst hitting reset does the trick

To make that more professional…….I now have configured the Bootmagic Lite.

To Update the firmware after this update, simply fire up QMK TOOLBOX, connect your keyboard to a Laptop. Hit ‘auto flash’, select the MCU (see picture above)…then Hold 1 and short the reset jumper inside the keyboard.

I’m still learning how configure all this, so bear with me, it’ll be slick just like those professional Mechanical Keyboards in no time*

*by ‘no tiime’ I mean potentially months and months as i’m tinkering in my limited spare time to add this extra functionality