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?
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.
- bmihura
- Posts: 7
- Joined: Sun Jun 06, 2021 6:56 pm
- dastels
- Posts: 15656
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Adafruit MCP9808 works on Arduino Uno but not the Due
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
I notice that they are labeled SDA/SCL on my DUE while the usual (i.e. on an UNO) are labeled SDA1/SCL1.
Dave
- bmihura
- Posts: 7
- Joined: Sun Jun 06, 2021 6:56 pm
Re: Adafruit MCP9808 works on Arduino Uno but not the Due
That worked, thank you!
I missed the fact that the Due has SCL and SDA pins in addition to SCL1 and SDA1, oops.
I missed the fact that the Due has SCL and SDA pins in addition to SCL1 and SDA1, oops.
Please be positive and constructive with your questions and comments.