Hi , what i would like is to use a mega ADK or mega + usb host to interface to a standard usb qwerty keyboard
Anyone know if this has been done please ?
Basically i want to be able to send keypresses to a serial port at various baudrates for hacking purposes.
EDIT
Fwiw i currently have the redpark serial terminal on my ipad which i use 'in the field'
I would like to do the same with a proper keyboard.
For now i am only interested in the send hardware.
Robin2
October 30, 2016, 9:10pm
2
A USB keyboard is designed to work with a USB host and an Arduino is not a USB host. There is an Arduino USB Host Shield but I don't know if it is programmed to recognize a USB keyboard.
The USB system is physically simple but very complex behind the scenes.
Have you considered getting an old keyboard with a serial connection?
...R
There are several keyboard projects in the playground
http://playground.arduino.cc/Main/InterfacingWithHardware#keyb
There are lots of PS2 keyboard interfaces and one USB project using a cheap commercial board.
Thanks for the replies.
In searching th e net i have found similar questions with no apparent answers.
PS2 keyboard solutions seem to exist.
USB host shields exist and i have an earlier mega ADK with host USB on board.
Using the USB library example does not seem to work, either it is bust or possibly i have the wrong library.
Waiting on a new board to check.
I am surprised that this has not been addressed and solved before though.
srnet
October 31, 2016, 12:01am
5
Boardburner2:
Basically i want to be able to send keypresses to a serial port at various baudrates for hacking purposes.
What are you trying to hack into ?
Currently its a laser rangefinder, but i would like a generic portable terminal keyboard for talking to legacy ports on old equipment.
Grumpy_Mike:
There are lots of PS2 keyboard interfaces and one USB project using a cheap commercial board.
Plug USB keyboards into microprocessors easily- UsbKbdToSerial
Reading the spec makes me think that specific firmware is needed to talk to a keyboard.
Perhaps that is where i am going wrong.
You need to load the USB keyboard to serial TTL module if that is not the default. It depends on where you want to use the TTL serial output.