i2c, wire.h and digital pin problems
all,
i've got arduino working on i2c wii nunchuck , blinkm using wire.h described todbot.
http://todbot.com/blog/2008/02/18/wiichuck-wii-nunchuck-adapter-available/
analog pins 2,3,4,5
separately, have 74hc595 working using shiftout instructions.
http://www.arduino.cc/en/tutorial/shiftout
5v, gnd, digital pins 8, 11, 12
i'd able send signals 595 based on values nunchuck. problem is, when plug them both in , run program includes wire.h library, garbage out pins 595, , don't readings nunchuck. for example, i'm not connecting 595 pins program.
any ideas why wire.h or i2c code interfering analog pins?
i've got arduino working on i2c wii nunchuck , blinkm using wire.h described todbot.
http://todbot.com/blog/2008/02/18/wiichuck-wii-nunchuck-adapter-available/
analog pins 2,3,4,5
separately, have 74hc595 working using shiftout instructions.
http://www.arduino.cc/en/tutorial/shiftout
5v, gnd, digital pins 8, 11, 12
i'd able send signals 595 based on values nunchuck. problem is, when plug them both in , run program includes wire.h library, garbage out pins 595, , don't readings nunchuck. for example, i'm not connecting 595 pins program.
any ideas why wire.h or i2c code interfering analog pins?
the hardware i2c on atmega168 uses same pins analog 4 & 5. so when i2c mode enabled, these pins converted digital signals i2c connection , can no longer use them analog. since how atmega168 built, can't use other pins hardware i2c.
there people working on software i2c use different pins. search forums this.
there people working on software i2c use different pins. search forums this.
Arduino Forum > Forum 2005-2010 (read only) > Software > Interfacing > i2c, wire.h and digital pin problems
arduino
Comments
Post a Comment