Interfacing with a USB keyboard
Posted: 27 March 2011, 5:19 AM
When I need to provide a user interface for a microcontroller project, I typically gravitate toward rotary encoders. Specifically, I prefer the types with an integrated pushbutton switch. It's a simple, elegant solution for many projects.
Not this project though.
There is a need to keep the front panel of the interface enclosure sealed to IP64 or better. Under normal operation, no user interaction is necessary, but there are numeric limits that need to be entered by the user during installation.
I am considering forgoing any built in controls, opting instead to use a standard USB keyboard. It would be an easy task to seal the USB port with a rubber plug when not in use.
To keep costs down, I'd like to use a ZX328n since it meets the needs of the application just fine. I am curious if anyone has been down this road before, maybe even without using an interfacing USB device such as one of the FTDI offerings. I have also looked at the MAX3421E. While they both seem to be overkill for just a keyboard, either one would most certainly provide the functionality I need with a minimum of experimentation.
On the topic of experimentation, somewhere around here, I must have at least a dozen USB to PS/2 adapters, which seems to indicate that I could simply treat the USB keyboard as a serial device, forgoing the USB issue altogether.
My cursory internet search turned up several home-brew projects related to the subject, none of which are quite what I am looking for. If anyone would like to point a finger in the right direction, I'd be very grateful.
-Don
Not this project though.
There is a need to keep the front panel of the interface enclosure sealed to IP64 or better. Under normal operation, no user interaction is necessary, but there are numeric limits that need to be entered by the user during installation.
I am considering forgoing any built in controls, opting instead to use a standard USB keyboard. It would be an easy task to seal the USB port with a rubber plug when not in use.
To keep costs down, I'd like to use a ZX328n since it meets the needs of the application just fine. I am curious if anyone has been down this road before, maybe even without using an interfacing USB device such as one of the FTDI offerings. I have also looked at the MAX3421E. While they both seem to be overkill for just a keyboard, either one would most certainly provide the functionality I need with a minimum of experimentation.
On the topic of experimentation, somewhere around here, I must have at least a dozen USB to PS/2 adapters, which seems to indicate that I could simply treat the USB keyboard as a serial device, forgoing the USB issue altogether.
My cursory internet search turned up several home-brew projects related to the subject, none of which are quite what I am looking for. If anyone would like to point a finger in the right direction, I'd be very grateful.
-Don