It looks like the Nintendo Wii Remote (Wiimote) has become a staple in many maker toolkits! Case in point: with the help of a Raspberry Pi and the
cwiid Python library, David Pride turned the popular piece of tech into a giant digital graffiti spraycan.
Using the Wiimote with a Raspberry Pi
While it’s no longer being updated and supported, the cwiid library is still a handy resource for creators who want to integrate the Wiimote with their Raspberry Pi.
Over the years, makers have used the Wiimote to control robots, musical instruments, and skateboards; the accessibility of the library plus the low cost and availability of the remote make using this tool a piece of cake…or pie, in this instance.
Using aWiimote, a Wii Sensor Bar, and a large display, David Pride hacked his way to digital artistry wonderment and enabled attendees of the Open University Knowledge Makers event to try their hand at wireless drawing. It’s kinda awesome.
OK, it’s all kinds of awesome. We really like it.
Digital graffiti ingredients
To construct David’s digital graffiti setup, you’ll need:
- A Raspberry Pi
- A Nintendo Wii Remote and a Wii Sensor Bar
- A power supply and DC/DC power converter
- A large display, e.g. a TV or projector screen
- A 30mm × 30mm mirror and this 3D-printed holder
Putting it all together
David provides the step-by-step instructions for setting up the Wiimote and Raspberry Pi on his website, including a link to the GitHub repository with the complete project code. The gist of the build process is as follows:
After installing the cwiid library on the Raspberry Pi, David connected the Pi to the Wiimote via Bluetooth. And after some digging into the onboard libraries of the remote itself, he was able to access the infrared technology that lets the remote talk to the Sensor Bar.
The 3D-printed holder with which David augmented the Wiimote lets the user hold the remote upright like a spray can, while the integrated mirror reflects the IR rays so the Sensor Bar can detect them.
The Sensor Bar perceives the movement of the Wiimote, and this data is used to turn the user’s physical actions into works of art on screen. Neat!
If you’ve used the Nintendo Wiimote for your Raspberry Pi projects, let us know. And, speaking of the Wii, has anyone hacked their Balance Board with a Pi?