martedì 20 marzo 2012

BeagleBone + Nunchuck (wow!)


I connected a Nintendo Nunchuck to the I²C port of the BeagleBone. No interfaces needed, no soldering required. While I did it in an Arch Linux ARM environment, an Angstrom Linux will work as well.

The Nunchuck is directly connected on pins 19-20 of the "P9" connector of the BeagleBone, while fetching 3.3V (and a few milliamps) from the DC_3.3V pin.

A simple C program just does the open/ioctl initialization and canonical read/write data operations, continuously showing the fetched values. Reading data from an I²C device in Linux is simple as reading data from a file.

Click here for more...

1 commento: