I’m trying to talk to my nunchuk via i2c. I’ve had no problems with my arduino micro so I know the driver is good.
I’ve got two 10k pullup resistors on D0 and D1 connected to 3v3 (one of the two coming out of the top of the spark). I’m using a PCB adapter with Data going to D0 and Clock going to D1 as the docs specify.
I think something is wrong with the voltage, I either get all 255 bytes when reading from the device or get a cycle where a few reads are super low (mostly zeroes) then a few higher and then several of full 255 bytes.
I tried removing and adding pullups, swapping data and clock, trying different ground and 3v3 ports on the core. I’m powering over usb (powered by a laptop) since I’m using serial to monitor.
Any idea if I need external power supplement or am I doing something wrong?
@creationix What is the voltage on your PCB adapter? The Arduino typically runs at 5V (some of the micros run at 3.3v) I have been using the Spark I2C extensively and not experienced any problems - but I run everything at 3.3v
If you are are you using something like this -> http://www.adafruit.com/product/345 then how are you connecting the 3.3v and GND with the core? Also do you have a multimeter to check voltages?
That’s surprising, I would have expected the official one to work and the clone to possibly not work. Oh well, at least now you know your SW and Spark connections are correct.
Yeah, not sure what’s wrong. But with the working clone the multimeter reads much higher on clock. I’m guesing that something is wrong with initialization on the official device.
It’s a shame it’s not working. It was giving much better values on my micro. I’ll try the official device on my micro in hopes it works there.