0

Adafruit MCP9808 works on Arduino Uno but not the Due
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Adafruit MCP9808 works on Arduino Uno but not the Due

by bmihura on Sun Jun 06, 2021 7:17 pm

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?

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

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

by dastels on Sun Jun 06, 2021 8:09 pm

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

dastels
 
Posts: 6832
Joined: Tue Oct 20, 2015 3:22 pm

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

by bmihura on Sun Jun 06, 2021 8:51 pm

That worked, thank you!

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

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

Please be positive and constructive with your questions and comments.