I2C on Arduino Duemilanove / Mega

 

It's been while having this strange problem and it seems only myself having this issue. All my Arduinos atmega328 (either offical or mutants) couldn't work with LCD correctly but MEGA works perfectly fine. Recently my project are using WIRE library a lot and they seems not function well. Especially after execute the Wire.endTransmission(); in the line everythign stopped until hit RESET on Arduino.

If this is only happen on one Arduino I assume it could be Arduino itself, but all my Arduino328 are not working when they met WIRE library and I'd say it must be something else.

https://www.youtube.com/watch?v=Dfl6HTHLONU

Just out of curiosity, have

Just out of curiosity, have you tried this without the IO expander board directly to the analogue pins 4,5 ?
Have you tried powering the LCD from something else than the Arduino?

Yes, I did try direct into 4

Yes, I did try direct into 4 and 5 as well but the result is the same. Power LCD from external battery? Nope, I will try that after work.

It’s really strange. I

It’s really strange. I switch to other computer and it works!! I don’t have any clue why is this happens, I even create new folder for Arduino programming with no other libraries and it still same error but other computer works just fine.

I guess this will be forever mystery.