This setup is composed of two parts: the nunchuck <-> microcontroller interface, and the computer <-> PC interface. I will list some references I used in the course of this project.
Nuchuck I2C interface
[1] http://www.windmeadow.com/node/42?page=1
In this site Chad explains how to hook up the Nunchuck to an Arduino board. He also discusses the protocol and wiring.
[2] http://www.ccsinfo.com/forum/viewtopic.php?t=32753&start=11
Forum post about how to use the nunchuck with a PIC using the I2C libraries of the CCS compiler. Interesting to understand the I2C protocol and write/read addresses. One poster reveals that you can use 3.3V inputs for I2C in certain microcontroller ports.
[3] http://www.wiili.org/index.php/Wiimote/Extension_Controllers/Nunchuk
Discussion of the Nunchuck characteristics, including wiring and data interpretation.
[4] http://www.electro-tech-online.com/robotics-chat/36190-communicating-srf05-using-pic18f452.html
The I2C functions from Microchip's C18 Library weren't working very well, but Pommie's (second post) functions worked perfectly.
Other sites:
http://todbot.com/blog/bionicarduino/
Interesting series of lectures to learn some things about microcontrollers(Arduino) in general and a bit about using the Nunchuck.
PIC18F2550 USB Interface
[5] http://ww1.microchip.com/downloads/en/devicedoc/39632c.pdf
The datasheet.
The 'MCHPFSUSB v1.3 USB Framework' provides example code for the HID mouse. It also includes bootloader software/firmware, which is nice.
Some months ago there was a wiki called 'pic18fusb' that had lots of interesting information. It seems to be gone, but I've found some sites with some of that info:
http://www.piccoder.co.uk/content/view/42/26/
http://forum.microchip.com/printable.aspx?m=162505
http://www.theroboticshomepage.com/joomla1/content/view/17/30/
No comments:
Post a Comment