Keyboard converter for IBM terminal keyboard
============================================
It supports PS/2 Scan Code Set 3 and runs on USB AVR chips such like PRJC Teensy.
I tested the converter on ATMega32U4 with 1392595(102keys) and 6110345(122keys).
Source code: https://github.com/tmk/tmk_keyboard/tree/master/converter/terminal_usb
Article: http://geekhack.org/showwiki.php?title=Island:27272
CONNECTION
----------
Keyboard ATMega32U4
----------------------
Data: PD0
Clock: PD1
And VCC and GND, of course. See RESOURCE for keyboard connector pin assign.
BUILD
-----
$ git clone https://github.com/tmk/tmk_keyboard.git
$ cd converter/terminal_usb
$ make
RESOURCE
--------
Soarer's Converter: http://geekhack.org/showwiki.php?title=Island:17458
102keys(1392595): http://geekhack.org/showthread.php?10737-What-Can-I-Do-With-a-Terminal-Model-M
122keys(1390876): http://www.seasip.info/VintagePC/ibm_1390876.html
KbdBabel: http://www.kbdbabel.org/
RJ45 Connector: http://www.kbdbabel.org/conn/kbd_connector_ibmterm.png
DIN Connector: http://www.kbdbabel.org/conn/kbd_connector_ibm3179_318x_319x.png
EOF
I know this hasn't been posted on for a very long time, but I think this is probably the best place to put it... If not, sorry for the necromancing.
I just made this with my arduino leonardo and upon plugging in my keyboard I get... squat.
Is there any way to figure out what is happening? does this use an indicator LED?
I believe PD2 is the leonardo's RX pin and PD5 is its TX pin.
Part number is 1386303.
Hasu requires PD2 (data) and PD5 (clock)
On the ardiono pro micro PD2 is RX and PD5 controls one of the LEDs
I recommend reassigning clock to PD3 (TX) and reflashing.
diff --git a/converter/terminal_usb/Makefile b/converter/terminal_usb/Makefile
index 6154d86..77b8228 100644
--- a/converter/terminal_usb/Makefile
+++ b/converter/terminal_usb/Makefile
@@ -78,9 +78,9 @@ COMMAND_ENABLE = yes # Commands for debug and configuration
# USART is recommended if it is available, others are for reference purpose.
# INT implementation will drop simultaneous key strokes.
#
-PS2_USE_USART = yes # uses hardware USART engine for PS/2 signal receive(recomened)
+#PS2_USE_USART = yes # uses hardware USART engine for PS/2 signal receive(recomened)
#PS2_USE_INT = yes # uses external interrupt for falling edge of PS/2 clock pin
-#PS2_USE_BUSYWAIT = yes # uses primitive reference code
+PS2_USE_BUSYWAIT = yes # uses primitive reference code
ifdef PS2_USE_USART
SRC += protocol/ps2_usart.c
diff --git a/converter/terminal_usb/config.h b/converter/terminal_usb/config.h
index ea5ce62..2349740 100644
--- a/converter/terminal_usb/config.h
+++ b/converter/terminal_usb/config.h
@@ -127,12 +127,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define PS2_CLOCK_PORT PORTD
#define PS2_CLOCK_PIN PIND
#define PS2_CLOCK_DDR DDRD
-#define PS2_CLOCK_BIT 1
+#define PS2_CLOCK_BIT 3
#define PS2_DATA_PORT PORTD
#define PS2_DATA_PIN PIND
#define PS2_DATA_DDR DDRD
-#define PS2_DATA_BIT 0
+#define PS2_DATA_BIT 2
#endif
#endif
I've tried this suggestion, and changed my breadboard to match for my RJ45 122 key board, still with no response. dmesg does detect your converter however and all seems to be running fine on the controller, just messy pin configuration.I had the same behaviour.
Hello, I've flashed the firmware and used the pin arrangements to an RJ45 breakout board, but my keyboard doesn't seem to respond. I set up the pins on the Arduino Micro just as you described in the RESOURCE and with PD0 and PD1 but the keyboard doesn't seem to be working despite this. The arduino is the same one I used to convert an IBM pingmaster 4704 which I also used your firmware for as well as the PD0 and PD1 pins but that keyboard was working perfectly after plugging in.
Any idea what to do?
Quote from: write my essay (https://writemyessay.pro/) on Fri, 19 April 2019, 22:58:10
Hello, I've flashed the firmware and used the pin arrangements to an RJ45 breakout board, but my keyboard doesn't seem to respond. I set up the pins on the Arduino Micro just as you described in the RESOURCE and with PD0 and PD1 but the keyboard doesn't seem to be working despite this. The arduino is the same one I used to convert an IBM pingmaster 4704 which I also used your firmware for as well as the PD0 and PD1 pins but that keyboard was working perfectly after plugging in.
Any idea what to do?
Can this firmware be loaded onto Soarer's converter? I already have a Soarer converter in hand, but I would like to switch to open-source firmware that I can extend...