Skip to content

A Python script that prints out joystick, accelerometer and button data from a Wii Nunchuk controller over I2C.

Notifications You must be signed in to change notification settings

karaulj/nunchuk-read

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

nunchuk-read

A simple Python script that prints out data from a Nintendo Wii Nunchuk controller in real time.

Background on Nunchuk I2C registers, handshake protocols, etc. were provided primarily through Robert Eisele's detailed writeup.

Setup

Software

This script was tested on a Raspberry Pi 4B and uses the SMBus library, pre-installed on all non-lite versions of Raspberry Pi OS. It can be installed manually with:

sudo apt install python3-smbus python3-dev i2c-tools

And your nunchuk can be detected with:

sudo i2cdetect -y 1

Wiring

Simply connect VCC, GND, SDA and SCL lines between Pi and nunchuk.

About

A Python script that prints out joystick, accelerometer and button data from a Wii Nunchuk controller over I2C.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages