Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mouse support - Upgrade request #1

Open
insanedude63 opened this issue Feb 9, 2023 · 2 comments
Open

Mouse support - Upgrade request #1

insanedude63 opened this issue Feb 9, 2023 · 2 comments

Comments

@insanedude63
Copy link

I know this project is probably long since abandoned, but I just recently acquired one of these keyboards myself and was interested in using it. Mine came with the mouse attachment though and it would look nice with the combo setup. I noticed the mouse pin isn't even connected. Is there a way to get the mouse configured?

I noticed someone did a similar project for just the mouse at http://www.rosenau-ka.de/ps2sun/ It would be great if these two projects could be combined together. I don't really understand hardware communication, so don't know how I'd wire this in myself.

@jareklupinski
Copy link
Owner

jareklupinski commented Feb 9, 2023

Ah interesting! It has been a while and I don't have the original keyboard I worked with, but happy to help you through adding support for this :)

Looking at that link and https://temlib.org/site/?p=337 , it seems that the mouse connects to the keyboard? Then the keyboard DIN plug contains the mouse data on one of the unconnected pins:

image

For the hardware part, I would start by modifying the symbol of the DIN Socket in the schematic to add the new Mouse-TX pin, then attaching the Mouse-TX pin to another available UART RX pin on the Teensy3.1 (https://www.pjrc.com/teensy/pinout.html 7 or 9) through some level-shifter like the transistor that the Keyboard-TX pin uses (if you are breadboarding, https://www.adafruit.com/product/757 might be easier to use: attach LV to 3.3V and A1-3 to the UART pins on the Teensy side, and HV to 5V and B1-3 to corresponding TX/RX pins on the Keyboard side).

After that is hooked up and the Serial Console shows the Mouse-TX data coming in to the pin correctly, https://www.pjrc.com/teensy/td_mouse.html would be a good place to start translating the serial commands coming from the mouse into td_mouse coordinates, using http://www.rosenau-ka.de/ps2sun/ to unpack the protocol.

@insanedude63
Copy link
Author

Wow, I really wasnt expecting to get a response, thank you!
Yeah, there are two sockets on the keyboard, either can be used for the mouse or connecting to the workstation.

I just got done ordering the parts so we will see in a couple weeks if I can't knock out the software portion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants