PS/2 mice and keyboards that work with the Propeller
Genetix
Posts: 1,754
Parallax no longer sells a mouse and keyboard that work with the Propeller so what other makes and models work?
Comments
A quick look at eBay finds this, which looks like it can bridge USB-PS2 ?
http://www.ebay.com/itm/USB-to-PS2-Keyboard-and-Mouse-Adapter-StarTech-USBPS2PC-/270806694476?pt=LH_DefaultDomain_0&hash=item3f0d563a4c.
and this may be the same ( certainly cheaper )
http://www.ebay.com/itm/USB-TO-PS-2-PS2-MOUSE-KEYBOARD-CONVERTER-CABLE-ADAPTER-For-PC-Tide-NEW-/161615814111?pt=LH_DefaultDomain_15&hash=item25a10d9ddf
claims
* Plug and Play Installation. No software driver required
* Supports PS/2 devices (keyboard or mouse) and converts to the USB Interface
* Support two PS2 keyboard or two PS2 Mouse (2p model)
* Keyboard - 6-pin Mini Din Female (purple)
* Mouse - 6-pin Mini Din Female (green)
* Compatible for Support Windows 98/SE/ME/2000/XP.
Just to clarify, those would allow a Prop to talk to a PC, as a Keyboard or Mouse emulator, they would not allow a Prop to host a USB mouse, which may have been what you were after when I re-read ....
I am unsure if this is the same for the USB mouse - perhaps someone can chime in. Anyway, once you have a converter for your keyboard, you can easily try it on a mouse.
The simple physical adapters depend on there being inbuilt PS/2 fall-back support in the hardware.
I just tried 2 optical mice with a Green PS/2-USB plug-changer, and that failed to appear as a mouse in both cases.
The USB-PS/2 bridge parts above, should allow PS/2 only devices talk to Host expecting a USB Kbd/Mouse, as they (hopefully) have USB chips inside them.
The only way for a Prop to host a USB-only part, would seem to be via some Host device or Host-Bridge. As that is a niche market, low cost solutions are less likely. I think the FTDI Vinc2 can do Host-bridging.
I like the tiny Logitech wireless dongles but it's a pity they are not PS/2 compatible. But it is possible to load low-speed USB drivers for the Prop to handle USB keyboards and mice directly, so if you always use a USB A connector then at least you have that option, although I believe they soak up precious resources.
If you really need USB support I think it's easier to use chips that have USB built-in although the FTDI parts are expensive for this task, there are many cheap micros out there that could be pressed into service as a USB interface, perhaps with serial port or I2C interface to the Prop.
I see that Logitech still sells PS/2 keyboards and mice but I wondered what other brands worked.
Peter, I like your USB-A idea so how would I do that?
I still hang onto a laptop that has serial, parallel ...
Alan
Use a 1.5K pullup on D- for low-speed USB or have both lines pulled up for PS/2.
USB A PINOUT
1 VBUS
2 D- or PS/2 DAT
3 D+ or PS/2 CLK
4 GND
Looking at Host choices, I find this on FTDI
USB HID to SPI Master Sample Application ROM (VNC2)
This demonstration application will bridge a USB HID class device (e.g. keyboard or mouse) present on the VNC2 USB host port 1 to a SPI interface. Data is transferrable from the HID Class device to the SPI Master port.
Seems to be code for one host port, but the device has 2, so some copy would be needed.
Other side of the link in the code above is SPI, which could change to UART or even PS/2 with some effort.
The new FTDI FT51 may be able to do the same, when they finally ship it.
Though making a card edge for attaching USB is simple, and there is a USB HID object in the OBEX (or was last I looked in 2012), it does require a 6.125MHz crystal if I remember correctly (it may have been 6MHz) to correctly overclock the propeller to work with USB.
Thank you, thank you, thank you.
Always a pleasure to read your gems. Was just searching for this today. Did your ears ring even down under? WOW.
Did I say thank you?
Mike
Don't thank me too quick, the bit about the pullup for USB is correct if signalling a USB host but since the Prop is the host you should pull down the two I/O lines with 15K. Of course for PS/2 you pull up those two lines instead.