In this article, we will show you how you can turn your humble Amiga keyboard into a USB keyboard for use on your PC or raspberry pi. It’s a very tactile board that outperforms my Logitech keyboard with ease! (We wrote this guide using it! ).
Being able to repurpose an Amiga case and keyboard for use with Amibian makes the “virtual” Amiga experience just that much more authentic. Whilst solutions such as the Tynemouth Amiga interface board are great, it’s not the cheapest solution (£50). Why not employ some DIY and make your very own Arduino solution for less than £20.
Note ** No “real” Amigas were hurt in this project. The Amiga 500 case and keyboard used were “saved” from a completely dead machine with an unrepairable motherboard.
What you’ll need
- Leonardo R3 ATMEGA32U4-AU from Amazon – £11
- Arduino Amiga Keyboard script/code / Sketch for the board – Free (credit to tkoecker for his code (we have modified this)
- Dupont wires / Dupont cabling & crimp kit
- Optional – soldering iron
Technically it doesn’t have to be that exact board but it’s what we used and it works. If you’ve had success with another then please let us know in the comments below
Let’s get the Leonardo R3 programmed. Download and install the Arduino IDE from https://www.arduino.cc/en/Main.Software
Open the software and connect the board via USB. Go to Tools > Board and select Leonardo Arduino (as below)
Next, select Tools > Port and select the port used by the board. In our case, it was COM12
Select File > Open and select the Arduino “sketch” you downloaded above
Click the Upload button. This will compile and upload the sketch to the board. You will see that the “L” LED on the board lights up whilst the upload completes (as below highlighted yellow)
Once complete you it will display Done uploading.
With the board programming complete – Let’s wire it up. You might need to be creative depending on what tools / cables you have. If you’re using a Dupont crimp kit please be careful, the connectors can be very sharp and I cut myself a couple of times whilst I was learning how to get a solid crimp. You may opt to buy the cables from Amazon already pre-made – https://amzn.to/38XCo8B
As I like to learn new skills, I opted to make the cables myself. This was probably the most time consuming part of the project.
Amiga Keyboard Wirecolours / pins
The table below shows the wiring from the Amiga keyboard cable to the corresponding pin on the board.
|Pin KB||Colour||Desc||Board Pin|
See below for the pins on the board
Note that you will need to splice pin 4 & 7 together for the 5v connection – a soldering iron is recommended for this. We used female Dupont connectors and the right-angle pins for both the board and keyboard connector side. I did this so the connectors could be mounted underneath the keyboard as I am in the process of creating a pair of keyboard standoffs so it could be used on a PC and still sit at the required angle.
We’ve had quite a bit of feedback about the caps lock light acting a bit weird. If you’re experiencing an issue then take a wire from PIN2 on the board to GND (ground). This improves the caps light issue a great deal. In our new ProMicro boards we build this as standard.
The finished article
With the wiring complete this is the finished unit.
Rather than have the board lose in the Amiga case I will be making a new Pi-500 bracket for it to replace the Tynemouth unit. The board itself features 4 mounting holes so this should be a very simple process.
Does it work?
Well, of course it does. In Windows, both Amiga keys work as Windows keys and you can still do your CTRL-ALT-DELETE. Please note that the Hash key is on the forward-slash key as the keyboard layout on the Amiga is not the same as a standard UK keyboard. If you wanted to you could change the mapping in the board sketch code.
In the Ambian / Amiberry Raspberry Pi emulator the keyboard works flawlessly, all the keys are mapped correctly and it is VERY responsible with no noticeable lag – even the Ctrl – Amiga / Amiga reboot function works as expected. We’re still yet to work out the drive / disk access light. I will be looking at connecting PIN8 from the keyboard to the raspberry pi disk activity GPIO, I’ll be sure to update this if and when we work it out.
I mapped the ( key on the numpad as F12 in the board sketch / code. This allows the Amiberry GUI to be accessed. For those that have studied the code, it has been written with an alternative keymap when you short pin 4 to ground. This allows F1 and F2 to act as F11 and F12 – we preferred to use the numpad ( as that a duplicate of the shift 9 key.
Want us to make you one?
If you really can’t be arsed to make one yourself then we will be offering this item as a complete kit. Note that we will use the male dupont connectors. Check out our listing here as below.
Let’s hear from you!
Have you make this little project. Have you got any improvements / corrections to this article. We’re always looking for feedback on our many projects – good or bad. Please do leave a comment below.