NHD-0420D3Z-FL-GBW-3V Dropping characters over I2c

Comments

3 comments

  • Michael_L

    I'm not sure if this applies to the Uno as well as the Mega, but with the Arduino Mega I have used "TWBR = 152;" (sets I2C clock frequency to 50kHz) after I call "Wire.begin()" in the setup() function.
    I would check the Arduino forums/documentation to confirm this works with the Uno too.

    0
  • camac881

    Hello Michael,

    That worked perfectly. Thank you.

    I checked the Wire library reference at Arduino.cc and they referenced the data sheet at Atmel and a table that does not make this any clearer. How do you come up with the number? Do you gather all the pieces and run them through the formula? It seems like herding cats to me.

    Thanks for your help!
    Cam

    0
  • Michael_L

    You're welcome!  This site should help:

    http://www.gammon.com.au/forum/?id=10896

    0

Please sign in to leave a comment.