Today, more and more devices are using motion control. From tablets to cellphones to game consoles, people are getting used to interacting with electronics using gestures. Personal computers, however, have lagged behind a bit. Unable to find a suitable gestural controller for my Windows PC on the consumer market, I set out to build my own.
I based my design on the Wii Nunchuk controller for several reasons. First, it’s a versatile, comfortable, well-designed controller; second, it‘s cheap and easy to find; and third, its native I2C serial protocol is easy to interface with Arduino. As a bonus, the connector will accept standard jumper wires, so there’s no need to cut up the cable or use a dedicated adapter.
The Arduino runs a sketch that reads data from the controller and prints to the computer’s serial port. The computer runs a Python script, which receives serial data and emulates a mouse.
the download link for the python script wont work is there a alternative link?
Hello, where can I get those jumper wires?
You can get them from ebay. Get a big cheap pack from China.
No they’re better from the maker shed. the delux jumper wire kit. they really work well.
The download worked for me. I have mirrored the script over on Github:
https://gist.github.com/whyisjake/5340827
Can’t get the pyserialmodule to work. any tips?
I need help I keep on getting a Syntax error any advice.
can I use a duemenilove for this?
dueminalove*
I can’t get the pyserial-2.6 to work. It says “Could not find path specified” (or something like that) in the cmd prompt. And now the script won’t work because it says it can’t find a serial module.
Where is the download for the library?
Will this work for a macbook? Are there any tutorials for this on the Mac OS?
I’m on step 4c. When I press f5 to run NunchukMouse_release, I get the message “Traceback (most recent call last):
File “C:UsersJoeyDownloadsNunchukMouse_release.py”, line 2, in
import math, string, time, serial, win32api, win32con
ImportError: No module named serial”
Can someone please help? I’m so close!
Thanks,
-Joey
I just get
“Please set up the arduino port”
Guys pay attention to the lines of code. Instead of “cd /d c:pyserial-2.6” type in “cd /d C:pyserial-2.6”.Also the part after it doesn’t make sense in the command prompt. The author needs to rewrite that. I think the second part may be “C:Python27pythonsetup.pyinstall”, just a guess don’t quote me on it.
Figured it out. It’s “setup.py install”. Like I said he really needs to rewrite that.
Great article but needs a MEGA update as most of the software is very outdated and some of the links are pooched
urgent reply please!!!!! i pressed f5 but i am unable to figure out what to do after that. can anyone help????? i am just a beginner in arduino and python lanuages
I’m hoping someone here can help, it seems as though I can’t connect to or read the serial port. I’m getting the following error:
Traceback (most recent call last):
File “C:UsersPatrickPypart.py”, line 2, in
import math, string, time, serial, win32api, win32con
ImportError: No module named serial
I’m not using IDLE because it gave me some weird issues, so I switched over to Sublime Text 2, which I’ve seen work, so I don’t think that’s the issue.
We'll assume you're ok with this, but you can opt-out if you wish.
Our websites use cookies to improve your experience while you navigate through the Make: ecosystem. Out of these cookies, some are categorized as essential for the working of basic functionalities of our websites.
We also use third-party cookies that help us analyze and understand how you use our websites. These cookies will be stored in your browser only with your consent. You have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Your choice here will be recorded for all the Make: Community Websites.