mirror of
https://github.com/trekawek/mac-plus-ps2.git
synced 2024-05-28 18:41:29 +00:00
Arduino project that allows to connect a PS2 keyboard to Macintosh Plus
doc | ||
mac_plus_ps2 | ||
README.md |
Arduino-based PS2 -> Macintosh Plus keyboard adapter
This sketch allows to use a PS/2 keyboard with the Macintosh Plus. Mapping between PS/2 keys and Mac keys is stored in the keymap.ino file. Sketch uses a modified version of the PS2Keyboard Library --- all the logic except getScanCode()
method have been stripped.
Connecting to Macintosh Plus
Get a phone cord with RJ10 plug and connect pin as follows:
- Vcc -> Vin
- +DATA -> pin D5,
- +CLK -> pin D6,
- GND -> GND.
The order of RJ10 pins is the same as in the computer connector:
Connecting to PS/2 keyboard
For the Mini-DIN 6 plug, pins should be connected as follows:
- +DATA -> pin D3,
- (not connected),
- GND -> GND,
- Vcc -> +5V,
- +CLK -> pin D2,
- (not connected)
Pinout for the female connector from front (copied from Wikipedia):
References
- Similar project based on stm32f0discovery kit,
- Mac Hardware Info (ftp://ftp.apple.asimov.net/pub/apple_II/documentation/macintosh/Mac%20Hardware%20Info%20-%20Mac%20128K.pdf) - contains the description of the protocol,
- Mac Plus keyboard rawcodes.