Difference between revisions of "Protocol decoder:Nunchuk"
Jump to navigation
Jump to search
Uwe Hermann (talk | contribs) m |
Uwe Hermann (talk | contribs) m |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Infobox protocol decoder | {{Infobox protocol decoder | ||
| id = nunchuk | | id = nunchuk | ||
| name = Nintendo Wii Nunchuk | | name = Nintendo Wii Nunchuk | ||
| description = Nintendo Wii Nunchuk controller | | description = Nintendo Wii Nunchuk controller | ||
| status = | | status = supported | ||
| license = GPLv2+ | | license = GPLv2+ | ||
| source_code_dir = nunchuk | | source_code_dir = nunchuk | ||
Line 13: | Line 12: | ||
| optional_probes = — | | optional_probes = — | ||
| options = — | | options = — | ||
}} | }} | ||
The '''nunchuk''' protocol decoder supports the [http://store.nintendo.com/webapp/wcs/stores/servlet/ProductDisplay?currency=USD&storeId=10001&productId=160714&categoryId=null&langId=-1&catalogId=10001&ddkey=http:SetCurrencyPreference Nintendo Wii Nunchuk] protocol. | The '''nunchuk''' protocol decoder supports the [http://store.nintendo.com/webapp/wcs/stores/servlet/ProductDisplay?currency=USD&storeId=10001&productId=160714&categoryId=null&langId=-1&catalogId=10001&ddkey=http:SetCurrencyPreference Nintendo Wii Nunchuk] protocol. | ||
== Hardware == | == Hardware == | ||
=== Wii Nunchuk via Buspirate v4 === | === Wii Nunchuk via Buspirate v4 === | ||
Line 27: | Line 22: | ||
The [http://sigrok.org/gitweb/?p=sigrok-dumps.git;a=tree;f=i2c/wii_nunchuk i2c/wii_nunchuk] directory in sigrok-dumps contains a set of example captures of I2C traffic from/to a Nintendo Wii Nunchuk game controller. | The [http://sigrok.org/gitweb/?p=sigrok-dumps.git;a=tree;f=i2c/wii_nunchuk i2c/wii_nunchuk] directory in sigrok-dumps contains a set of example captures of I2C traffic from/to a Nintendo Wii Nunchuk game controller. | ||
The logic analyzer used was a [[Saleae Logic]] (at 1MHz). It is probing the Wii Nunchuk that is connected to a [[Dangerous Prototypes Buspirate]] (v4) that is used as | The logic analyzer used was a [[Saleae Logic]] (at 1MHz). It is probing the Wii Nunchuk that is connected to a [[Dangerous Prototypes Buspirate]] (v4) that is used as I²C master to talk to the Nunchuk controller. | ||
'''Probe setup:''' | '''Probe setup:''' | ||
Line 34: | Line 29: | ||
|- | |- | ||
!Probe | !Probe | ||
! | !I²C pin | ||
|- | |- | ||
Line 49: | Line 44: | ||
<gallery> | <gallery> | ||
File:Wii nunchuk device.jpg | File:Wii nunchuk device.jpg|<small>Device</small> | ||
File:Wii nunchuk connector.jpg | File:Wii nunchuk connector.jpg|<small>Connector</small> | ||
File:Wii nunchuk adapter top.jpg | File:Wii nunchuk adapter top.jpg|<small>Adapter, top</small> | ||
File:Wii nunchuk adapter bottom.jpg | File:Wii nunchuk adapter bottom.jpg|<small>Adapter, bottom</small> | ||
File:Wii nunchuk another adapter top.jpg | File:Wii nunchuk another adapter top.jpg|<small>Another adapter, top</small> | ||
File:Wii nunchuk another adapter bottom.jpg | File:Wii nunchuk another adapter bottom.jpg|<small>Another adapter, bottom</small> | ||
File:Wii nunchuk probe setup.jpg | File:Wii nunchuk probe setup.jpg|<small>Probe setup</small> | ||
File:Wii nunchuk probing.jpg | File:Wii nunchuk probing.jpg|<small>Probing</small> | ||
File:PulseView Nunchuk.png|<small>PulseView decoding Nunchuk and I²C</small> | |||
</gallery> | </gallery> | ||
== Protocol == | == Protocol == | ||
The protocol is layered on top of [[Protocol decoder:i2c|I²C]]. See [http://wiibrew.org/wiki/Wiimote/Extension_Controllers/Nunchuck#Data_Format wiibrew.org] for a detailed description of the commands and registers. | |||
== Resources == | == Resources == | ||
* [http://wiibrew.org/wiki/Wiimote/Extension_Controllers/Nunchuck wiibrew.org: Nunchuck] | |||
[[Category:Protocol decoder]] | [[Category:Protocol decoder]] | ||
[[Category:I2C]] | [[Category:I2C]] |
Latest revision as of 23:04, 2 April 2015
Name | Nintendo Wii Nunchuk |
---|---|
Description | Nintendo Wii Nunchuk controller |
Status | supported |
License | GPLv2+ |
Source code | decoders/nunchuk |
Input | i2c |
Output | nunchuk |
Probes | — |
Optional probes | — |
Options | — |
The nunchuk protocol decoder supports the Nintendo Wii Nunchuk protocol.
Hardware
Wii Nunchuk via Buspirate v4
The i2c/wii_nunchuk directory in sigrok-dumps contains a set of example captures of I2C traffic from/to a Nintendo Wii Nunchuk game controller.
The logic analyzer used was a Saleae Logic (at 1MHz). It is probing the Wii Nunchuk that is connected to a Dangerous Prototypes Buspirate (v4) that is used as I²C master to talk to the Nunchuk controller.
Probe setup:
Probe | I²C pin |
---|---|
3 (red) | SCL |
7 (blue) | SDA |
Photos:
Protocol
The protocol is layered on top of I²C. See wiibrew.org for a detailed description of the commands and registers.