A friend purchased a new printer recently, so, I’m doing some testing to see if i can ever release a ”print bureau” option for those that want a really fancy keyboard with full colour keycaps.
To be clear, There’s almost zero chance i can sell full colour keycaps myself, but it would be nice to present that option.
On the next page, there’s some tests i’ve done to benchmark just how well the Spectrum Next ‘new’ hardware works .. I’ve been playing with removing colour clash from old games, patching them so they work on the Spectrum Next without colour clash….
achieving this hasn’t been easy….it’s an extremely manual process right now, i’ve spent about a week burning through claude credits / topups and resets, and some time manually editing stuff by hand also.
Right now i’ve gotten the first 6 Dizzy games mostly attribute clash free, and a couple of others…
My plan, develop some type of tool that semi-automates this…
i.e. an end user can shove a z80 file into an ai, give it a toolkit and a prompt, then end up with something…
I may be YEARS away from that goal!…
Yeah, I’ve burned a LOT of tokens on some preliminary work for converting a Z80 snapshot of a game into a .NEX native file..
then utilising the expanded memory space of the Spectrum Next to store sprites…
which the AI tool cleverly hooks in from calls in the original game!
So, here’s Rainbow Islands, 128K…Before and after and a longer video
So, anyone remember how colourful Rainbow Islands was on the Sinclair ZX Spectrum. Well, on the @ZXSpectrumNext it’s. Ow a little less colourful 😉 This one was HARD…and it’s not finished , it’s a 177kB , patched 128k version! pic.twitter.com/tdqzTxDdM2
Something I’ve always wanted to do for the Spectrum Next is to make a DOT command.
Problem is, I’m relatively clueless about Z80 stuff in general, I did quite a bit of BASIC back in the day.
Having a play today, and with Claude’s assistance,
I got z88dk running
I used the Next’s source code folders for the TIME and I2CSCAN dot command source files
I created a new ASM file that now scans and writes stuff to the Next’s i2c bus.
In parallel, I got the Arduino IDE installed to work with the new RP2350 (pi pico 2) chips
And wrote an Arduino .INO sketch file to read commands sent from the Spectrum Next’s i2c bus and to light up some LED’s!
Back a looooong time ago when I started working on the Blinkenator, it took me weeks to figure out the arduino bits and learn / patch together just basic ‘stuff’ for i2c from dozens of other examples on the internet!
I’m really hoping this new found superpower will spur things along nicely…
Especially as I’ll now have control over the transmitting .DOT commands AND the receiving hardware!
Next weekend I may play with the serial bus to see how quickly I can squirt data both ways!!
For some reason, that may become clear in a few months time…I’m playing with LED’s
I quite like the classic KITT Front of car RED light scanning back and forth effect from the TV series Knight Rider – you can see it clearly on Youtube!
I wondered, how hard is it to re-create.
Turns out, Not so easy!.
Most websites / projects seem to have a very simple ‘ping-pong’ type of LED moving back and forth
Made a minor change – The original C64 matrix has Left Shift and Shift Lock tied together, permanently.
That’s great IF you want to use this 50% scale keyboard on a REAL C64….
But, as i can’t physically ‘lock’ these new keyswitches, it’s not so great for an authentic experience. nor does it make ‘mapping” on an emulator like VICE easy…
I’ve now introduced a simple Shiftlock behavour toggle.
On a standard 8×8 C64 Matrix to get a Left Shift button press, you briefly short Column 7 and Row 1. Shift Lock phyiscally holds this down.
I’ve added an 8th Row and column to the matrix –
This lets me have restore as a dedicated button, and an extra 16 “keyboard positions” in the firmware. – I’ve mapped 12 of those to Joystick 1 and Joystick 2 on the PCB…
and another – to be Shift Lock
The circuit below lets you select – default behaviour – which ensures that , Shiftlock is it’s own dedicated key in the matrix When Pressed. it shorts C7, R8.
Or, if you move the jumper, it shorts C7, R1 and becomes compatible with a standard matrix! (but doesn’t lock)
May seem like a lot of effort, I know a few of you used the previous keyboard on raspberry pi’s, PC’s and even a real C64!, this keeps that compatibility.
Playing with Minimum Order Quantities and component availability to determine pricing…..have been uploading to JLCPCB to check BOM and sweet spot for ordering a first proper produciton batch. I KNOW i can sell these for a lot less than my previous fully assembled keyboard kits. I also have to figure out taxes / shipping / ‘stuff’ as it seems a LOT has changed this past 5 years!
This one’s the first, competed new version keyboard packed and sealed into a retail boxed C64 mini
This particular unit’s for my wife’s boss, so I HAD to spend a long time getting it perfect.
After playing a LOT with this over the months, and picked up a few little bugs over that time.
So, I spent the weekend tweaking the keyboard mapping, I think I’ve captured all but one ‘weird’ key combination. and, due to the significant hoops I’ve needed to jump through to get this far, I’m leaving that one error in, as it’s actually better than the original C64!
As PETSCII can produce 256 characters , this means I think my key map is 99.6% accurate!
I’ve also switched from PRK to QMK for this key map, there’s a large number of specifically coded. ‘Edge case’ key combinations needed in the matrix to pull off this accuracy. Really, you’d be surprised at how difficult it can be to just get the pi symbol for example!
Going forwards,
I’m making a small tweak for the ‘production’ version of my board,
Previously Left shift, and shift lock have been joined, as per the original 64 matrix.
I’m going to have them both as seperate keys.
This will allow me to do a ‘software’ shift lock toggle and keep left shift normal.
I’ll also try to add an LED status so you can see shiftlock is on
I’ll try to put some jumpers on the board for those that want to use this with an original C64!
Next step, costing this thing to see how much I need to sell it for :-p
Finally, afer YEARS of work, THOUSANDS of hours. One last CAD tweak was needed and the hardware side of this project is FINISHED…
Now, the project switches over to the wrapping up phase. I’ve gotta “cost” this to figure out what I need to sell it for so I can fund a swim in a Scrooge McDuck Money Bin
But, seriously, it’s now about sourcing packaging, accessories to present a ‘final’ item to you!
Once that’s done, it’s breaking out the spreadsheets, working out pricing breaks from suppliers and creating a couple of huge pots of custom pigment to colour resin!.
Once that’s done, it’s figuring out how to sell ém.
Before and after!…Caps Lock and % are now near perfect….the % is 2mm high,. Caps lock about 1.4mmThat’s less than 1/2mm on each side.
That lot doesn’t look like much has changed…..but, quite literally, EVERYTHING under the bonnet on these has changed.
We’re talking about 30 iterations – soon to be 32 to get to the same point that it looks like from last year!. I’ve held off printing the darker keys until I can get this right!
WHY, you may ask? –
well, it’s all about repeatability. If I order 100 PCB’s, I want to do everything possible to ensure I can actually make 100 keyboards.
Till now, adding the keycaps to the switches has been never quite ‘perfect’…during testing, I’d get the odd sticky key here or there, the odd ‘too loose’key here or there.
Here and there for your own projects is fine, But, if a tiny 1% of keys fail / become sticky, and there’s roughly 100 keys per keyboard…..it means almost every Amiga 500 mini keyboard produced will probably have a fault, and need re-working.
So, i’ve added features, made cutouts, tightened some, tolerances, loosened tolerances, edited the keycap text a little to make it clearer…HUNDREDS of hours of tweaking! (and about 4 liters of resin….)
Along the way, i’ve also had to iterate printing times / exposure times / UV light percentages. With such small features, too long an exposure obliterates the text. Too short an exposure fails the supports. Too much UV blurs the text, too little UV gives inconsistent print failures. With the custom pigment, i’ve settled on 55% UV and 1.9s exposure, along with wait times to reduce bubbles and to expose quickly before pigment settles……
The LAST thing I’ve now done -Reduced the switch openings another 0.12mm…now there’s just 0.08mm clearance on the long side of the switches to help keep them straight!.
it’s been a trade off for ‘stickiness’vs springback. Pushing the key down does give a tiny interference with the switch – this’ll loosen over time. BUT, Very soon, I’ll have the darker keys printed, and a PERFECT looking keyboard.
I know it’s taking a long time, but these lessons learned apply to ALL the other mini-keyboards, those’ll progress significantly quicker once this is finished
I’ve now printed a good handful of test keyboards, got them pretty dialled in with the old Standard resin.
I’m now switching to a more robust ABS like resin, and, have discovered some interesting quirks
Who’d have thought that being ‘too airtight’and having too good / close tolerances would have been a problem!
Firstly, here’s a super close-up showing the now *perfect* letter formation with the new resin , I have the exposure almost perfectly dialled in
BUT, there’s a small issue. When fitted to the keyboard, The Keycaps all sit at differing heights.
I did some experimentation and discovered that the new resin and exposure settings are so precise that air and liquid from poor drying are being trapped when pushing the keycap onto the stem of the switch!…
Yep, It’s AIRTIGHT.
When there’s a little more tightness for the stem jamming in the hole, the cavity above the switch stem holds more air / whatever, so it becomes larger, and the keycap sits higher as it can’t be pushed down onto the stem.
I’ve possibly inadvertently created the world’s first air-damped/suspended keycap mechanism?
Who’d have thought it.
The solution of course is to prevent these pockets of air being captured in the first place…….
So, TWO HOURS and 96 manual sketch creations (and a post on Fusion forums to request a feature add to save about 600 mouse movements and clicks in future) I’ve added a small channel next to each keystem hole to ‘let the air out’ whilst i gently mash down the keycaps……
Of course, now this process is all fine tuned, a manufacturer would go and release, what seems on paper to be the PERFECT miniature keyboard keyswitch.
and, another manufacturer releases one that’s better, but not perfect.
So, More keyswitch samples on order, I may eventually have to re-do the whole switch assembly in the future IF these switches are as good as i hope!
(and i’ll re-purpose the 6000 purchased for my Spectrum Next mini project which doesn’t need the new ‘perfect’switch features)
To get those small letters crisp, it’s a juggle of exposure times, wait times and light intensity.
As I’m using heavily pigmented resin, the normal numbers needed to print Dont apply, Ive gotta figure it out, one print at a time!
Here, I’m at 1.8 seconds, 75% power.
I recon 1.7 and 70% will possibly work!
And…then I gotta repeat the exercise when I develop colour for the darker keycaps as, different coloured pigments react in different ways, some are more transparent to UV, some less, so, I may need to increase exposure, and lose detail, then decrease light power to gain detail back and stop the blowouts like you see on the ! On the 1 key!
I’ve always gone a bit over the top to save a buck or two here or there, makes spending a little more fun, and a little less impulsive at the same time!
why buy from Shop X when you can buy from shop Y AND get 3% cashback!
TLDR – I’m owed $173 , so, i’m currently in a dispute that’s not yet settled!
That doesn’t look like much……..but, it’s a solid two weeks of evenings and weekends work over the past month!
What you can see on screen is every key pressed in order…….Then with the commodore key……..then with the shift key!.
I lost count after changing the keymap.c code, compiling, flashing, unplugging the USB from my PC, power cycling the C64 mini, plugging the keyboard in to the mini, switch to basic mode, test, unplug, plug into PC, repeat………over 200 times!!. a few tens of times are probably down to my mediocre coding ability, but that’s a lot of bending down!
I couldn’t have done it without this website at C64os.com
Have been playing a little with AI tools to narrow down on the colours!
Here’s what claude . AI has come up with
Obviously it’s nigh on impossible to tell directly unless you have a fully calibrated PC / Monitor combination. BUT, eyeballing, I’m almost happy enough to go with these suggestions. Need to head to bunnings to obtain some ‘standard’ colours to compare / tune in….
At the end of the day, close enough is good enough here, it doesn’t have to be perfect, as there’s so many yellowed shades out there, and a few different ones also, BUT, if i can just buy a bottle of pigment off the shelf, it makes my job so much easier!
I’m edging towards RAL1013 and RAL7032 myself, just from waving my iphone around a bit nearby
And, here’s some white keycaps now they’re all successfully printing!. Just a few iterations left for exposure settings etc, but, gettin there quickly!
Sorry for the rambling below, kinda wrote things out as they happened!…
I’d wondered why those specific keys had failed, so, fired up the slicer to check if there was any difference, and checking layer by layer i’d picked up that one row looked a little different…….Those ones not in white above were the ones that failed!
Layer 123 has every other key starting the bottom part to print. Those keys don’t start until layer 130!
Doing a quick section analysis in CAD shows that the inner and outer lower parts of those keys are 0.135mm higher than the “correct” keys.
For some reason, before the ‘merging’of the supports, those keys have shifted up a little.
So, the only correct way to fix this is to isolate those keys, split the supports from the keys and move all the keys back down 0.135mm!
Then combine them as one body
Now, import back into Lychee
and, err, there’s two problems now! – the ‘bottom’of the keycaps starts 1 layer differently – I don’t mind that too much.
BUT…now, the supports dont correctly reach the bed – 7 layers short!
So, not only were all the keys shifted incorrectly, the supports were also shifted incorrectly!…..So, back to CAD, select the bottom of the supports and extrude those!……
Have you noted, I do tend to overcomplicate things!….BUT….Even though it Probably would have been easier to check this first, then just move the whole block of keys down 0.135mm, I’d have missed that a few supports weren’t actually connected to the bottom of the keys!
not obvious here , but most of those ‘dots’ aren’t merged and some are just two thin layers seperated by…..0.135mm 😛
This one selected is a good example – this was sent to the printer – it had a tiny gap just above the support, so it was bound to fail!
one last issue to fix..
All the dark keys are in a slightly different plane than the light keys in fusion – so, when bringing them into Lychee together, one they don’t print directly to the bed….Gotta lower all the dark keys by 0.022mm (just over 1 layer!)
And, now finally, bringing back into Lychee
Layer 1 looks good
layer 113 looks good
Slight blip on layer 271, that key (P) shouldn’t be full yet – that’s the hole where the switch goes
another small blip at layer 292, this switch (Nuber 6) should be complete by now!
Everything else is fine though….Those two keys are a minor easy fix, i’ll get a print done, then adjust it later!
So, all in, a fun 3/4 of an hour getting to the root of the problem rather than just assuming a 3D print had failed ”because”……now I gotta wait for 2 hours and 458 layers to see how it’s come out!
Printing off a few copies of the keycaps this weekend!
Commodore 64 Mini and TheA500 Mini keyboards. Just the one colour for now, but they’re already split and ready to be multi coloured. All the darker Amiga keys are right along the top. Wheras the C64 has different coloured Function keys, they’re over on the right.
When these are produced, I’ll defintiley be including additional keycaps in the box for you to practice your letter filling skills!
A good bonus of having the larger printer also – I might be able print do 3 sets of keycap colours at a time for the Amiga one – here’s all the lighter coloured keycaps
and if I optimise a little the layout of the Commodore 64 one – moving the space bars over to the right – I might also be able to make 3 sets of those at the same time also!
That’s 10 Amiga 500 Mini Keyboards and 10 Commodore 64 Mini keyboards…..These SHOULD be ‘final’
These 10 will be used to determine what’s needed to place a much larger order!
I’ll figure out how to get these assembled, kitted up, measure up boxes / packaging and final pricing tiers….AND, importantly, just how / where to sell these things. The old way of ‘seeking me out and emailing’ isn’t needed for these, they’re quite literally plug and play!. you only need a small bit of soldering if you want it to be ‘invisible’
I’m genuinely excited here, after all these years, I still don’t have my own Commodore 64 Mini or Amiga mini with a working keyboard!….Sooon I will, and they will be as perfect as i can make them!
Only a small thing – Switches are at JLCPCB, and i’m doing last checks.
One thing I introduced is a current limiting circuit. For…reasons.
Spent ages designing a nice cut-out-able sub circuit board that could be flipped around and soldered so the new PCB (which mounts flush to the case) can fit…
takes maybe 3-5 minutes of labour to do this……….
I jumped into it, *thinking* that double sided PCB assembly would make things horrendously expensive, too much of a premium so didn’t even actually scientifically evaluate the option.
Well,today I did!
for 5 off PCB’s, having components soldered on BOTH sides – added a 33% premium! – that’s quite a bit, BUT, the bulk of the premium is a setup charge for the tooling. When you order more boards, that charge is spread out more!
BUT….for 30 off, it’s only around 10% more per board to have compnents on both sides….That’s definitley worth it AND, if I order 100 boards, the premium per board will be far less.
So, summary, very quick tweak needed, I’ll be placing a small test order before Christmas, ready for a large run just after Xmas.
and, do note, this discovery applies to ALL the mini keybaords! The Amiga one’s being ordered at the same time!
One of the biggest ‘holdups’has been due to my still learning of best CAD practices. When you have 100 almost identical items in a model and you discover that a minor change is needed on ALL of them….it’s a LOT of clicking to make that change…100 times.
In the case of the A500 Mini, I’d perfected the keycap fitment with the easier C64mini board….mainly by printing, fitting, tweaking, printing….about 40 sets of keycaps all in, and a dozen now broken PCB’s!
I *thought* the A500 keyboard was much better designed…BUT, at some point along the development, I’d broken a link to the original sketch layout that set the dimensions of the keycaps. That was using my old rotatey switches anyway, So, I started over once i found the switches i’m currently using….(did another do-over also, this is the third ‘from scratch’board now 🙂
but, even then I broke it, again…..
But, unlike the C64 mini (many lessons learned), the switches were designed, PERFECTLY placed on a grid this time. BUT, once setup for printing (and breaking the sketch link) the interior diemsions of the keycaps needed tweaking to match the working dimensions.
…with 100 keys on the keyboard, and a quite slow update time (even on my monster 7945HX with 64Gig) that’s over 1000 operations that needed doing, one at a time, by hand, click mouse, drag mouse, press button, type thing, ..extrude, cut, move, push, pull……
Well, it’s done. I’ve gone over the top on the routing on this one also.
The C64 mini one’s less elegant, but should be working perfectly now.
The best bit, I’ve gone and ordered and consigned 6000 switches to JLCPCB. I’m going to get a small batch of both mini keyboards done, and packaged up into ‘as shipped’ products. Then test, test again, i’ll figure out total costs, and how much to charge! and THEN i’ll order everything needed.
6000 switches may seem a lot, but that’s only 3 rolls of switches, enough for 90 TheC64’s. OR less than 60 TheA500 keyboards, realistically, i’ll probably do about 30 of each for the first batch, which will then fund the next ones……..
I recon early 2026 is a go! I’ve been much more careful with the layouts for my other keyboard projects so they’ve been taking far less time!
Says Release Candidate, That’s final, innitProbably should version number this, or, invent a version numbering scheme based on Eminem releasesAmiga keycaps ready to print – colour seperated too!Yeah, you’ve all seen these before, really, very little change other than switch geometry! and CAD built in supports
It’s kinda kicked my bottom a little and really encouraged me to finish the darn Surface mount Keyboard kit – that needs almost no soldering!
What you see above is the CAD model of the kecaps, with PETSCII, with supports baked right into the model. Problem has been, a lot of the supports were copy/pasted, leading to ever so slight overlaps – like shown below in yellow.
Those are fine for protoyping, but when there’s a clearance of under 1/2mm, there’s a chance of a sticky switch. So, now i’m spending the best part of a sunday adjusting EVERY support by hand…..several thousand of them! The green keys above show my progress so far! I’m dreading the A500 ones 😛
once these are done, it’s printing off a few of them, testing, then FINALLY…I can combine them with a final revision PCB and let you guys buy them!