Has anyone connected a standard USB keyboard to a Propeller chip?
cgervasi
Posts: 7
We had little trouble connecting a PS/2 keyboard to the demoboard, but we can't get a USB keyboard working. We've been trying to connect it to the Vinculum chip on Memory Stick Datalogger. We've been really digging into the USB HID spec. There ought to be a way to do this?
Does everyone who connects a keyboard to Propeller use PS/2?
Does everyone who connects a keyboard to Propeller use PS/2?
Comments
It comes with a pretty purple dongle, which I use, but I bet it would work direct-connect (as a PS/2) per Peter's instructionsg contained in his TACHYON Forth links. It is widely available via the usual PC parts outlets for about $15 USD.
http://www.kensington.com/kensington/us/us/p/1431/K64370A/keyboard-for-life-standard-keyboard-usb-ps2.aspx
You can get the VNC2-DIP modules from Digikey... Just program it with the HID sample and connect the TX out of the VNC2 to a Prop RX pin running fullduplexserial.
But, if you need USB, then I think the VNC2 is the best solution for the Propeller...
My Reason for using USB Instead of PS/2: I need a wireless keyboard.
VNC2: We have been using the VNC1A chip on the Parallax Memory Stick Datalogger. The chip has two ports. We've tried both of them. It was easy getting Propeller talking to a flash drive memory stick (called a BOMs in the USB world). We get some response when we request descriptors from a keyboard. We cannot put the key board in a mode where it spits out keystrokes nor can we poll it for keystrokes. Is VNC2 better than VNC1A at interfacing to keyboards (HIDs)?
On the other hand, I just bought a new keyboard for my Windoze box From Frys Electronics.
Then didn't HAVE any PS2 style keyboards (with the little round connector) in stock...
http://forums.parallax.com/showthread.php?135775
Hey Peter is this really true? - if you know how to connect it up, most usb keyboards will work as ps2?
Am I understanding you correctly as this is a great piece of information, and not at all expected!
Can you direct me to some more detail on this - can you think of an easy test?
Come to think of it I do have an adapter to plug usb keyboard into ps2 socket but always thought there must be some pretty clever stuff going on in there - but I see these for sale for a couple of pounds so maybe....
You say you've done it so it must be true!
Excuse my astonishment as I have been studiously developing code to use arduino to interface ps2 to raspberry pi to use in 'bare metal' as their USB useability in bare metal is still under development.
Seems all I need to do is connect the usb to two i/o pins and do some bit banging.(on the raspberry pi)
(cant find much on google)
Dave H
Once you have a USB socket on your pcb then you are free to implement PS/2 protocol for the keyboards that are compatible or you can make the decision to implement the resource hungry USB protocol using an object from the OBEX. I haven't used one of the USB objects yet but I know if I need to I can.
@cgervasi: I will see what I can do.
Very cool! Which firmware version did you use?
We are struggling with VNC1L's VDAP firmware. We are ordering VNC2 and the programmer now. Thanks!!
and you could either put a PS/2 socket on a board and use an adaptor. Or you could put a USB socket on a board, but it is kind of a fake USB (and maybe it needs a label as such - "keyboard USB" as other USB devices won't work.
Come to think of it, does a similar backwards compatible thing apply to mice? This article (the legacy ports section) seems to suggest they are.
Er, don't you need a USB Host ?
I also see FTDI now have a device called FT311D, which is a pre-programmed Host controller (just happens to match VNC2 pinout, and price ), that targets Android, but could be worth checking into, to see if it can enumerate Std Keyboards, and Touchscreen USB slaves ?
The FT311D seems to spec/drive a single USB, whilst the VNC2 supports Dual USB.
It would appear not. In fact, it would appear that for connecting a USB keyboard and a USB mouse to a propeller chip, all you need is pullup resistors and the existing obex drivers. This is very interesting.
For that to work, presumes your Keyboard has a Default PS/2 mode, for those that do not, clearly it is not a solution.
Still, I have a general impression that new fancy keyboards and mice don't support PS/2.
Would be nice to be wrong about that though...
I think the 64-pin VNC2 makes a great companion for the Propeller. Their stock HID firmware lets you just plug in any keyboard or mouse and right out of the box,
and you just need 1 Prop pin to input serial data... But, you can do a whole lot more, if you're willing to wade into the devoloper tool muck...
Just as an aside... I'm about to finally start seeing if I can hook up a USB camera to it and easy get video on the Prop...
Even if you had USB software with a USB socket you still can't just plug anything in there anyway. Unless it is a very standard HID or mass storage device etc it's unlikely to work. Now, if you only had PS/2 software on a USB socket and you plug any USB device in it just won't work, so no problem really. My strong advice is never put a PS/2 socket on a new design, just use USB sockets and I have a resnet with solder jumpers to select if it's standard PS/2 with pullups or USB.
Hey, cool! An I2C keyboard. That would be great for the prop as there is already an I2C bus there for the eeprom, so effectively you can add a keyboard without using any extra propeller pins. Are your I2C keyboards for sale?