Wii Nunchuk problem
fbeek
Posts: 14
Hello everybody,
i have a question about the Wii Nunchuck Object.
I have connected my third party Wii Nunchuck to my self made Propeller Board. Everything else i tried on the board works fine but if i try to get the Data out of my Nunchuck i get always 0xff.The hardware is ok (i checked everything twice and a Serial Eeprom works without any problem on the i2c interface).
On an Atmega Board the nunchuck works fine.
Are there any informations to get it work newer than the one in the Objekt files?
Could it be that the Bus speed is wrong at 80MHz Cpu speed?
Regards
fbeek
i have a question about the Wii Nunchuck Object.
I have connected my third party Wii Nunchuck to my self made Propeller Board. Everything else i tried on the board works fine but if i try to get the Data out of my Nunchuck i get always 0xff.The hardware is ok (i checked everything twice and a Serial Eeprom works without any problem on the i2c interface).
On an Atmega Board the nunchuck works fine.
Are there any informations to get it work newer than the one in the Objekt files?
Could it be that the Bus speed is wrong at 80MHz Cpu speed?
Regards
fbeek
Comments
It would be helpful if you attached an archive of your code. Use File\Archive\Project and attached the zipped files with a post here so we can take a look at it. Also let us know your hardware set up. I'll look at it myself (unless someone bets me to it).
I've used the nunchuck to control my robot. The joystick controlled the robots motion and the accelerometer controlled servos pointing a wireless video camera. It's a lot of fun.
Duane
A couple of suggestions:
At first use 2 dedicated pins for the Nunchuck.
Remember to use 2 10k pull up resistors.
Set the correct pins on the object.
Massimo
I have connected the Nun. on the Pins P26 and P27 WITHOUT external Pull-Ups because there are two 10Ks in the Nun. itself. Thats works with my Atmega board too.
As Software is simply use the Demo of the Nun. Object from the Obex.
I have checked the "protocol" of the object that reads the data and its the same as in my other Board. I think the communication is working because i get -127 when the Nun. is attached to the Board an 128 when it is attached.
I thing there is somewhere a timing problem
fbeek
I had problems because one of my test nunchucks is not working anymore (all the bus are dead low all the time). A new unit solved the problem.
You were right, I didn't need any pull up.
A note:
I also put a couple of 220 ohm resistors between the sensor and the propeller pins, but in that case I wasn't able to read anything. A straight connections worked fine.
Massimo