ABC1
Posts: 29
Joined: Mon Dec 25, 2017 5:02 pm

How to get and use data from the wii remote and nunchuck?

Tue Feb 20, 2018 12:37 pm

B000IMYKQ0-1-lg.jpg
B000IMYKQ0-1-lg.jpg (20.9 KiB) Viewed 569 times
I'm building a robot car using the raspberry pi and I want it to be controlled by gestures using orientation data from the wii remote. I also want the wii nunchuck to control my servo pi camera which will be connected to my raspberry pi - Servo Pi Camera.

I've seen tutorials on how to get raw data from the wii remote but how do I get data from the nunchuck when it is connected to the wii remote as shown in the picture above?

And how do I get gesture and orientation data from the raw data i got from the wii remote? Is it possible for me to use the nunchuck to control the servo pi camera and how would I do it?


ABC1
Posts: 29
Joined: Mon Dec 25, 2017 5:02 pm

Re: How to get and use data from the wii remote and nunchuck?

Tue Feb 20, 2018 1:08 pm

PiGraham wrote:
Tue Feb 20, 2018 12:49 pm
Fot just the nunchuck
https://www.ebay.co.uk/i/263111646305?c ... 043&crdt=0

For the Wimiote:
https://www.youtube.com/watch?v=bO5-FjLe5xE
But would it be possible to get the nunchuck data wirelessly through bluetooth like the wii remote data?

PiGraham
Posts: 3212
Joined: Fri Jun 07, 2013 12:37 pm
Location: Waterlooville

Re: How to get and use data from the wii remote and nunchuck?

Tue Feb 20, 2018 1:24 pm

ABC1 wrote:
Tue Feb 20, 2018 1:08 pm
PiGraham wrote:
Tue Feb 20, 2018 12:49 pm
Fot just the nunchuck
https://www.ebay.co.uk/i/263111646305?c ... 043&crdt=0

For the Wimiote:
https://www.youtube.com/watch?v=bO5-FjLe5xE
But would it be possible to get the nunchuck data wirelessly through bluetooth like the wii remote data?
There is no Bluetooth in the nunchck itself. That's in the Wiimote. You can probably read a connected nunchuck from the Wiimote over BT. Look at nfo on interfacing to Wiimote to see what has been done. Obviously it's possible since the Wii does it.

ABC1
Posts: 29
Joined: Mon Dec 25, 2017 5:02 pm

Re: How to get and use data from the wii remote and nunchuck?

Wed Feb 21, 2018 1:20 pm

What about using the data from the wiimote it's only raw data from the accelerometer and gyroscope, how can I use the data to detect gestures. For the project I'm working on, I'm only concerned with these gestures shown in the video below which are used to control the robot.

https://www.youtube.com/watch?v=rejZmqRrKMc


Are there libraries to do this or do I have to write the code?

PiGraham
Posts: 3212
Joined: Fri Jun 07, 2013 12:37 pm
Location: Waterlooville

Re: How to get and use data from the wii remote and nunchuck?

Wed Feb 21, 2018 2:06 pm

I don't know the details but there are libraries out there for the Wiimote.
Take a look at cwiid.
https://help.ubuntu.com/community/CWiiD
That mentions nunchuck.

PiGraham
Posts: 3212
Joined: Fri Jun 07, 2013 12:37 pm
Location: Waterlooville

Re: How to get and use data from the wii remote and nunchuck?

Thu Feb 22, 2018 4:50 pm

Related, the current issue of The Magpie (#67 )has an article on using the nunchuck on gpio.

Return to “Advanced users”

Who is online

Users browsing this forum: Bing [Bot] and 12 guests