TheNoOne wrote on 2022-07-23, 18:38:
Great! I bought Pico right after the premiere, but didn't get too much time to play around. I had multple tries with USB/PS2 adapters for mouse or keyboards, but had mixed success, especially with mouse (USB to serial is pretty easy, but PS/2 mouse emulation can be pretty janky). It's really nice that you are working on this project, as such an adapter would be extremely useful (a small and cheap one, no OLED screens, something that just works and can be used in large quantities).
I quickly plotted a board for the transistors and flashed the firmware (BTW I used 3v3 zeners, i think they may be a bit safer). Done some quick testing:
The attachment pico-ps2proto.jpg is no longer available
- Keyboard adapter works with Dell C840 (Pentium 4) laptop. Caps/numlock LEDs don't work (as expected), but the functions do work
- With my i7 6700K PC (it still has PS/2 port) the keyboard adapter didn't work. But the LED on the Pico was flashing as I was pressing the keys. And the Num-lock LED did lit up on the keyboard (?) for some reason
Note: I am using 1 meter long PS/2 cable. It is shielded with ground connected to the shield, but maybe that may be an issue.
I already started designing a PCB with full sized USB (wires from the test pads would need to be routed) that could be piggybacked on the Pico:
The attachment picousbps2.png is no longer available
Do you think it would be possible to adapt the code to also work with USB mouse? And would be combo mouse/keyboard operation be possible (with additional GPIO/transistors)? There is only one USB port on Pico, but I'm thinking about using Logitech Unifying wireless mouse/keyboard combo sets, or some other wireless mouse/keyboard combos. If yes, I could add additional transistors and PS/2 header to the PCB design.
BTW the new wireless Pi Pico W could give some interesting possibilites of remote control of the old machines.