Pages: [1]   Go Down
Author Topic: Help with Aduino UNO + Wii nunchuck + Servo Motors  (Read 1027 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 9
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello, everyone.

I am new to the whole Arduino scene. However due to some college project, I have to take up the versatile and wonderful, yet confusing world that is the Arduino. Thus, I decided to ask for everyone's help. The end project that I must complete Before December is to read the angle at which a Wii nunchuck is held at and then have the Arduino send a signal to a servo motor to move it to the read angle. I don't know if this is a fairly simple project or if it is outlandishly difficult. I know that from all the research I've done, it's proving to be very tricky. The main reason being that I can't even get it going.



I decided that before I tackle the big fish, I wanted to the Arduino to be able to read the values from a Wii nunchuck and read it from the serial monitor. Thus I got the code from http://todbot.com/blog/2008/02/18/wiichuck-wii-nunchuck-adapter-available/comment-page-2/#comments (everyone seems to be deferring me to that site...) and I ran the WiichuckDemo.pde, but all I got for the values were 0 for the accelerometers and 1 for the buttons whether or not I pressed them. Additionally, the program sometimes doesn't even start sometimes. I think that the problem is that I'm using an Arduino UNO and Tod, and pretty much the rest of the internet, uses a Duemilanova. People say that the difference isn't that great, but apparently it's enough to case this code to malfunction. Thus I was hoping that some kind-hearted person would walk me through this mess and perhaps even guide me to my ultimate goal of controlling the servo motors with the nunchucks.

Please and thank you!
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 601
Posts: 48543
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The first question that you'll need to answer is whether you are using a real Wii nunchuck or a cheap Chinese knockoff.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 9
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

We are using a real nunchuck alright.  smiley
Logged

the land of sun+snow
Offline Offline
Faraday Member
**
Karma: 158
Posts: 2882
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I don't know about todbot, but I used the code from this webpage, and it worked the first time,

http://www.windmeadow.com/node/42

One thing to remember is the Nunchuck is a 3.3V device only, and you don't want to power it
off 5V.

Logged

Pages: [1]   Go Up
Jump to: