Adafruit MCP9808 works on Arduino Uno but not the Due

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
bmihura
 
Posts: 7
Joined: Sun Jun 06, 2021 6:56 pm

Adafruit MCP9808 works on Arduino Uno but not the Due

Post by bmihura »

I'm using Adafruit's MCP9808 Library's "mcp9808test".

It works just fine on my Arduino Uno.

On the Due, I'm using the SCL1 and SDA1 pins. I also tried its A4 and A5 pins in case those act like the Uno's corresponding pins.

The Due works fine on everything else but it cannot find the MCP9808. The Serial Monitor shows this:

MCP9808 demo
Couldn't find MCP9808! Check your connections and verify the address is correct.

How can I make this work?

User avatar
dastels
 
Posts: 15656
Joined: Tue Oct 20, 2015 3:22 pm

Re: Adafruit MCP9808 works on Arduino Uno but not the Due

Post by dastels »

Try using the I2C on pins 20 and 21.

I notice that they are labeled SDA/SCL on my DUE while the usual (i.e. on an UNO) are labeled SDA1/SCL1.

Dave

User avatar
bmihura
 
Posts: 7
Joined: Sun Jun 06, 2021 6:56 pm

Re: Adafruit MCP9808 works on Arduino Uno but not the Due

Post by bmihura »

That worked, thank you!

I missed the fact that the Due has SCL and SDA pins in addition to SCL1 and SDA1, oops.

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”