Hello all,
I have an application where I want to use a wii nunchuck to control a 2-axis robot. Everything on the robot side I have completely under control and just need to send it digital and analog inputs which I will derive from the I2C nunchuck data.
So basically the C and Z buttons will map to 2 digital inputs on the robot, and the joystick X/Y positions will map to analog inputs on the robot, and I would like to use a Teensy 2.0 board to do so.
I've read up on quite a bit of reading the I2C data from a nunchuck and know how to code it on a teensy, as well as using the analog outputs (PWM/Filtering) on the teensy. I was just curious if anyone has done something similar or if anyone can confirm/deny that this concept should be possible.
One thing I am unsure of is on the sheet I got from pjrc has 2 sides with a pinout for using C and a different pinout for using Arduino. Using arduino software I see the PWM pins but not the SCL and SDA pins needed for I2C. The C pinout has SCL and SDA pins but no PWM that I can see. Is it not possible to use both I2C and PWM outputs simultaneously?
Any advice/info would be appreciated,
Thanks
I have an application where I want to use a wii nunchuck to control a 2-axis robot. Everything on the robot side I have completely under control and just need to send it digital and analog inputs which I will derive from the I2C nunchuck data.
So basically the C and Z buttons will map to 2 digital inputs on the robot, and the joystick X/Y positions will map to analog inputs on the robot, and I would like to use a Teensy 2.0 board to do so.
I've read up on quite a bit of reading the I2C data from a nunchuck and know how to code it on a teensy, as well as using the analog outputs (PWM/Filtering) on the teensy. I was just curious if anyone has done something similar or if anyone can confirm/deny that this concept should be possible.
One thing I am unsure of is on the sheet I got from pjrc has 2 sides with a pinout for using C and a different pinout for using Arduino. Using arduino software I see the PWM pins but not the SCL and SDA pins needed for I2C. The C pinout has SCL and SDA pins but no PWM that I can see. Is it not possible to use both I2C and PWM outputs simultaneously?
Any advice/info would be appreciated,
Thanks