Dead ports on an MCP23017?

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
TeamObstant
 
Posts: 4
Joined: Thu Jul 31, 2014 1:08 pm

Dead ports on an MCP23017?

Post by TeamObstant »

I'm having trouble getting my new MCP23017 set up. I'm running simple for loop to light some LEDs to get a feel for how the chip and the library work, the code is included below.

Luckily for troubleshooting purposes, I ordered two of the chips. Each has at least two pins that don't seem to be working, different pins on each chip. This is my first experience working with chips like this, is there something I may have done in opening them and inserting them on the breadboard that damaged them in some way? Is there a high probability of dead pins on these? It is also possible that I connected the pins incorrectly at some point in the set up, could that have killed a pin or two?

Thank you.

Code: Select all

#include <Wire.h>
#include "Adafruit_MCP23017.h"

an LED or whatever from that to ground

Adafruit_MCP23017 mcp;

void setup() {  
  mcp.begin(0);     

  for (int i=0; i<17;i++){
    mcp.pinMode(i,OUTPUT);
  }
}
void loop() {

  for( int j=0; j<17;j++){
    delay(100);
    mcp.digitalWrite(j,HIGH);
    delay(100);
    mcp.digitalWrite(j,LOW);
  }
}

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

Re: Dead ports on an MCP23017?

Post by Franklin97355 »

I don't see anything wrong with the code. Could you post clear pictures of your board, any soldering you did and the connections to it?

TeamObstant
 
Posts: 4
Joined: Thu Jul 31, 2014 1:08 pm

Re: Dead ports on an MCP23017?

Post by TeamObstant »

After some more time trouble shooting, I've narrowed it down to a weird vibration sensitivity. Here's a video:

https://www.youtube.com/watch?v=SW_Hzpn ... mEnowCxuYA

My hope is that this has something to do with my breadboard set up? Maybe a loose wire?

TeamObstant
 
Posts: 4
Joined: Thu Jul 31, 2014 1:08 pm

Re: Dead ports on an MCP23017?

Post by TeamObstant »

Okay, problem has been totally solved by pushing the chip further down into the breadboard.

Image

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: Dead ports on an MCP23017?

Post by adafruit_support_mike »

Ah.. the "only obvious *after* you've found the solution" scenario.

Happens to all of us, and more than most of us would like to admit. ;-)

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

Return to “Other Arduino products from Adafruit”