2605Views7Replies

Author Options:

Arduino as USB-client? Answered

I was searching for something fun to make with my arduino when I came across this:
http://www.practicalarduino.com/projects/virtual-usb-keyboard
I tried to make it work but it didn't work for me. could that be because I used 3.3V zener diodes?
If you made something according to the link did it work for you?
 

7 Replies

user
steveastrouk (author)2011-12-29

I doubt its the zeners. Did it ennumerate ?

Steve

Select as Best AnswerUndo Best Answer

user

my problem is the computer doesn't recognize the arduino(I should have mentioned).
and what exactly do you main with "Did it ennumerate ?"

Select as Best AnswerUndo Best Answer

user

The process of the computer recognising your device is called ennumeration.

Try reversing the data lines and see what happens.

Its a clever, and very complex piece of code you're playing with.

Steve

Select as Best AnswerUndo Best Answer

user

I finally had some time reversing the data lines.
but now it does nothing, the computer doesn't even see my arduino.

Select as Best AnswerUndo Best Answer

user

You SAID it didn't see your arduino the first time !

I would add some debugging code and run the Arduino's own serial port to your PC as well.

Select as Best AnswerUndo Best Answer

user

ow sorry, the first time the computer said: "device not recognized" (with the error code 43 http://technet.microsoft.com/nl-nl/library/cc725873(WS.10).aspx)

I'll try the debugging but I think you have to help me with that a bit. I'm still quit new in the arduino world.

Select as Best AnswerUndo Best Answer

user

You've picked a particularly complex project to start with then !! The V-usb driver stack is not the easiest thing to steer by the look of it.

There will be other things you need to set in the code I suspect. The REFERENCE project that this is based on is here
http://www.obdev.at/products/vusb/hidkeys.html

The arduino USB library you need is here:
http://code.google.com/p/vusb-for-arduino/downloads/detail?name=vusb-for-arduino-005.zip

Select as Best AnswerUndo Best Answer