USB Keyboard chapter

The book "Practical Arduino" by Jonathan Oxer and Hugh Blemings covers a range of projects and techniques from basic to advanced. [Book site] [Buy online]
Post Reply
Posts: 14
Joined: Tue Sep 24, 2013 11:58 am

USB Keyboard chapter

Post by GraemeSPa » Thu Dec 12, 2013 6:12 am

In the Practical Arduino book, there is a section on USB keyboard with sketch and circuit to build - only the sketch won't compile on a Eleven R3 - the text admits this and refers to using build 0016 - which i take as being one of the very early IDE builds and i found it on a very old and rusty website called code google. OK - i will try this when i get around to it. I have two questions to ask :

1 the circuit text refers to 3.6V zener diodes to limit the volts to 3.3V - why not just use 3.3V zeners in the first place? ( i got a bag full of these)

2 the book was written in 2009 - has the keyboard.h code not been updated since then to run on later IDE? This project seems to have been forgotten.

I also read that changing the firmware in the usb chip can allow the 11 to emulate a keyboard but as described this process seems a little complex to me - I'm new at this and want to keep the Eleven as my experimenter platform in one piece. Uploading sketches is one thing, but we're not all computer graduates out here. There's also the Leonardo with keyboard commands, but I'd like to get my own arduino going with this.

Freetronics Staff
Freetronics Staff
Posts: 978
Joined: Sun Jul 14, 2013 7:06 am
Location: Melbourne, Australia

Re: USB Keyboard chapter

Post by andrew » Thu Dec 12, 2013 8:33 pm

The author (Jon) is away until next week so we'll go from there.
In the meanwhile the introduction of the Arduino Leonardo (and thus the LeoStick) has made emulating a keyboard or mouse incredibly easy, e.g.:

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest