Welcome, Guest. Please login or register.

Author Topic: Teensy 2.0 Amiga keyboard to USB adapter  (Read 2255 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline hishamkTopic starter

Teensy 2.0 Amiga keyboard to USB adapter
« on: June 08, 2021, 04:23:51 PM »
I had a Teensy 2.0 lying around and decided to build a little Amiga keyboard to USB converter with it; since you know, Teensy is great for such HID stuff.

I might add a few more key maps.

Tested so far with my Amiga 3000 and CDTV keyboards on my Mac and Orange Pi Zero.

https://github.com/hishamk/teensy-amiga-keyboard


« Last Edit: June 09, 2021, 06:03:23 AM by hishamk »
2x A1000, 2x A2000, 1x A3000, 4x A1200, 3x A500, 1x CDTV, 1x CD32, 2x Pegasos II, 1x EFIKA
 

Offline hishamkTopic starter

Re: Teensy 2.0 Amiga keyboard to USB adapter
« Reply #1 on: June 09, 2021, 11:29:08 PM »
Thanks, I've added a bit more info about the connections. I don't have an Amiga 4000 keyboard, but I think they're essentially the same even though they have a different connector. I.e. you'll just have to figure out which pin is which.

As for the Teensy, you could probably use any model with native USB support, but the cheap Teensy 2.0 remains the most economical option. Anything else would be overkill really.

I'll add a bit more to the keymap handling in the next few days, including dynamic switching since I have both US and UK keyboards and would like to be able to switch between the two using a specific key press combo. That being said, adding new keymaps is trivial for someone looking at the code, it's essentially an array look up table ordered as per the Amiga keymap codes paired to their Teensy USB counterparts.

At this time, I'm not planning on this being more than just a nice weekend project to give back to the community. I'll be sure to post something if I decide to build a few units.


2x A1000, 2x A2000, 1x A3000, 4x A1200, 3x A500, 1x CDTV, 1x CD32, 2x Pegasos II, 1x EFIKA
 

Offline hishamkTopic starter

Re: Teensy 2.0 Amiga keyboard to USB adapter
« Reply #2 on: June 10, 2021, 11:33:59 AM »
That document is referring to hardwiring actual keys to the Teensy's I/O pins.

We don't do that, we just use the Teensy to translate the signals from the Amiga to USB, so we can have a 400-key Amiga keyboard and it wouldn't make a difference :) The current US map I use has 104 key code locations.


2x A1000, 2x A2000, 1x A3000, 4x A1200, 3x A500, 1x CDTV, 1x CD32, 2x Pegasos II, 1x EFIKA
 

Offline hishamkTopic starter

Re: Teensy 2.0 Amiga keyboard to USB adapter
« Reply #3 on: June 11, 2021, 12:05:11 PM »
Correct. The 6570 keyboard controller is actually based on the 6500/1, which is based on the 6502 CPU.

I haven't had any issues yet with combo keys.
2x A1000, 2x A2000, 1x A3000, 4x A1200, 3x A500, 1x CDTV, 1x CD32, 2x Pegasos II, 1x EFIKA