Author Topic: TMK PS/2 to USB keyboard converter  (Read 134456 times)

0 Members and 1 Guest are viewing this topic.

Offline itisnt

  • Posts: 6
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #50 on: Sun, 20 March 2011, 05:15:15 »
Hey, thanks for the answer, we are quite close ;-)

Now when i press RALT + x, i get: "x<"

But i will  play around with your code.

Daniel

Offline itisnt

  • Posts: 6
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #51 on: Sun, 20 March 2011, 05:18:42 »
Got it, idiot i am, forgot to remove the "host_add_key" ;-)

Works great !!

Offline doublethink

  • Posts: 18
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #52 on: Tue, 29 March 2011, 00:15:18 »


I am working off of this:



EDIT

nevermind I just failed to READ the site. >_<

"A 3.3 volt MCP1825 voltage regulator (shown in gray, full part number MCP1825S-3302E/DB) may be soldered to the bottom side. Three pads allow a solder bridge to configure for 5 volt or 3.3 volt power. The 5 volt pads are linked when the board is shipped."

So its straight 5volt.

Did I miss anything mandatory?  Is there anything there still not needed? :]
« Last Edit: Tue, 29 March 2011, 01:26:54 by doublethink »

Offline Hak Foo

  • Posts: 1235
  • Make America Clicky Again!
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #53 on: Tue, 29 March 2011, 00:33:21 »
I've been pondering a new approach to layering:

Chorded keys versus normal modifier keys:

Store the time of the previous keystroke down.  If you get two keystrokes almost instantly, it's probably a chord.

This would allow for 1) keyboards which send chords for special keys (the Wang boards' extra keys, many diagonal arrow keys) and 2) provide a different approach for if you wanted another shift.  Standard Alt applies if you wait 100ms, Special Alt if you pound them at the exact second.
Home: Tactile Pro 4 PC
Work: Customizer 104
Spare: Quickfire XT, Greens, Retro DSA

Offline doublethink

  • Posts: 18
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #54 on: Tue, 29 March 2011, 02:50:04 »


This is just the visual one, I need to redo it with all the pins in the real positions with them all numbered properly before it can go to pcb phase.

edit:

I'm thinking I should diode isolate the ps/2 power so its impossible for someone to put the ps/2 as the computer side, since that would probably have undesirable effects.
« Last Edit: Tue, 29 March 2011, 12:01:02 by doublethink »

Offline hasu

  • Thread Starter
  • Posts: 3020
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Multimedia key support Added
« Reply #55 on: Wed, 01 June 2011, 01:50:02 »
I added PS/2 multimedia key support to my converter now.
This works on both Teensy and V-USB.

See this for detail.
https://github.com/tmk/tmk_keyboard/issues/1

Thanks,
TMK products:HHKB Alt  ⌨ConvertersAlps64FC660C AltFC980C Alt

Offline hasu

  • Thread Starter
  • Posts: 3020
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Bluetooth support is comming!
« Reply #56 on: Thu, 07 July 2011, 22:33:24 »
I am testing a PS/2 to Bluetooth converter now. At this time I can type keys on by air without major problem.
This is a by-product of my main project, My goal is a Bluetooth HHKB pro :)

Any suggestions and advices are welcome!


This is on initial stage of development now, and I have lots of things to be done.
- mouse key support
- media key support
- nice pairing sequence
- management for multiple paring
- 3.7V Li-po battery charging/DC-DC step-up converter(5V)
- I/O voltage(some keyboard including HHKB needs 5V while 3.3V BT module.)
- power saving
- push them into HHKB case


This picture shows Realforce 101, Arduino, Bluetooth module with voltage converter and 5V USB battery pack.
[ Attachment Invalid Or Does Not Exist ] 20184[/ATTACH]

The Bluetooth module is a Bluegiga WT12 which can interface with UART. WT12 firmware iWRAP offers high level functions like HID profile, pairing and auth by various ASCII commands and responses on the serial line. It is easy to use for hobbyists, I think.
[ Attachment Invalid Or Does Not Exist ] 20185[/ATTACH]

If you are curious about it, visit their site. (To get technical documentation you may need to register.)
http://techforum.bluegiga.com/home

I got info about the module via a nice article of Jeff from keyglove.net, and bought mine from him at inmojo.com. And his keyglove project is very intriguing too.
http://www.keyglove.net/2011/03/24/bluegiga-wt12-bluetooth-module-connection/
http://www.keyglove.net/2011/06/25/wt12-custom-breakout-board-take-2/
http://www.inmojo.com/store/jeff-rowberg/


PS: Code for the Bluetooth is not push to gitihub repositry yet.
« Last Edit: Thu, 07 July 2011, 22:44:08 by hasu »
TMK products:HHKB Alt  ⌨ConvertersAlps64FC660C AltFC980C Alt

Offline Arcanius

  • Posts: 288
  • Location: All over Canada
  • Buckling Spring Lover
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #57 on: Tue, 12 July 2011, 20:20:36 »
Out of curiosity, would one be able to hook up a USB board to the Clock and Data lines, making a USB-USB "converter"?
My real intention may be to put a Noppoo Choc Mini onto it, stripping it of its ridiculous NKRO, and possibly making it work on Mac OS X.

Offline hasu

  • Thread Starter
  • Posts: 3020
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #58 on: Tue, 12 July 2011, 20:37:54 »
My converter supports only PS/2 keyboard, not a USB keyboard unfortunately.
I think it is not possible or very difficult to support USB on Teensy without extra hardware.
You can still replace the Noppoo controller itself with Teensy, but this will need a lot mod work.

As for a USB-USB converter, very initial attempt exists on this thread.
http://geekhack.org/showthread.php?19458-QWERTY-to-Colemak-via-hardware.-USB-key-or-built-in-hardware-firmware
TMK products:HHKB Alt  ⌨ConvertersAlps64FC660C AltFC980C Alt

Offline Arcanius

  • Posts: 288
  • Location: All over Canada
  • Buckling Spring Lover
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #59 on: Tue, 12 July 2011, 21:09:24 »

Offline Soarer

  • * Moderator
  • Posts: 1918
  • Location: UK
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #60 on: Tue, 12 July 2011, 21:42:15 »
Quote from: Arcanius;379196
Weird, it seems that Soarer's adapter can take USB input?
http://geekhack.org/showwiki.php?title=Island:17458&viewfull=1&page=7&do=comments#post343781


Only when the keyboard is dual mode - as in, works with a passive USB to PS2 adapter to put it in PS2 mode.


Offline alaricljs

  • I be WOT'ing all day...
  • ** Moderator Emeritus
  • Posts: 3715
  • Location: NE US
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #61 on: Tue, 12 July 2011, 21:50:05 »
Which by definition leaves out the Noppoo and it's brethren
Filco w/ Imsto thick PBT
Ducky 1087XM PCB+Plate, w/ Matias "Quiet Click" spring-swapped w/ XM Greens

Offline theferenc

  • Posts: 1327
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #62 on: Tue, 12 July 2011, 21:51:05 »
And the Unicomps, Realforces, and HHKB. Likely others, as well.
HHKB Pro 2 -- Custom UNIX layout Unicomp Customizer 101 -- IBM Model M 1391401 (modded to UNIX layout) -- IBM 1397000 (also UNIX layout) -- SSK in UNIX layout -- Model F 122 key in UNIX layout (Soarer USB "native")
 
CST L-TracX trackball -- Kensington Expert Mouse trackball

Offline Soarer

  • * Moderator
  • Posts: 1918
  • Location: UK
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #63 on: Tue, 12 July 2011, 21:56:07 »
Quote from: alaricljs;379211
Which by definition leaves out the Noppoo and it's brethren

Quote from: theferenc;379215
And the Unicomps, Realforces, and HHKB. Likely others, as well.

And your point is...?

Offline theferenc

  • Posts: 1327
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #64 on: Tue, 12 July 2011, 21:58:12 »
I wasn't knocking you Soarer, I was simply pointing out it isn't just the NKRO via USB keyboards that are USB only. Lots of other keyboards that don't have the weirdness are also USB only.

But then, if you have USB, why are you worried about a USB converter that is just a converter, and not a remapper, exactly? That's the question I haven't been able to answer.
HHKB Pro 2 -- Custom UNIX layout Unicomp Customizer 101 -- IBM Model M 1391401 (modded to UNIX layout) -- IBM 1397000 (also UNIX layout) -- SSK in UNIX layout -- Model F 122 key in UNIX layout (Soarer USB "native")
 
CST L-TracX trackball -- Kensington Expert Mouse trackball

Offline Arcanius

  • Posts: 288
  • Location: All over Canada
  • Buckling Spring Lover
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #65 on: Tue, 12 July 2011, 22:07:49 »
In one of the Noppoo threads, somebody claimed to run a Noppoo Choc Mini with a PS/2 adapter and some extra .kexts on his Hackintosh... so then this inputted into a teensy, back out to USB, should be able to work on a Mac....?
The only reason I want any of this is to get a Noppoo Mini or Ducky 9008G2 to run on a Mac.
So these two won't work with a USB-PS/2 passive adapter?
If they would, then one would hope something even simpler like this passive adapter followed by a blue cube would sever the NKRO capabilities...

Offline Soarer

  • * Moderator
  • Posts: 1918
  • Location: UK
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #66 on: Tue, 12 July 2011, 22:10:11 »
Arcanius just got the wrong end of the stick as to what was being asked in the post he linked to, Mr Perfect was...

Quote
... thinking of all the Filcos, Leopolds, Decks, etc that achieve NKRO when plugged into a PS/2 port with one of those USB to PS/2 adapters.

Otherwise, USB-USB would be useful to add functionality, like the hardware Colemak remapping dongle hasu linked to a few posts ago. But the feasibility of it is only just being assessed - them fancy noppoos etc probably still wouldn't work with it :/

(edit: I don't know about choc mini working with ps2 adapter, what I just said was assuming it didn't).
« Last Edit: Tue, 12 July 2011, 22:13:25 by Soarer »

Offline Arcanius

  • Posts: 288
  • Location: All over Canada
  • Buckling Spring Lover
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #67 on: Tue, 12 July 2011, 22:44:15 »
Alright, thanks a lot for your help. :)
I'm thinking of getting a Choc Mini, and although I don't use Mac, I'm curious as to how to make it work with one.
Linux for the win. :)

Offline theferenc

  • Posts: 1327
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #68 on: Tue, 12 July 2011, 22:46:01 »
You know, I wonder if this issue will disappear when 10.7 is released, or not. I'm betting not, because the Apple supplied keyboards work fine, so they aren't likely to change anything. After all, no other keyboard is actually listed as supported.

But we'll see, I suppose.
HHKB Pro 2 -- Custom UNIX layout Unicomp Customizer 101 -- IBM Model M 1391401 (modded to UNIX layout) -- IBM 1397000 (also UNIX layout) -- SSK in UNIX layout -- Model F 122 key in UNIX layout (Soarer USB "native")
 
CST L-TracX trackball -- Kensington Expert Mouse trackball

Offline kohan69

  • Posts: 23
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #69 on: Tue, 12 July 2011, 22:49:13 »
So can this be used to make RCtrl, MenuKey, RWin, RAlt into like volume up, volume down, volume mute, play/pause         keys?

Offline hasu

  • Thread Starter
  • Posts: 3020
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #70 on: Wed, 13 July 2011, 01:58:34 »
Sure, it is possible. No problem.
You can edit layout in keymap.c with keycodes defined in usb_keycodes.h.
Use keycodes VOLU, VOLD, MUTE, MPLY. See source codes for detail.

Ask in this thread if you have any problem.
Get Teensy(or build your board with V-USB) and try it!!
TMK products:HHKB Alt  ⌨ConvertersAlps64FC660C AltFC980C Alt

Offline 7bit

  • Posts: 3629
  • Location: Deskthority.net
  • MX1A-G1DW
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #71 on: Wed, 20 July 2011, 09:16:39 »
Total noob question:

If I get the teensy controller, how do I have to program it to deliver specific scan codes.

How do I connect the keys to it?

Which model number is the one I would need?
Buy key caps here: Round 5
Buy switches here: CherryMX

Offline alaricljs

  • I be WOT'ing all day...
  • ** Moderator Emeritus
  • Posts: 3715
  • Location: NE US
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #72 on: Wed, 20 July 2011, 09:57:26 »
There's no way to unify it all... There are multiple firmware available and they are all written differently and have different features.  There are some that are available as source, and some that aren't (yet).  Examples and instructions are generally found in the wikis pertaining to the different firmware.  There are no truly clear instructions because there is no one way to do this sort of thing.
Filco w/ Imsto thick PBT
Ducky 1087XM PCB+Plate, w/ Matias "Quiet Click" spring-swapped w/ XM Greens

Offline 7bit

  • Posts: 3629
  • Location: Deskthority.net
  • MX1A-G1DW
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #73 on: Wed, 20 July 2011, 10:05:18 »
Quote from: alaricljs;384008
There's no way to unify it all... There are multiple firmware available and they are all written differently and have different features.  There are some that are available as source, and some that aren't (yet).  Examples and instructions are generally found in the wikis pertaining to the different firmware.  There are no truly clear instructions because there is no one way to do this sort of thing.

 
Just wanted to know:
- which controller I really need
- how is it programmed (regardless of program). Do I stick it into USB, run one of these C-programs and I'm done?
- If I have some switches, where do I solder them to the teensy controller?
- The 'wiki'-post just shows how to connect a PS/2 connector to the controller, but is it possible to use it as the controller itself?
Buy key caps here: Round 5
Buy switches here: CherryMX

Offline alaricljs

  • I be WOT'ing all day...
  • ** Moderator Emeritus
  • Posts: 3715
  • Location: NE US
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #74 on: Wed, 20 July 2011, 10:08:34 »
Depends on if you want to do a PCB conversion or PS/2.   Sometimes teensy++ required for PCB conversion since it has more IO lines, otherwise teensy is fine.   teensy firmware is written with a simple program over USB on most any desktop platform.

If you are doing a custom PCB or wire-wrap job like it sounds 7bit, it's usually done as a matrix of switches and PrinsValium's wiki is most helpful there.
Filco w/ Imsto thick PBT
Ducky 1087XM PCB+Plate, w/ Matias "Quiet Click" spring-swapped w/ XM Greens

Offline 7bit

  • Posts: 3629
  • Location: Deskthority.net
  • MX1A-G1DW
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #75 on: Wed, 20 July 2011, 10:22:50 »
Quote from: alaricljs;384018
Depends on if you want to do a PCB conversion or PS/2.   Sometimes teensy++ required for PCB conversion since it has more IO lines, otherwise teensy is fine.   teensy firmware is written with a simple program over USB on most any desktop platform.

If you are doing a custom PCB or wire-wrap job like it sounds 7bit, it's usually done as a matrix of switches and PrinsValium's wiki is most helpful there.

 
OK thanks. Seems you have never done this yourself.

edit:

I've found this:
Using The Teensy Loader on Ubuntu Linux
Still not clear how it will really work...

******** teensy.64bit: Not a text file ********
:-(

Has anybody the source code?
« Last Edit: Wed, 20 July 2011, 10:41:44 by 7bit »
Buy key caps here: Round 5
Buy switches here: CherryMX

Offline alaricljs

  • I be WOT'ing all day...
  • ** Moderator Emeritus
  • Posts: 3715
  • Location: NE US
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #76 on: Wed, 20 July 2011, 10:29:24 »
I'm in the middle of doing it.
Filco w/ Imsto thick PBT
Ducky 1087XM PCB+Plate, w/ Matias "Quiet Click" spring-swapped w/ XM Greens

Offline 7bit

  • Posts: 3629
  • Location: Deskthority.net
  • MX1A-G1DW
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #77 on: Wed, 20 July 2011, 10:58:38 »
Quote from: alaricljs;384034
I'm in the middle of doing it.

 
OK, sorry for being that harsh!

I've found lots of modifications involving a teensy controller, but never seen any information on actually doning it from scratch for total noobs like me!

Heres a much more helpful likt how to get started:

http://www.pjrc.com/teensy/loader_cli.html
And here is the source for a commandline version:
Teensy Loader Command Line, Source Code, Version 2.0

teensy_loader_cli.c is only 840 lines.


Leaves the question open on how to solder single switches to it....


edit: LOL! The programmer must be a perl junkie:
Code: [Select]

   die(&quot;Unknown MCU type\n&quot;);
Buy key caps here: Round 5
Buy switches here: CherryMX

Offline alaricljs

  • I be WOT'ing all day...
  • ** Moderator Emeritus
  • Posts: 3715
  • Location: NE US
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #78 on: Wed, 20 July 2011, 11:07:15 »
How many switches?  the pjrc code does something like 8 switches with one common leg so 9 pins.  If you want a complete keyboard you're going to have to do a matrix and it'd be best to include the diodes.  Prins' wiki has a numpad matrix, you just expand that to however many keys you want and keep the columns+rows count beneath the number of IO pins you have.  I did a 87key matrix with a teensy and pins to spare,  10x9 matrix, so I could even throw 3 more switches somewhere.
Filco w/ Imsto thick PBT
Ducky 1087XM PCB+Plate, w/ Matias "Quiet Click" spring-swapped w/ XM Greens

Offline alaricljs

  • I be WOT'ing all day...
  • ** Moderator Emeritus
  • Posts: 3715
  • Location: NE US
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #79 on: Wed, 20 July 2011, 11:15:57 »
I was admittedly vague on the whole firmware thing... had meant to go back and flesh that out, but I'm working.

There's a small app for writing the firmware to the teensy over USB.  That's what I had referred to, but of course this requires a firmware.  There are several available, they all differ and some do not yet have source available.  I started by playing with the HumbleHacker FW, he used some crazy framework to make it really user friendly but I can't even begin to understand how the code works without learning the framework.  It's nice in that you can just hook up a matrix to some pins, tell the firmware what pins and then the FW helps you map your matrix.  It's perfect for a controller replacement if you can live with its features.

I then moved on to looking at how Hasu and HaaTa did their firmwares to try and learn how to scratch build one with the features I want.  This means knowing more about the matrix up front, no problem since I created it.  Hasu's is not ready for a newb to put together a PCB/matrix version, it's very ready as a dongle for PS/2 tho.  HaaTa's is more ready for a PCB/matrix job.  Either way both will require modifying the code, not just plugging in some pin names/numbers and running with it.  

Soarer's sounds awesome... but there's no code so you can only do (so far) the dongle.


As for compiling (and coding) the firmware.  You can go with Win-AVR as the compiler, and of course use whatever editor you want.  If you're on unix you can set up a cross-compiling gcc for avr.  There is AVRStudio which comes with a compiler or can use Win-AVR as its compiler.  It has a pile of features I know nothing about including a simulator.
« Last Edit: Wed, 20 July 2011, 11:18:18 by alaricljs »
Filco w/ Imsto thick PBT
Ducky 1087XM PCB+Plate, w/ Matias "Quiet Click" spring-swapped w/ XM Greens

Offline 7bit

  • Posts: 3629
  • Location: Deskthority.net
  • MX1A-G1DW
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #80 on: Wed, 20 July 2011, 12:19:22 »
Quote from: alaricljs;384059
I was admittedly vague on the whole firmware thing... had meant to go back and flesh that out, but I'm working.

There's a small app for writing the firmware to the teensy over USB.  That's what I had referred to, but of course this requires a firmware.  There are several available, they all differ and some do not yet have source available.  I started by playing with the HumbleHacker FW, he used some crazy framework to make it really user friendly but I can't even begin to understand how the code works without learning the framework.  It's nice in that you can just hook up a matrix to some pins, tell the firmware what pins and then the FW helps you map your matrix.  It's perfect for a controller replacement if you can live with its features.

I then moved on to looking at how Hasu and HaaTa did their firmwares to try and learn how to scratch build one with the features I want.  This means knowing more about the matrix up front, no problem since I created it.  Hasu's is not ready for a newb to put together a PCB/matrix version, it's very ready as a dongle for PS/2 tho.  HaaTa's is more ready for a PCB/matrix job.  Either way both will require modifying the code, not just plugging in some pin names/numbers and running with it.  

Soarer's sounds awesome... but there's no code so you can only do (so far) the dongle.


As for compiling (and coding) the firmware.  You can go with Win-AVR as the compiler, and of course use whatever editor you want.  If you're on unix you can set up a cross-compiling gcc for avr.  There is AVRStudio which comes with a compiler or can use Win-AVR as its compiler.  It has a pile of features I know nothing about including a simulator.

 
Thanks. For once, I've found the program whith which to upload the machine code to the controller. The next step is to find the compiler to make those files.

It surely will not be Win-AVR, because I'm running GNU/Linux. Open source commandline tools are mandatory. I don't like to fumble with an unreliable GUI.
Buy key caps here: Round 5
Buy switches here: CherryMX

Offline alaricljs

  • I be WOT'ing all day...
  • ** Moderator Emeritus
  • Posts: 3715
  • Location: NE US
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #81 on: Wed, 20 July 2011, 12:22:44 »
avrfreaks.net has a nice quick build script that I hacked to get rid of some unwanted pieces.
Filco w/ Imsto thick PBT
Ducky 1087XM PCB+Plate, w/ Matias "Quiet Click" spring-swapped w/ XM Greens

Offline 7bit

  • Posts: 3629
  • Location: Deskthority.net
  • MX1A-G1DW
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #82 on: Wed, 20 July 2011, 12:35:07 »
Quote from: alaricljs;384100
avrfreaks.net has a nice quick build script that I hacked to get rid of some unwanted pieces.

 
Installing the AVR stuff ...

done.

I really love Debian!

Where can I download the controller;-)
Buy key caps here: Round 5
Buy switches here: CherryMX

Offline Dox

  • Posts: 304
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #83 on: Fri, 02 December 2011, 18:34:42 »
Hey hasu, I sent you a pm but I think this could be useful for some other members so I'll post it here.
I'm currently using your converter with my IBM SSK and it's great but I have a question. The keyboard layout is modded to have a unix layout (theferenc old kb)  and I need to add a scancode for the extra key where the backspace was. When I use hid_listen to check the debug, I can see that it send "6A" but I don't know where to add it to get it to send a real usb scancode.
Otherwise, the converter is working great, awesome work once again!
ErgoDox x2 | DoxKB x2 |   IBM SSK   | HHKB pro2

Offline Dox

  • Posts: 304
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #84 on: Fri, 02 December 2011, 19:06:56 »
I got it sorted out. I looked at the position of the signal in the debug matrix and added the scancode at the right place in the keymap.c. Now I just need t build an enclosure for the converter.
ErgoDox x2 | DoxKB x2 |   IBM SSK   | HHKB pro2

Offline alaricljs

  • I be WOT'ing all day...
  • ** Moderator Emeritus
  • Posts: 3715
  • Location: NE US
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #85 on: Fri, 02 December 2011, 20:36:09 »
Maybe this, if you know someone that is into them :)
Filco w/ Imsto thick PBT
Ducky 1087XM PCB+Plate, w/ Matias "Quiet Click" spring-swapped w/ XM Greens

Offline hasu

  • Thread Starter
  • Posts: 3020
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #86 on: Sat, 03 December 2011, 00:01:32 »
Quote from: Dox;463084
Hey hasu, I sent you a pm but I think this could be useful for some other members so I'll post it here.


Yeah, I usually prefer to discuss in public thread, too. Thanks.
Though I think you already has got a right clue...

Currently my code supports US layout keyboard only, while 0x6A scan code seems to be international one in ISO or JIS layout. I will work on ISO/JIS keyboard support anytime soon.
I believe you need to define you own keymap macro of SSK layout to use the scan code in ps2_usb/keymap.c.

As for case thing, here in Japan FRISK is popular as a small DIY case while Altoids is very rare.
http://yonasu.com/frisk-variety-pack/
TMK products:HHKB Alt  ⌨ConvertersAlps64FC660C AltFC980C Alt

Offline Dox

  • Posts: 304
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #87 on: Sun, 04 December 2011, 21:19:12 »
Shrink wrap will do it for now. The adapter is working great, thanks hasu!
[ Attachment Invalid Or Does Not Exist ] 33960[/ATTACH] [ Attachment Invalid Or Does Not Exist ] 33961[/ATTACH] [ Attachment Invalid Or Does Not Exist ] 33962[/ATTACH]
ErgoDox x2 | DoxKB x2 |   IBM SSK   | HHKB pro2

Offline hasu

  • Thread Starter
  • Posts: 3020
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #88 on: Mon, 05 December 2011, 21:44:50 »
Some keys specific to ISO/JIS keyboard are supported now.
Supported keys are Europe1 and Europe2 for ISO, Ro, Katakana/Hiragana, Yen, Henkan and Muhenkan for JIS.

I have tested this with JIS keyobard, but not with ISO. I don't have any ISO keyboard :)
If you have any problems, plz let me know.
TMK products:HHKB Alt  ⌨ConvertersAlps64FC660C AltFC980C Alt

Offline Dox

  • Posts: 304
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #89 on: Mon, 05 December 2011, 21:51:34 »
There was only one missing scancode (6A) from the unusual split backspace on the keyboard. You can see where I added the scancode on this commit. https://github.com/doxkb/tmk_keyboard/commit/be84d7cec96a197fb60d45b089063087f67632ff
Everything is working fine.
ErgoDox x2 | DoxKB x2 |   IBM SSK   | HHKB pro2

Offline hasu

  • Thread Starter
  • Posts: 3020
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #90 on: Mon, 05 December 2011, 22:01:29 »
The scan code '6A' actually is supported as JIS Yen key.
TMK products:HHKB Alt  ⌨ConvertersAlps64FC660C AltFC980C Alt

Offline Dox

  • Posts: 304
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #91 on: Mon, 05 December 2011, 22:05:20 »
Yeah it's weird that you can find this scancode on an ANSI model m.
ErgoDox x2 | DoxKB x2 |   IBM SSK   | HHKB pro2

Offline hasu

  • Thread Starter
  • Posts: 3020
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #92 on: Mon, 05 December 2011, 22:21:29 »
Model M has also key holes for ISO at the right of left SHIFT and the left of ENTER, right?
I think most Model M components can fits for all layout of ANSI, ISO and JIS(though some keys are missing) only with changing keycaps.
I think this could reduce a lot the cost of manufacturing.

BTW, I don't know JIS Model M exists :)
TMK products:HHKB Alt  ⌨ConvertersAlps64FC660C AltFC980C Alt

Offline luckyy

  • Posts: 2
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #93 on: Thu, 08 December 2011, 19:45:02 »
Hasu,

I must thank you for your work on this converter code.   I've tried a couple ps2->usb converters for my trusty old Dell AT101W, but with limited success, often they would not always register Shift properly, or would just have terrible rollover effects (keys repeating, missing, etc).  I've only been using your code + teensy 2.0 for a few hours, but it's already worlds better!

I am still having one strange issue, and I am not sure what the cause might be, but some of the punctuation chars (? and ; keys) work, but have a large delay in triggering.  Seriously delay, easily 100+ms delay from when I press, to when it actually inputs.   Yet the other keys, all around them, are 100% fine.  Obviously this doesn't happen on another machine that has a direct ps2 port still.

Any thoughts on what that could be?  Is there any diagnostic information I could provide you?   In my build options I have extended keys + mouse keys disabled, NKRO enabled.

Thanks again for a great tutorial and code!

Offline Bongoojingie

  • Posts: 90
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #94 on: Thu, 08 December 2011, 21:21:46 »
I'd love to get mousekeys on my Realforce 87U but I have no idea where I'm even going to start!  Time to read everything I guess!  I'm sure I'll be back here with questions!
Realforce 87U Black Uniform 30g | Filco TKL Black Ergo Clear | Filco TKL White Ergo Clear | Filco TKL Linear R Limited | Custom Dell AT102W w/ White ALPS | HHKB Pro 2 Type-S | TypeNow Solid Blues | SteelSeries 7G

Offline hasu

  • Thread Starter
  • Posts: 3020
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #95 on: Thu, 08 December 2011, 22:25:34 »
Hi, luckyy.

Quote from: luckyy;466791

I must thank you for your work on this converter code.   I've tried a couple ps2->usb converters for my trusty old Dell AT101W, but with limited success, often they would not always register Shift properly, or would just have terrible rollover effects (keys repeating, missing, etc).  I've only been using your code + teensy 2.0 for a few hours, but it's already worlds better!


You have pull-up resistors on you Teensy? Without pull-up resistors it might cause similar problems.


Quote from: luckyy;466791

I am still having one strange issue, and I am not sure what the cause might be, but some of the punctuation chars (? and ; keys) work, but have a large delay in triggering.  Seriously delay, easily 100+ms delay from when I press, to when it actually inputs.   Yet the other keys, all around them, are 100% fine.  Obviously this doesn't happen on another machine that has a direct ps2 port still.


Hmm, I have not tested it much with disabling mousekeys. This option may cause your problem.
Those keys(; and /) on default layer are Fn keys used to change keymaps and which needs some complicated logic. This is problematic part.

Try LShift+RShift+1 to use plain QWERTY keymap without any Fn keys. I think you have no problem there.
You can make this plain keymap as default by editing keymap.c.
TMK products:HHKB Alt  ⌨ConvertersAlps64FC660C AltFC980C Alt

Offline luckyy

  • Posts: 2
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #96 on: Sat, 10 December 2011, 18:16:48 »
Quote from: hasu;466887
You have pull-up resistors on you Teensy? Without pull-up resistors it might cause similar problems.
Hasu, I do not yet have the resistors on my Teensy, however I have not had this problem at all.  I will add the resistors, if I find it to be a problem.


Quote from: hasu;466887
Hmm, I have not tested it much with disabling mousekeys. This option may cause your problem.
Those keys(; and /) on default layer are Fn keys used to change keymaps and which needs some complicated logic. This is problematic part.

Try LShift+RShift+1 to use plain QWERTY keymap without any Fn keys. I think you have no problem there.
You can make this plain keymap as default by editing keymap.c.
[/QUOTE]

You were exactly right, it was the keymap, I made the default the regular QWERTY layout, and now my keyboard is working flawlessly.  No more odd delay on my ? or ; keys.   Thank you so much for the help, and again this great project!   I can now use my favorite keyboards again on newer computers without the unreliability that the average converters have been providing me.

Offline REVENGE

  • Posts: 568
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #97 on: Wed, 11 January 2012, 21:12:09 »
Hey hasu, I just tried to use your converter with my Monterey keyboard and it cannot read input reliably, I get slow response and/or a lot of dropped keys. If you take a look at Soarer's thread, you'll see where he describes some of the problems he's encountered (timing related). Do you think you could look into this?
◕ ‿ ◕

Offline hasu

  • Thread Starter
  • Posts: 3020
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #98 on: Wed, 11 January 2012, 21:37:33 »
Why don't you give URL of the post in Soarer's thread?
TMK products:HHKB Alt  ⌨ConvertersAlps64FC660C AltFC980C Alt

Offline REVENGE

  • Posts: 568
PS/2 to USB keyboard converter for Teensy with mousekeys and NKRO
« Reply #99 on: Wed, 11 January 2012, 21:52:51 »
http://geekhack.org/showwiki.php?title=Island:17458&viewfull=1&page=12&do=comments#post362823

I don't have that particular board, but I believe the controllers are very similar.
◕ ‿ ◕