First I2C project - total fail

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
SkyRyder
 
Posts: 45
Joined: Fri Mar 06, 2020 6:05 pm

First I2C project - total fail

Post by SkyRyder »

Hi all,

So, I have a metro express, connected to the 9601 Thermocouple amplifier board, using a 4-wire cable soldered to it (power, gnd, clock and data). The cable is about 200mm in length.

When all is connected, I have a green power light on the 9601, telling me all is well...

I followed the 9601 example precisely and did not mess with the address... then loaded in the example code that was also specified with the 9601 example. (https://learn.adafruit.com/adafruit-mcp9601/pinouts)

When running the code, I get a message that it can't find the 9601 (here is the code that produces the "Sensor not found" error:)

/* Initialise the driver with I2C_ADDRESS and the default I2C bus. */
if (! mcp.begin(I2C_ADDRESS)) {
Serial.println("Sensor not found. Check wiring!");
while (1);


And yes, I did check the (4) wires. Obviously power works

So... this is about as simple as an I2C implementation can possibly get, right? So very discouraging.


Where does one go from here?

Thank you for all of your kind suggestions.

User avatar
Franklin97355
 
Posts: 23910
Joined: Mon Apr 21, 2008 2:33 pm

Re: First I2C project - total fail

Post by Franklin97355 »

How are you connecting the amplifier to the metro? Can you post a shot of your connection and soldering? Thanks.

User avatar
SkyRyder
 
Posts: 45
Joined: Fri Mar 06, 2020 6:05 pm

Re: First I2C project - total fail

Post by SkyRyder »

Solder to the amp board:
image3.jpeg
image3.jpeg (476.02 KiB) Viewed 336 times

User avatar
SkyRyder
 
Posts: 45
Joined: Fri Mar 06, 2020 6:05 pm

Re: First I2C project - total fail

Post by SkyRyder »

Solder to the header:
image2.jpeg
image2.jpeg (396.73 KiB) Viewed 335 times

User avatar
SkyRyder
 
Posts: 45
Joined: Fri Mar 06, 2020 6:05 pm

Re: First I2C project - total fail

Post by SkyRyder »

The entire set-up:
whole.JPG
whole.JPG (81.58 KiB) Viewed 335 times

User avatar
Franklin97355
 
Posts: 23910
Joined: Mon Apr 21, 2008 2:33 pm

Re: First I2C project - total fail

Post by Franklin97355 »

Have you tried to scan the i2c address with a basic sketch? (found it here https://learn.adafruit.com/scanning-i2c ... i2c-basics

User avatar
SkyRyder
 
Posts: 45
Joined: Fri Mar 06, 2020 6:05 pm

Re: First I2C project - total fail

Post by SkyRyder »

I rung out each wire, and found that I had nicked the clock wire, giving me high resistance or even an open...

I took care of that, problem solved!

I'm dangerous with a knife, apparently.

Thank you for your kind help.

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

Return to “Microcontrollers”