0

NeoTrellis
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

NeoTrellis

by eberman on Thu Feb 07, 2019 9:08 pm

I'm working with a Neotrellis PCB and an Arduino Leonardo but the Adafruit_NeoTrellis::begin() method keeps returning false. I've wired things correctly (I think) and am using this basic code:

Code: Select all | TOGGLE FULL SIZE
#include <Arduino.h>
#include <Adafruit_NeoTrellis.h>

Adafruit_NeoTrellis trellis;
void setup() {
  Serial.begin(9600);
  while(!Serial);

  while (!trellis.begin()) {
    Serial.println("Could not start trellis, check wiring?");
  }

  Serial.println("NeoPixel Trellis started");
}


The code builds and uploads fine, but I keep getting the error message. I've tried it on two different Leonardo boards and one Uno. Is there something I'm missing?
Attachments
Screen Shot 2019-02-07 at 7.58.42 PM.jpg
Screen Shot 2019-02-07 at 7.58.42 PM.jpg (964.57 KiB) Viewed 112 times

eberman
 
Posts: 3
Joined: Tue Apr 10, 2018 12:18 pm

Re: NeoTrellis

by adafruit_support_mike on Fri Feb 08, 2019 3:49 am

Try running an I2C scanner to see if you get any response at the NeoTrellis's address:

https://github.com/todbot/arduino-i2c-s ... canner.ino

adafruit_support_mike
 
Posts: 58825
Joined: Thu Feb 11, 2010 2:51 pm

Re: NeoTrellis

by eberman on Fri Feb 08, 2019 10:07 am

Here's the output from that:

Code: Select all | TOGGLE FULL SIZE
I2CScanner ready!
starting scanning of I2C bus from 8 to 119...
addr: 8
addr: 9         addr: 10        addr: 11        addr: 12
addr: 13        addr: 14        addr: 15        addr: 16
addr: 17        addr: 18        addr: 19        addr: 20
addr: 21        addr: 22        addr: 23        addr: 24
addr: 25        addr: 26        addr: 27        addr: 28
addr: 29        addr: 30        addr: 31        addr: 32
addr: 33        addr: 34        addr: 35        addr: 36

addr: 37        addr: 38        addr: 39        addr: 40
addr: 41        addr: 42        addr: 43        addr: 44
addr: 45        addr: 46        addr: 47        addr: 48
addr: 49        addr: 50        addr: 51        addr: 52
addr: 53        addr: 54        addr: 55        addr: 56
addr: 57        addr: 58        addr: 59        addr: 60
addr: 61        addr: 62        addr: 63        addr: 64
addr: 65        addr: 66        addr: 67        addr: 68
addr: 69        addr: 70        addr: 71        addr: 72
addr: 73        addr: 74        addr: 75        addr: 76
addr: 77        addr: 78        addr: 79        addr: 80
addr: 81        addr: 82        addr: 83        addr: 84
addr: 85        addr: 86        addr: 87        addr: 88
addr: 89        addr: 90        addr: 91        addr: 92
addr: 93        addr: 94        addr: 95        addr: 96
addr: 97        addr: 98        addr: 99        addr: 100
addr: 101               addr: 102               addr: 103               addr: 104
addr: 105               addr: 106               addr: 107               addr: 108
addr: 109               addr: 110               addr: 111               addr: 112
addr: 113               addr: 114               addr: 115               addr: 116
addr: 117               addr: 118               addr: 119
done

eberman
 
Posts: 3
Joined: Tue Apr 10, 2018 12:18 pm

Re: NeoTrellis

by adafruit_support_mike on Sat Feb 09, 2019 12:51 am

That shows no response on the NeoTrellis's address at 0x2E (46).

If you get the same result from more than one microcontroller, it sounds like there's either a connection problem or a hardware failure on the NeoTrellis PCB. Try checking continuity from the ends of the SDA and SCL wires that plug into the Arduino to the unused SDA and SCL pads at the top of the photo above.

adafruit_support_mike
 
Posts: 58825
Joined: Thu Feb 11, 2010 2:51 pm

Re: NeoTrellis

by eberman on Wed Feb 13, 2019 11:31 pm

I ended up ordering a couple more NeoTrellises and they worked fine with the same wiring - looks like there must have been some kind of issue with the pcb

eberman
 
Posts: 3
Joined: Tue Apr 10, 2018 12:18 pm

Re: NeoTrellis

by adafruit_support_mike on Sat Feb 16, 2019 12:28 am

It's possible that the one shown above experienced some damage. It looks like two of the other SDA pads along the edge of the board were missing, and one kind of failure can lead to another.

adafruit_support_mike
 
Posts: 58825
Joined: Thu Feb 11, 2010 2:51 pm

Please be positive and constructive with your questions and comments.