MBED as USB HID Keyboard Emulator

-deleted-
24 Oct 2011

Hi Guys,

I have a project I would like to use the mbed for.

I would like to be able to use 1 computer to talk to the mbed, probably through serial communications. I would like to use then have to mbed interpret those commands recieve from computer one and issue usb hid keyboard commands to computer 2 as a way of automated control on computer 2.

Does the mbed already have code/library to do this?

Can anyone give me some pointers I dont really know anything about how usb works in terms of what data is transmitted or how hid works.

The end application I want to be able to run a vb.net program on computer 1, have this vb.net program send keys out on the serial port, have the mbed intrepret those key presses, and then send that keystroke to computer 2, in effect making the mbed act like a software controlled keyboard.]

Thanks.

24 Oct 2011

This is, from a connection/electrical point quit simple.

pins 31,32 go to USB socket -> PC2

note GND is common across PC1, PC2 & MBED.

PC1 Supplies power to MBED,

but PC2 does not need to be connected (assuming PC2 & MBED are never connected with out PC1)

There is a good example of PC Keyboard in the MBED Documentation,

you can simpily add more stuff to it, I think it just sends 'HELLOW' every 2 seconds.

The rest should be quite simple.

Also have a look at MBED Prototype board (v2) from Sparkfun.com (US) or CoolComponents.co.uk From UK :)

Hope this helps

Ceri.