Trellis not detecting ADXL343

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
spconrad
 
Posts: 8
Joined: Sun Mar 11, 2018 6:15 pm

Trellis not detecting ADXL343

Post by spconrad »

Hello,

Got the most recent AdaBox with the Neo Trellis and am having a tough time accessing the ADXL343 accelerometer.

Followed the tutorial steps and installed the proper libraries, but whenever I try to run sensortest I get the following error in the Serial Monitor:

Code: Select all

Accelerometer Test

Device ID: FF
Ooops, no ADXL343 detected ... Check your wiring!
As I said, it's a Trellis board, so I'm a bit lost as to how I could be improperly wiring it as the sensor is literally attached to the board. Example sketches for the pretty lights work just fine.

I'm on a 2016 MBP running Mac OS 10.14
Arduino IDE 1.8.8

Please let me know what additional information I can provide that might be helpful.
Attachments
Screen Shot 2019-01-23 at 1.39.36 PM.png
Screen Shot 2019-01-23 at 1.39.36 PM.png (644.94 KiB) Viewed 283 times

User avatar
adafruit_support_carter
 
Posts: 29168
Joined: Tue Nov 29, 2016 2:45 pm

Re: Trellis not detecting ADXL343

Post by adafruit_support_carter »

On the NeoTrellis M4, the accelo is on Wire1:
https://learn.adafruit.com/adafruit-neo ... meter-2-17

Unfortunately, the Arduino library is hard coded for Wire. So it would need to be updated.

You could use CircuitPython to access the accelo, if that route would work for you.

User avatar
spconrad
 
Posts: 8
Joined: Sun Mar 11, 2018 6:15 pm

Re: Trellis not detecting ADXL343

Post by spconrad »

I'm a bit confused, are you saying I can't use the Adafruit Unified Sensor library that's referred to in the NeoTrellis tutorial? https://learn.adafruit.com/adafruit-neo ... -libraries.

User avatar
adafruit_support_carter
 
Posts: 29168
Joined: Tue Nov 29, 2016 2:45 pm

Re: Trellis not detecting ADXL343

Post by adafruit_support_carter »

Sorry, my bad. I was looking at the older library. That newer library allows for specifying a different I2C bus. In the example sketch:
https://github.com/adafruit/Adafruit_AD ... ortest.ino
change this line:

Code: Select all

Adafruit_ADXL343 accel = Adafruit_ADXL343(12345);
to this:

Code: Select all

Adafruit_ADXL343 accel = Adafruit_ADXL343(12345, &Wire1);

User avatar
spconrad
 
Posts: 8
Joined: Sun Mar 11, 2018 6:15 pm

Re: Trellis not detecting ADXL343

Post by spconrad »

Hey, that fixed it! Thank you!

Should probably add that to the NeoTrellis and/or Adabox 010 tutorials :)

User avatar
adafruit_support_carter
 
Posts: 29168
Joined: Tue Nov 29, 2016 2:45 pm

Re: Trellis not detecting ADXL343

Post by adafruit_support_carter »

Cool, glad that fixed. Agree, we need to update a few things. There's been some additional work done since the original page was put up.

User avatar
vjxun
 
Posts: 3
Joined: Fri Jun 14, 2019 10:47 am

Re: Trellis not detecting ADXL343

Post by vjxun »

My Arduino Uno is not recognizing the ADXL343 either during sensortest, and I get the same error message. I have the SCL hooked to A5, and SDA to A4. Anything I can do to troubleshoot?

User avatar
adafruit_support_carter
 
Posts: 29168
Joined: Tue Nov 29, 2016 2:45 pm

Re: Trellis not detecting ADXL343

Post by adafruit_support_carter »

@vjxun Please start a new thread for your issue. Post a photo of your setup showing how you have everything connected.

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

Return to “Arduino”