Pages: [1]   Go Down
Author Topic: i2c device working on Arduino Mega but not Arduino Micro  (Read 66 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 27
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm using an RFID/NFC device that using I2C in an arduino project. I was using the adafruit shield, but it's too large for what I'm trying to do. I found this http://www.elechouse.com/elechouse/index.php?main_page=product_info&cPath=90_93&products_id=2205 . It's pretty straighforward to connect and has a decent library that I was able to get working with an arduino mega. When I tried moving it to an arduino micro, I got no repsonse from the device at all. I was able to get the adafruit RFID shield working with a micro using i2c, so it's not just me using the wrong pins or something.

Does the micro handle i2c differently somehow? I'm crawling through the library for this new RFID board right now, and I can't see anything that's board specific. Thanks!
Logged

Narvik, Norway
Online Online
God Member
*****
Karma: 12
Posts: 719
electronics engineer, teacher.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

pullups installed ?
Logged

Ny

Offline Offline
Newbie
*
Karma: 0
Posts: 27
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I wasn't aware that the micro didn't have pullups installed. I just scoped the SDA line and it's a bunch of triangle waves, so that's definitely the problem. What's a good value pullup resistor? Thanks!
Logged

Narvik, Norway
Online Online
God Member
*****
Karma: 12
Posts: 719
electronics engineer, teacher.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

3k3.. 10k
Logged

Ny

Pages: [1]   Go Up
Jump to: