11 EMULATING USB MICE AND KEYBOARDS WITH THE LEONARDO

This chapter shows you how to convert information gathered by the Arduino into keypresses or mouse movements and then send them to a computer to simulate typing on a USB keyboard or to simulate manipulating an external mouse. To do so, you’ll use the Arduino Leonardo development board, which has a few subtle differences from the usual Uno or compatible board.

Along with a micro-USB connector and a complete surface-mount design for all the main components, the Leonardo uses Microchip Technology’s ATmega32U4 microcontroller. This microcontroller has built-in USB communication, so the board ...

Get Arduino for Arduinians now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.