mirror of
https://github.com/trekawek/mac-plus-ps2.git
synced 2024-12-21 07:29:19 +00:00
Arduino project that allows to connect a PS2 keyboard to Macintosh Plus
doc | ||
mac_plus_ps2 | ||
LICENSE.md | ||
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 (pin 1 of the phone jack is on the left when the wire side is facing toward you):
- GND -> GND.
- +CLK -> pin D6,
- +DATA -> pin D5,
- Vcc -> Vin
Connecting to PS/2 keyboard
For the Mini-DIN 6 socket, pins should be connected as follows (the diagram presents the female socket):
- +DATA -> pin D3,
- (not connected),
- GND -> GND,
- Vcc -> +5V,
- +CLK -> pin D2,
- (not connected)
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.