๐Ÿ“ฃ๐Ÿ“ช ๐Ÿšš Adafruit will not be shipping USPS orders Monday January 20, 2020 ๐Ÿ—“. Expedited USPS orders placed after 11am ET ๐Ÿ•š Friday January 17 will go out Tuesday January 21 ๐Ÿ“ฃ๐Ÿ“ช๐Ÿšš
0

Can't get 8x8 minimatrix to work anymore
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Can't get 8x8 minimatrix to work anymore

by joosteerbeek on Mon Dec 04, 2017 6:07 am

Hello,

I recently got the Adafruit 8x8 red 0,8"matrix. I'm using it with the Arduino Nano. Last week I got it to work with the example code. But this week the matrix won't do anything, with that same code. I added some println's to test where it goes wrong. And it seems to stop working after the code says
matrix.begin(0x70);
.

You can see that in the serial monitor test1 does print, but test2 doesn't... If I comment out matrix.begin(0x70); then test3 prints as well. just one time.


Code: Select all | TOGGLE FULL SIZE
#include <Adafruit_LEDBackpack.h>
#include <gfxfont.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SPITFT.h>
#include <Adafruit_SPITFT_Macros.h>
#include <Wire.h>

/***************************************************
  This is a library for our I2C LED Backpacks

  Designed specifically to work with the Adafruit LED Matrix backpacks
  ----> http://www.adafruit.com/products/872
  ----> http://www.adafruit.com/products/871
  ----> http://www.adafruit.com/products/870

  These displays use I2C to communicate, 2 pins are required to
  interface. There are multiple selectable I2C addresses. For backpacks
  with 2 Address Select pins: 0x70, 0x71, 0x72 or 0x73. For backpacks
  with 3 Address Select pins: 0x70 thru 0x77

  Adafruit invests time and resources providing this open source code,
  please support Adafruit and open-source hardware by purchasing
  products from Adafruit!

  Written by Limor Fried/Ladyada for Adafruit Industries. 
  BSD license, all text above must be included in any redistribution
 ****************************************************/



Adafruit_8x8matrix matrix = Adafruit_8x8matrix();

void setup() {
  Serial.begin(9600);
  Serial.println("8x8 LED Matrix Test");

  Serial.println("test1");
  matrix.begin(0x70);  // pass in the address
  Serial.println("test2");
}

static const uint8_t PROGMEM
  smile_bmp[] =
  { B00111100,
    B01000010,
    B10100101,
    B10000001,
    B10100101,
    B10011001,
    B01000010,
    B00111100 },
  neutral_bmp[] =
  { B00111100,
    B01000010,
    B10100101,
    B10000001,
    B10111101,
    B10000001,
    B01000010,
    B00111100 },
  frown_bmp[] =
  { B00111100,
    B01000010,
    B10100101,
    B10000001,
    B10011001,
    B10100101,
    B01000010,
    B00111100 };

void loop() {
  Serial.println("test3");
  matrix.clear();
  matrix.drawBitmap(0, 0, smile_bmp, 8, 8, LED_ON);
  matrix.writeDisplay();
  delay(500);

  matrix.clear();
  matrix.drawBitmap(0, 0, neutral_bmp, 8, 8, LED_ON);
  matrix.writeDisplay();
  delay(500);

  matrix.clear();
  matrix.drawBitmap(0, 0, frown_bmp, 8, 8, LED_ON);
  matrix.writeDisplay();
  delay(500);

  matrix.clear();      // clear display
  matrix.drawPixel(0, 0, LED_ON); 
  matrix.writeDisplay();  // write the changes we just made to the display
  delay(500);

  matrix.clear();
  matrix.drawLine(0,0, 7,7, LED_ON);
  matrix.writeDisplay();  // write the changes we just made to the display
  delay(500);

  matrix.clear();
  matrix.drawRect(0,0, 8,8, LED_ON);
  matrix.fillRect(2,2, 4,4, LED_ON);
  matrix.writeDisplay();  // write the changes we just made to the display
  delay(500);

  matrix.clear();
  matrix.drawCircle(3,3, 3, LED_ON);
  matrix.writeDisplay();  // write the changes we just made to the display
  delay(500);

  matrix.setTextSize(1);
  matrix.setTextWrap(false);  // we dont want text to wrap so it scrolls nicely
  matrix.setTextColor(LED_ON);
  for (int8_t x=0; x>=-36; x--) {
    matrix.clear();
    matrix.setCursor(x,0);
    matrix.print("Hello");
    matrix.writeDisplay();
    delay(100);
  }
  matrix.setRotation(3);
  for (int8_t x=7; x>=-36; x--) {
    matrix.clear();
    matrix.setCursor(x,0);
    matrix.print("World");
    matrix.writeDisplay();
    delay(100);
  }
  matrix.setRotation(0);
}


The wires are connected as followed:
See the image..

I hope you can help me with this!

Thanks!
Attachments
IMG_8545.jpg
IMG_8545.jpg (974.66 KiB) Viewed 536 times

joosteerbeek
 
Posts: 5
Joined: Mon Dec 04, 2017 5:53 am

Re: Can't get 8x8 minimatrix to work anymore

by franklin97355 on Tue Dec 05, 2017 4:13 am

Can you post a picture of the other side? Your soldering could use a reflow to completely wet the pin and pad for good connections.

franklin97355
 
Posts: 21417
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: Can't get 8x8 minimatrix to work anymore

by joosteerbeek on Tue Dec 05, 2017 4:26 am

franklin97355 wrote:Can you post a picture of the other side? Your soldering could use a reflow to completely wet the pin and pad for good connections.


Okay. I will do that on thursday.

joosteerbeek
 
Posts: 5
Joined: Mon Dec 04, 2017 5:53 am

Re: Can't get 8x8 minimatrix to work anymore

by joosteerbeek on Thu Dec 07, 2017 6:09 am

franklin97355 wrote:Can you post a picture of the other side? Your soldering could use a reflow to completely wet the pin and pad for good connections.


Hereby the picture
Attachments
IMG_2521.JPG
IMG_2521.JPG (943.65 KiB) Viewed 467 times

joosteerbeek
 
Posts: 5
Joined: Mon Dec 04, 2017 5:53 am

Re: Can't get 8x8 minimatrix to work anymore

by franklin97355 on Thu Dec 07, 2017 4:11 pm

Check out this Soldering Guide and redo your connections and see if that helps.

franklin97355
 
Posts: 21417
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: Can't get 8x8 minimatrix to work anymore

by joosteerbeek on Thu Dec 07, 2017 6:19 pm

franklin97355 wrote:Check out this Soldering Guide and redo your connections and see if that helps.


Thanks! Will try on monday. I'll let you know if that works.

joosteerbeek
 
Posts: 5
Joined: Mon Dec 04, 2017 5:53 am

Re: Can't get 8x8 minimatrix to work anymore

by bestazy on Thu Dec 21, 2017 8:04 am

franklin97355 wrote:Check out this Soldering Guide and redo your connections and see if that helps.

Hi ! thanks for good tutorial, but I couldn't found question on my answer there
I was just wondering if u could put up a detailed picture on how to hook up another 8ร—8 led matrix and the code so it will work and can I use just 3 shift registers to do this ?
Thanks very much, bestazy

bestazy
 
Posts: 1
Joined: Thu Dec 21, 2017 7:46 am

Please be positive and constructive with your questions and comments.