Pages: [1]   Go Down
Author Topic: Nunchuck SoftI2C for Arduino Uno  (Read 802 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hopefully you didn't just sigh at my subject title, but I am wondering if it was possible to modify todbot's softI2C code ( http://todbot.com/blog/2010/09/25/softi2cmaster-add-i2c-to-any-arduino-pins/ ) with the existing 'available' and 'receive' functions in the Wire.h library in order to interface my arduino uno with a wii nunchuck. Essentially my project requires data from the accelerometer/gyroscope doohickey to drive a stepper motor, and with all of the analog pins taken by flex sensors for user input I need a way to relocate the nunchuck's I2C pins to a pair of digital pins. Any help would be greatly appreciated!
Logged

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

Bump
Logged

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

I think im in the same boat as you.

my goal is to just read data comeing off the wiinunchuck. i found this -->> http://www.arduino.cc/playground/Main/WiiChuckClass
just haveing trouble getting it to load the error i get is
 "call of overloaded'write(int)' is ambiguous"

have you tried to run this code?

im running an Arduino uno with 1.0 programing software

Logged

Austin, TX
Offline Offline
Faraday Member
**
Karma: 63
Posts: 6055
Baldengineer
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I think im in the same boat as you.
Except that your issue has nothing to do with what the original poster is asking about.

just haveing trouble getting it to load the error i get is
 "call of overloaded'write(int)' is ambiguous"

im running an Arduino uno with 1.0 programing software
1.0 represents a large number of changes to internal libraries such as the Wire library, which this WiiChuckClass is based on.  If you don't know how to update it yourself, I would suggest dropping back down to 0023 until this class gets updated.
Logged

Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

Austin, TX
Offline Offline
Faraday Member
**
Karma: 63
Posts: 6055
Baldengineer
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hopefully you didn't just sigh at my subject title, but I am wondering if it was possible to modify todbot's softI2C code ( http://todbot.com/blog/2010/09/25/softi2cmaster-add-i2c-to-any-arduino-pins/ )

Well I don't think you would modify the softI2C code.  Instead you need to modify the Wii library to use the softI2C, which should be possible.
Logged

Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

Pages: [1]   Go Up
Jump to: