Program SX to act as HID device ie keyboard? ??HELP PLEASE
Okay,
Here is what I need to do or find out if it is possible.
Lets say I have 20 standard I/O switches. With the propeller chip, can you detect those switches and program it to send ASCII keyboard codes to the PC via PS/2 or USB.
So pretty much I need to detect when a switch has been closed and in return send the ASCII command to computer. Like making your own keyboard. Also it would have to be able to realize when a key is continuously pressed.
I am at whits end and I know this has to be possible with some kind of PIC.
Please let me know if you have any idea. Thanks
Here is what I need to do or find out if it is possible.
Lets say I have 20 standard I/O switches. With the propeller chip, can you detect those switches and program it to send ASCII keyboard codes to the PC via PS/2 or USB.
So pretty much I need to detect when a switch has been closed and in return send the ASCII command to computer. Like making your own keyboard. Also it would have to be able to realize when a key is continuously pressed.
I am at whits end and I know this has to be possible with some kind of PIC.
Please let me know if you have any idea. Thanks
Comments
What do you know about the "scancodes"?
http://www.asciitable.com/
But it would need to hookup via a usb or ps/2 and be detected as a HID keyboard.
Like this
http://www.asciitable.com/
I think that the SX should be able to knock-out the pulse-trains you require, they are very fast.
Post Edit:
Another thing -- a PS/2 keyboard·sends scancodes and that's different from ASCII codes.
Post Edited (PJ Allen) : 2/7/2008 3:13:53 AM GMT
How would I program the pulse trains?
As·for "how to do it"...
There's a clock signal and the make & break pulse-trains (data).
First find out what you need to do (which keys are you going to simulate, what are their "make/break" criteria), and·"focus, focus, focus --·like a laser beam."· Do more research.
If you're looking for a ready-to-go canned solution, I don't have one for you.
en.wikipedia.org/wiki/PS/2_connector. There are links to other useful information.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
www.iElectronicDesigns.com
Post Edited (Bean (Hitt Consulting)) : 2/7/2008 3:33:08 AM GMT
You'll need to pick one and begin to learn and use the programming tools available for the
platform so you can modify the program to do exactly what you want. Although the SX is
fairly cheap and has nice tools, there are no ready-made examples of what you want. The
Microchip and Atmel devices are cheap, particularly for the configurations used in the sample
projects you've been pointed to. Enjoy yourself. You'll have a great, though occasionally
frustrating learning experience that you will get no matter what platform you choose.
I have made a commercial product that I sell for some serious $$ that uses an SX 28 to do just that. So; it IS possible... just a bunch of work.
Cheers,
Peter (pjv)
arcadecontrols.com/arcade_input.shtml#KeyboardEncoders
I own the keywiz myself. It has a ton of profiles i switch on the fly with batch files, works pretty well.
That, and there is a purple robed wizard that shoots laser beams (freaking laser beams man!) out of his eyes at the chip while it re-programs, how can you go wrong?!