Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update documentation/code for pullups and I2C Bus Speed #12

Open
qdot opened this issue Apr 15, 2012 · 0 comments
Open

Update documentation/code for pullups and I2C Bus Speed #12

qdot opened this issue Apr 15, 2012 · 0 comments

Comments

@qdot
Copy link
Owner

qdot commented Apr 15, 2012

Original comment: http://disq.us/6iwldk?imp=cce7d05a-a21a-43d8-941c-a3e31ea21eee&thread=465932670&zone=email_notification&event=shortener_click


I just got my Arduino Mega controlling the MyKeeopn, and a few notes that people might find useful:

  • didn't need a 5v 3.3v converter, because I2C uses open-drain pins. Just connected both the I2C lines to the +3.3V supply from the Keepon through some pullup resistors
  • needed to manually change the Arduino I2C frequency from 100khz to 25khz (which is the Keepon's I2C freq) by adding this line before beginning any Wire commands (adds a 4x prescaler to the TWBR register):
    sbi(TWSR, TWPS0);

Thanks qdot for all the info, it was really helpful!


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant