Please do my project for me...

Apr 14, 2011 5 Replies

I'm new to coding for USB embedded devices. I'm looking to build a small device that will emulate keyboard keystrokes and I wonder if there's a good place on the Web to explain the requirements of the data and handshakes the device will have to provide without going into details of the overheads of more complex devices such as hard disks etc.



I'm assuming this device will be in the class of Human Interface Devices (HID) as it will emulate a keyboard. It will be send-only with no data returned by the Host device to it to process other than ACKs and handshakes. I'm planning it to run at USB 1.1 speeds, probably via a minimal PIC or similar low-spec MCU, powering it off the USB connection's 5V supply.


To reply, my gmail address is nojay1 Robert Sneddon

Get the official specs from usb.org, then the classic:

formatting link
. Also
formatting link
,
formatting link
.

One of the sample programs supplied with the IAR STM32 SK development board (based on an ARM Cortex M3) does exactly what you are asking. The board schematics and software can be downloaded from IAR (may be also from Olimex, the manufacturer.)

I would expect to find similar code samples in the application notes of other micros, both from ST and other manufacturers. Lastly, look at the libraries available for popular boards like the arduinos, parallax, mbed, etc.

-- Roberto Waltman

[ Please reply to the group, return address is invalid ]

Here it is, just what you wanted.

Just copy and go:

formatting link

Ug, you can solder, can you ?

hamilton

Just found this:

"Application Note 195 Developing HID USB Device Drivers For Embedded Systems

Keil provides an USB Human Interface Device (HID) example for several ARM-powered evaluation boards. This application note should help you to develop own USB HID projects based on the existing example. It shows several possible modifications to the existing HID example for Evaluation Board MCBSTR9 to help you getting started."

Here:

formatting link

(You may have to register to download it)

-- Roberto Waltman

[ Please reply to the group. Return address is invalid ]

Sneddon

ECIO and Flowcode 4. You'll have it done and working in minutes :)

.
d

rt Sneddon

What, you can't give the guy a link? I suppose you expect him to do his own search... Didn't you read the subject?

Rick

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required