Author Topic: TMK IBM PC Keyboard Converter  (Read 193021 times)

0 Members and 1 Guest are viewing this topic.

Offline Wingklip

  • Posts: 159
  • Location: Soviet Republic of Australasia
  • I am the one the one the one the one the one
Re: TMK IBM PC Keyboard Converter
« Reply #250 on: Wed, 22 May 2024, 02:01:15 »
With no hid_listen output I guess you are using probably different firmware or just failed to flash?

Is there a way to flash in 2024 that doesn't need expired signed drivers? I can't use test signing mode because... Valorant lol

And also, the drivers provided don't seem to be able to find my little generic pro micro. Force installing drivers also seems impossible for reasons unknown...
Try downloading Default Prebuilt Firmware directly from the open post.
If you 1v1 me in a cage fight I will use an AK-74 for ranged and an IBM model F 122 for melee

Offline Wingklip

  • Posts: 159
  • Location: Soviet Republic of Australasia
  • I am the one the one the one the one the one
Re: TMK IBM PC Keyboard Converter
« Reply #251 on: Wed, 22 May 2024, 02:02:50 »
Pullup is a 1K measuring 0.995k, I have added another resistor in series each but it doesn't make any difference 🤔

5576 Plate Spring by Ricoh, not exactly sure which 002 or 001

I've been testing on a normal keyboard.

There is no HID-Listen output at all, it's not even finding the device 0.0

Apologies if this is a stupid suggestion, but did you use the same software to flash the PS/2 firmware as you did the ADB?  I only ask because I recently assembled a Soarer converter, and while QMK Toolbox claimed the flash was done without errors, it turned out it wasn't flashing at all, and while I was seeing the HID profile built into the default Pro Micro firmware, HID listen didn't see anything. Nothing worked of course.  I had to download avrdude separately and flash with that.

I can't recall what I used to flash the ADB version. Maybe Arduino IDE, because I used to flash Soarer's with Arduino IDE (I forgot how, it's been years
If you 1v1 me in a cage fight I will use an AK-74 for ranged and an IBM model F 122 for melee

Offline Wingklip

  • Posts: 159
  • Location: Soviet Republic of Australasia
  • I am the one the one the one the one the one
Re: TMK IBM PC Keyboard Converter
« Reply #252 on: Thu, 06 June 2024, 01:24:42 »
Pullup is a 1K measuring 0.995k, I have added another resistor in series each but it doesn't make any difference 🤔

5576 Plate Spring by Ricoh, not exactly sure which 002 or 001

I've been testing on a normal keyboard.

There is no HID-Listen output at all, it's not even finding the device 0.0

Apologies if this is a stupid suggestion, but did you use the same software to flash the PS/2 firmware as you did the ADB?  I only ask because I recently assembled a Soarer converter, and while QMK Toolbox claimed the flash was done without errors, it turned out it wasn't flashing at all, and while I was seeing the HID profile built into the default Pro Micro firmware, HID listen didn't see anything. Nothing worked of course.  I had to download avrdude separately and flash with that.

Which parameters did you use for AVR dude btw?
I can't get the damn thing working at all. I have AVRdudess 2.17 open rn, and have a USB C pro micro as well as a micro USB pro micro also.
If you 1v1 me in a cage fight I will use an AK-74 for ranged and an IBM model F 122 for melee

Offline Wingklip

  • Posts: 159
  • Location: Soviet Republic of Australasia
  • I am the one the one the one the one the one
Re: TMK IBM PC Keyboard Converter
« Reply #253 on: Tue, 11 June 2024, 02:57:19 »
308383-0OK!

Update and great news, I found out that the clock and data pins were actually inverted on the round pinout to the PCB mount pinout on the PS/2 port, so it was trying to send DATA to CLOCK and CLOCK to DATA the entire time.
That aside, I did manage to get it working and flashed properly with Arduino IDE finding the COM port with blinkies or whatnot, then flashing the bootloadered port. The 2k pullups seem to be working fine, with my little quad bumblebee setup going strong.

It only took me about a week to figure it all out, but it finally works. Sparkfun's signed driver is hidden somewhere in their github bin folder while I have to set the IDE to "Sparkfun Pro Micro" and likewise the driver thereof. Then, using the verbose readout on the arguments in Arduino IDE's printout area, I copied the entire code for flashing the hex file for blinkies or whatever it was.

The selections in Arduino IDE are Sparkfun pro micro (you need to download the package from the IDE package menu or something) then you also need the sparkfun driver from their official github because the IDE version drivers are outdated.
Then select COM X {Whatever your com port is that pro micro comes up on via the default first program or the reset pin period of 8 seconds}
Then select ATMEGA32U4 5v 16MHz (what I used)
Select ARDUINO AS ISP (ATMEGA32U4)
Finally I dropped it out for the name of the file to be flashed, and it all just copy paste flashes so long as you enter the right com port.
C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17\bin

This was where AVRdude is located when you install Arduino IDE, so it flashes from here without a hitch if you can start a CMD prompt in the address bar.

"C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega32u4 -cavr109 -PCOM4 -b57600 -D "-Uflash:w:C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17\bin\HASUprebIBM.hex:i"

This is the command I parse through command prompt to flash it. Once the reset pin to ground is shorted, press enter on your keyboard, and it will flash successfully.

Cheers all! @Hasu this might help the other pro micro povo scrublords out here to concisely find out how to flash these little buggers.

The keyboards work flawlessly, even the usually non functional alps white taiwanese board I have works fine on this protocol! I've tried it on all the PS/2 ports I could in my office, but only your converter works with it!
« Last Edit: Tue, 11 June 2024, 03:05:58 by Wingklip »
If you 1v1 me in a cage fight I will use an AK-74 for ranged and an IBM model F 122 for melee

Offline DDD80

  • Posts: 16
Re: TMK IBM PC Keyboard Converter
« Reply #254 on: Sat, 02 November 2024, 11:13:11 »
Hi!

I have some questions about the faslhing (before I even go to the hardware problems). I think I have done it correctly, but if not I would be glad for assistance. I have an ItsyBitsy Atmega 32u4.

I have an IBM Model F XT with an old 5 pin connector. I have cloned the repository and in QMK MSYS did according to the instructions, i. e. wrote:

$ cd converter/ibmpc_usb
$ make -f Makefile.atmega32u4 clean
$ make -f Makefile.atmega32u4

I then set the keyboard into flash mode, and used QMK Toobox, and this appeared:

Code: [Select]
Caterina device connected (usbser): Microsoft Seriell USB-enhet (COM5) (239A:000E:0001) [COM5]
Attempting to flash, please don't remove device
> avrdude.exe -p atmega32u4 -c avr109 -U flash:w:"C:\Users\david\qmk_firmware\keyboards\tmk_keyboard\converter\ibmpc_usb\binary\ibmpc_usb_atmega32u4.hex":i -P COM5
>
> Connecting to programmer: .
> Found programmer: Id = "CATERIN"; type = S
>     Software Version = 1.0; No Hardware Version given.
> Programmer supports auto addr increment.
> Programmer supports buffered memory access with buffersize=128 bytes.
>
> Programmer supports the following devices:
>     Device code: 0x44
>
> avrdude.exe: AVR device initialized and ready to accept instructions
>
> Reading | ################################################## | 100% 0.00s
>
> avrdude.exe: Device signature = 0x1e9587 (probably m32u4)
> avrdude.exe: NOTE: "flash" memory has been specified, an erase cycle will be performed
>              To disable this feature, specify the -D option.
> avrdude.exe: erasing chip
> avrdude.exe: reading input file "C:\Users\david\qmk_firmware\keyboards\tmk_keyboard\converter\ibmpc_usb\binary\ibmpc_usb_atmega32u4.hex"
> avrdude.exe: writing flash (27136 bytes):
>
> Writing | ################################################## | 100% 2.01s
>
> avrdude.exe: 27136 bytes of flash written
> avrdude.exe: verifying flash memory against C:\Users\david\qmk_firmware\keyboards\tmk_keyboard\converter\ibmpc_usb\binary\ibmpc_usb_atmega32u4.hex:
>
> Reading | ################################################## | 100% 0.19s
>
> avrdude.exe: 27136 bytes of flash verified
>
> avrdude.exe done.  Thank you.
>
Flash complete

Does this mean that I have done this right? The keyboard does not work, so there has to be something wrong. But how do I try it? Reboot with the USB connected?

If I have done this right, whic is the next step? Pull-up resistors?



Offline Tactile

  • Posts: 1437
  • Location: Portland, OR
Re: TMK IBM PC Keyboard Converter
« Reply #255 on: Sat, 02 November 2024, 18:11:24 »
Hi!

I have some questions about the faslhing (before I even go to the hardware problems). I think I have done it correctly, but if not I would be glad for assistance. I have an ItsyBitsy Atmega 32u4.

I have an IBM Model F XT with an old 5 pin connector. I have cloned the repository and in QMK MSYS did according to the instructions, i. e. wrote:

$ cd converter/ibmpc_usb
$ make -f Makefile.atmega32u4 clean
$ make -f Makefile.atmega32u4

I then set the keyboard into flash mode, and used QMK Toobox, and this appeared:

Code: [Select]
Caterina device connected (usbser): Microsoft Seriell USB-enhet (COM5) (239A:000E:0001) [COM5]
Attempting to flash, please don't remove device
> avrdude.exe -p atmega32u4 -c avr109 -U flash:w:"C:\Users\david\qmk_firmware\keyboards\tmk_keyboard\converter\ibmpc_usb\binary\ibmpc_usb_atmega32u4.hex":i -P COM5
>
> Connecting to programmer: .
> Found programmer: Id = "CATERIN"; type = S
>     Software Version = 1.0; No Hardware Version given.
> Programmer supports auto addr increment.
> Programmer supports buffered memory access with buffersize=128 bytes.
>
> Programmer supports the following devices:
>     Device code: 0x44
>
> avrdude.exe: AVR device initialized and ready to accept instructions
>
> Reading | ################################################## | 100% 0.00s
>
> avrdude.exe: Device signature = 0x1e9587 (probably m32u4)
> avrdude.exe: NOTE: "flash" memory has been specified, an erase cycle will be performed
>              To disable this feature, specify the -D option.
> avrdude.exe: erasing chip
> avrdude.exe: reading input file "C:\Users\david\qmk_firmware\keyboards\tmk_keyboard\converter\ibmpc_usb\binary\ibmpc_usb_atmega32u4.hex"
> avrdude.exe: writing flash (27136 bytes):
>
> Writing | ################################################## | 100% 2.01s
>
> avrdude.exe: 27136 bytes of flash written
> avrdude.exe: verifying flash memory against C:\Users\david\qmk_firmware\keyboards\tmk_keyboard\converter\ibmpc_usb\binary\ibmpc_usb_atmega32u4.hex:
>
> Reading | ################################################## | 100% 0.19s
>
> avrdude.exe: 27136 bytes of flash verified
>
> avrdude.exe done.  Thank you.
>
Flash complete

Does this mean that I have done this right? The keyboard does not work, so there has to be something wrong. But how do I try it? Reboot with the USB connected?

If I have done this right, whic is the next step? Pull-up resistors?

I think you flashed the wrong file. Instead of ibmpc_usb you should be using xt_usb.

The IBM XT keyboard is different protocol than the later IBM PC or AT keyboards. An XT keyboard must be flashed with the XT.
REΛLFORCE

Offline hasu

  • Thread Starter
  • Posts: 3490
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: TMK IBM PC Keyboard Converter
« Reply #256 on: Sat, 02 November 2024, 22:53:54 »
On this IBM PC converter one firmware can support all AT, XT, PS/2 and IBM Terminal keyboard. No dedicated firmwre is needed for XT keyboard and TMK xt_usb is obsolete now.


DDD80,
Seem that you flashed prebuilt firmware file instead of file you built yourself with the 'make' command.
But the prebuilt firmware sitll should work. Check your hardware setup now.

This quote is from first post.
Quote
Trouble Shoot
Check these first if you have a problem.

- Check your wiring 100 times if you are using your own DIY converter
- Pull-up resistors
- Reset pin(for XT keyboards)
- Use TMK 'Default Prebuilt Firmware'



Just download from github or Keymap editor if you are not familiar to build firmware from source code.

https://raw.githubusercontent.com/tmk/tmk_keyboard/refs/heads/master/converter/ibmpc_usb/binary/ibmpc_usb_atmega32u4.hex

https://www.tmk-kbd.com/tmk_keyboard/editor/#ibmpc_usb
« Last Edit: Sun, 03 November 2024, 07:38:11 by hasu »

Offline DDD80

  • Posts: 16
Re: TMK IBM PC Keyboard Converter
« Reply #257 on: Sun, 03 November 2024, 02:28:10 »
Thank you!

With the resistors, I suppose those shall connect 5V to data and clock respectively!? But how should I wire the reset? In the first post the reset is mentioned twice.

I realised also that I probably did things in the wrong order, so now I Will wire first and the flash.

But if I do thus correctly and then flash it, should it work at once? Reboot?

Offline hasu

  • Thread Starter
  • Posts: 3490
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: TMK IBM PC Keyboard Converter
« Reply #258 on: Mon, 04 November 2024, 00:04:33 »
As for Reset connect pin 3 with PB7(or PB6).


AT/XT DIN-5P(180-deg)

Female socket from the front:
     .---. .---.
    /    |_|    \
   /             \    1: Clock
  | 3           1 |   2: Data
  | o  5     4  o |   3: Reset
   \  o   2   o  /    4: GND
    \     o     /     5: 5V
     `--.___,--'


I updated connector diagram for AT/XT on the first post.

Offline DDD80

  • Posts: 16
Re: TMK IBM PC Keyboard Converter
« Reply #259 on: Mon, 04 November 2024, 04:35:00 »
Great, I will do this when I get home tonight.

Maybe another stupid question, but qith regard to the Default Prebuilt Firmware, shall I just download the HEX. file in the link, open it in QMK Tool, enable flash on the keyboard and then press flash!?

And another question: you write in the first post that:

Quote
Pull-up resistors of 1-4.7K Ohm on both Data and Clock line are needed absolutely, without them it won't work in some cases.

- Data    PD0
- Clock   PD1
- Reset   PB7(or PB6 for Pro Micro)

Does this mean that I shall connect a resistor from Data to 5v and another resistor from Clock to 5v and now I understand that I shall connect pin 3 to the reset pin on the ItsyBitsy (just connect, or with a resistor here too?). However, I did cut the old wire, and right now I use a micro USB from the ItsyBitsy to a USB A, which I connect to the computer. Is there a way of connecting the reset wire with this solution, or should I use some kind of adapter from the 180 deg conncetor to a USB?!

Offline DDD80

  • Posts: 16
Re: TMK IBM PC Keyboard Converter
« Reply #260 on: Mon, 11 November 2024, 05:07:48 »
As for Reset connect pin 3 with PB7(or PB6).


AT/XT DIN-5P(180-deg)

Female socket from the front:
     .---. .---.
    /    |_|    \
   /             \    1: Clock
  | 3           1 |   2: Data
  | o  5     4  o |   3: Reset
   \  o   2   o  /    4: GND
    \     o     /     5: 5V
     `--.___,--'


I updated connector diagram for AT/XT on the first post.

Another question (sorry for the spam), but I guess that these issues with the reset have been solved with these for example:

https://www.ebay.com/itm/395192227867?_skw=soarer%27s+converter&itmmeta=01JCDBPB18C36ETAMFDN44RNDW&hash=item5c034ad81b:g:7RAAAOSwMl1jZonU&itmprp=enc%3AAQAJAAAA8HoV3kP08IDx%2BKZ9MfhVJKklN1yoBSvxU83Vm7rRQOk1A49yU9PqbqsOSouizN%2FdbOTH3t1bcE6DPxbE6HfuZVNNLEkwrIarSJlNvM6UtiPSk%2Bzn9rplAX7HFuucZCUcYRwZrtVaC9XyUyfayoZX%2BpPFMlfctaT0KTOb90XhQAnVI%2FtA9%2B%2FONUV%2FpnBsgPU3m9uqSMqD2xbUy8VMCVjrjNXchX%2FZulQPRxEM5d14aHdkxSX95g8uVOT1Isv8QiLwfHUUAXjFrDHvAVoJAf9yJtgKBAnhEjBwKqWYoFBANx8B3qHuzOxMQxeYXZkDY4G4Bw%3D%3D%7Ctkp%3ABk9SR96w2avjZA

Offline hasu

  • Thread Starter
  • Posts: 3490
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: TMK IBM PC Keyboard Converter
« Reply #261 on: Mon, 11 November 2024, 06:31:22 »
I cannot say anything about that for sure, its schematic doesn't seem to be available.

If you want prebuilt converter why don't  you buy from me? :D
https://geekhack.org/index.php?topic=72052.0

Offline DDD80

  • Posts: 16
Re: TMK IBM PC Keyboard Converter
« Reply #262 on: Mon, 11 November 2024, 07:24:42 »
I cannot say anything about that for sure, its schematic doesn't seem to be available.

If you want prebuilt converter why don't  you buy from me? :D
https://geekhack.org/index.php?topic=72052.0

Maybe I do that, but I still would like to try it myself, but there is the question about the reset in my previous post and how to wire it. I guess I must do something wrong there, since it does not work.

Or maybe a more relevant question is if it is possible to do it this way, with the converter first and then old cable + adapter to the computer. It looks like all those models out there requires that the old cable goes from the keyboard to the converter via USB to the computer.
« Last Edit: Mon, 11 November 2024, 07:34:31 by DDD80 »

Offline hasu

  • Thread Starter
  • Posts: 3490
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: TMK IBM PC Keyboard Converter
« Reply #263 on: Mon, 11 November 2024, 09:22:16 »
I cannot say anything about that for sure, its schematic doesn't seem to be available.

If you want prebuilt converter why don't  you buy from me? :D
https://geekhack.org/index.php?topic=72052.0

Maybe I do that, but I still would like to try it myself, but there is the question about the reset in my previous post and how to wire it. I guess I must do something wrong there, since it does not work.

Did you check debug prints with hid_listen?  Post what you get  here, it may help.


Quote
Or maybe a more relevant question is if it is possible to do it this way, with the converter first and then old cable + adapter to the computer. It looks like all those models out there requires that the old cable goes from the keyboard to the converter via USB to the computer.

What do you mean by 'old cable' actually?

I cannot know how you wired on your converter. You can post some closeup photos of it so that I can check its wiring.

Also photo of XT keyboard that you are working on may help.

Offline DDD80

  • Posts: 16
Re: TMK IBM PC Keyboard Converter
« Reply #264 on: Mon, 11 November 2024, 10:11:27 »
I cannot say anything about that for sure, its schematic doesn't seem to be available.

If you want prebuilt converter why don't  you buy from me? :D
https://geekhack.org/index.php?topic=72052.0

Maybe I do that, but I still would like to try it myself, but there is the question about the reset in my previous post and how to wire it. I guess I must do something wrong there, since it does not work.

Did you check debug prints with hid_listen?  Post what you get  here, it may help.


Quote
Or maybe a more relevant question is if it is possible to do it this way, with the converter first and then old cable + adapter to the computer. It looks like all those models out there requires that the old cable goes from the keyboard to the converter via USB to the computer.

What do you mean by 'old cable' actually?

I cannot know how you wired on your converter. You can post some closeup photos of it so that I can check its wiring.

Also photo of XT keyboard that you are working on may help.

I may have got some of the wiring wrong... so just to be sure: you write...

- Data    PD0
- Clock   PD1
- Reset   PB7(or PB6 for Pro Micro)

...but according to the Internet - at least for ItsyBitsy - the data is PD1 and the clock is PD0, for example this: https://medesign.seas.upenn.edu/index.php/Guides/Atmega32u4-pinout

I will get back later tonight (CET), thank you very much for your answers so far. I think also that I have now uinderstood what you mean by the reset, that it should be a resistor from 5V to in this case pin number 10 or 11, which are PB6 or PB7 om an ItsyBitsy.

With "old cable" I meant that it looked as if most of the keyboards I saw had the original cable connected to a converter, and from the converter to the computer. I cut the cable since it looked rugged and connected from the connector to the breadboard/itsybity and then from there to the keyboard.

Offline hasu

  • Thread Starter
  • Posts: 3490
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: TMK IBM PC Keyboard Converter
« Reply #265 on: Mon, 11 November 2024, 22:52:47 »
I may have got some of the wiring wrong... so just to be sure: you write...

- Data    PD0
- Clock   PD1
- Reset   PB7(or PB6 for Pro Micro)

This is correct. You should use this info for wiring.

Quote
...but according to the Internet - at least for ItsyBitsy - the data is PD1 and the clock is PD0, for example this: https://medesign.seas.upenn.edu/index.php/Guides/Atmega32u4-pinout

You read what the page means wrongly.
No step by step guide for beginners is available unfortunately.  You will have to learn to get basic knowledge about keyboard and MCU to make this converter yourself.


Quote
I will get back later tonight (CET), thank you very much for your answers so far. I think also that I have now uinderstood what you mean by the reset, that it should be a resistor from 5V to in this case pin number 10 or 11, which are PB6 or PB7 om an ItsyBitsy.
Yes, use 10 or 11 pin for reset line.


Quote
With "old cable" I meant that it looked as if most of the keyboards I saw had the original cable connected to a converter, and from the converter to the computer. I cut the cable since it looked rugged and connected from the connector to the breadboard/itsybity and then from there to the keyboard.

You cut original keyboard cable? I'm still not sure what you are doing. Post photos.
« Last Edit: Mon, 11 November 2024, 23:01:56 by hasu »

Offline DDD80

  • Posts: 16
Re: TMK IBM PC Keyboard Converter
« Reply #266 on: Tue, 12 November 2024, 01:26:12 »
Here is a photo of the arrangement, hopefully you can see how the cables are wired.

From the pcb on the board go the four wires. I have not changed these, so they should be correct.

Red goes into minus on the breadboard, brown to +. Then the red goes through the red jumper cable to the GND pin on the ItsyBitsy. + goes to 5V.

Black goes to number 22 on the breadboard via the blue jumper to SCL (clock).

White goes to number 26 on the breadboard via the green jumper to SDA (data).

I also have three resistors, all going from 5V to data, clock and pin number 10. And then a micro usb cable from the Itsy to the computer.

But as I said earlier, with this "solution" I guess there is something wrong with the reset pin on the cable and the wire without coating.

After this, I flash with unimap.hex and that seems to work, shut down computer and then restart with the model F plugged in.

And yes, I cut the old cable. This might have been a bad idea, but if it is impossible to make it work I just buy one of your converters and solder the original cable back again.

310932-0
« Last Edit: Tue, 12 November 2024, 04:21:43 by DDD80 »

Offline DDD80

  • Posts: 16
Re: TMK IBM PC Keyboard Converter
« Reply #267 on: Tue, 12 November 2024, 14:03:01 »
And here are some photos of the keyboard. As far as I can see it is the Model 2 described in one of the links in the thread.

Offline hasu

  • Thread Starter
  • Posts: 3490
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: TMK IBM PC Keyboard Converter
« Reply #268 on: Tue, 12 November 2024, 21:31:24 »
And here are some photos of the keyboard. As far as I can see it is the Model 2 described in one of the links in the thread.

agree. It is type-2 XT keyboard, you don't need to wire reset line.

Offline hasu

  • Thread Starter
  • Posts: 3490
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: TMK IBM PC Keyboard Converter
« Reply #269 on: Tue, 12 November 2024, 21:50:10 »
Here is a photo of the arrangement, hopefully you can see how the cables are wired.

From the pcb on the board go the four wires. I have not changed these, so they should be correct.

Red goes into minus on the breadboard, brown to +. Then the red goes through the red jumper cable to the GND pin on the ItsyBitsy. + goes to 5V.

Black goes to number 22 on the breadboard via the blue jumper to SCL (clock).

White goes to number 26 on the breadboard via the green jumper to SDA (data).

Is your itsybitsy 5V version? 3V version won't work.

And IBM XT keyboard requires good power supply, use VBUS pin instead of 5V pin on itsybitsy. Using VBUS pin you can supply higher voltage and the keyboard can be stabilized.
(You can check itsybitsy schematic to learn about its power routing. https://learn.adafruit.com/assets/49818)


Pin name SCL and SDA should be used only when those pins are configurated as I2C(TWI) mode in the MCU. In this converter firmware the pins is configured as GPIO, not I2C.
This makes you confused for sure. I cannot explain this in deail here.

Just foget them and just use PD0 and PD1 for the MCU pin names. And just wire as first post describes.

- Data    PD0
- Clock   PD1

I cannot tell from the pic, but you wired keyboard Data and keyboard Clock line inversely, perhaps?.



Quote
I also have three resistors, all going from 5V to data, clock and pin number 10. And then a micro usb cable from the Itsy to the computer.

But as I said earlier, with this "solution" I guess there is something wrong with the reset pin on the cable and the wire without coating.

After this, I flash with unimap.hex and that seems to work, shut down computer and then restart with the model F plugged in.

And yes, I cut the old cable. This might have been a bad idea, but if it is impossible to make it work I just buy one of your converters and solder the original cable back again.


pull up resistors seems to be good. You don't need pull-up for Reset (10 pin on itsybitsy).
And itsybitsy RST pin should not be used for this converter, you will have to remove red jumper wire.



If you still have problem it is time to check debug prints with hid_listen.



« Last Edit: Tue, 12 November 2024, 22:19:15 by hasu »

Offline DDD80

  • Posts: 16
Re: TMK IBM PC Keyboard Converter
« Reply #270 on: Thu, 14 November 2024, 05:03:42 »

If you still have problem it is time to check debug prints with hid_listen.

Heureka and a big Thank you for your patience and assistance! I would not say that it is working, but at least something happends. There is a stream of keys coming from it, so I would probably have to debug.

And yes, my Itsy is 5v. I obviously had mixed the Data and Clock, and then I changed the + to the VCC, removed the resistor from pin 10 (the red jumper is for getting the keyboard into flash mode) and now I can almost write on it.

I don't know however if the computer shall recognize the keyboard immediately at start, that takes a little while. Anyway, I have to learn to debug now.

Offline DDD80

  • Posts: 16
Re: TMK IBM PC Keyboard Converter
« Reply #271 on: Thu, 14 November 2024, 08:30:07 »
Update. All of a sudden everything just works smoothly, so I guess it sorted itself in some way. Now I just have to edit some keys to make it work better in Swedish.

Again, thank you for your answers!

Offline DDD80

  • Posts: 16
Re: TMK IBM PC Keyboard Converter
« Reply #272 on: Fri, 22 November 2024, 09:37:46 »
And here are some photos of the keyboard. As far as I can see it is the Model 2 described in one of the links in the thread.

agree. It is type-2 XT keyboard, you don't need to wire reset line.

One more question, I think I had done something with the pcb, so I bought a new one and now it is working smoothly.

But I would like to have a few more keys that I cannot find in the keymap editor, for example > and <. Is there a simple way to add these, or do I have to code or something similar?

Offline hasu

  • Thread Starter
  • Posts: 3490
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: TMK IBM PC Keyboard Converter
« Reply #273 on: Fri, 22 November 2024, 20:54:38 »
The code you're referring is described as "Non-US \and |" in USB HID Usage Table specification, which named after symbol in UK layout. It is usually located between Left Shift and Z key on ISO keyboard layout.

https://github.com/tmk/tmk_keyboard/wiki/USB:-HID-Usage-Table See Note 9 and 10.

 In TMK Keymap Editor the code is referred as "ISO \" or "Non-US Backslash" you can find in "Main" tab of "Action codes".

EDIT: In IBM XT keyboard "\" key that located between Left shift and Z is assigned to normal US backslash by default in TMK Keyboard Editor. It is due to historical reason and compatibility with later Enhanced keyboard.
« Last Edit: Sat, 23 November 2024, 00:41:46 by hasu »

Offline DDD80

  • Posts: 16
Re: TMK IBM PC Keyboard Converter
« Reply #274 on: Sat, 23 November 2024, 15:18:37 »
The code you're referring is described as "Non-US \and |" in USB HID Usage Table specification, which named after symbol in UK layout. It is usually located between Left Shift and Z key on ISO keyboard layout.

https://github.com/tmk/tmk_keyboard/wiki/USB:-HID-Usage-Table See Note 9 and 10.

 In TMK Keymap Editor the code is referred as "ISO \" or "Non-US Backslash" you can find in "Main" tab of "Action codes".

EDIT: In IBM XT keyboard "\" key that located between Left shift and Z is assigned to normal US backslash by default in TMK Keyboard Editor. It is due to historical reason and compatibility with later Enhanced keyboard.

Ah, that was simple enough even for me. Thank you again!

Offline Mikhail

  • Posts: 93
  • Location: Moscow, Russia
Re: TMK IBM PC Keyboard Converter
« Reply #275 on: Mon, 25 November 2024, 17:33:40 »
Hello Hasu! Can you add hold\tap LT feature?

Ah i find!!
« Last Edit: Mon, 02 December 2024, 14:09:00 by Mikhail »