Matrix Portal M2 I2C NeoTrellis

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
ntynen
 
Posts: 19
Joined: Sat May 28, 2022 10:15 pm

Matrix Portal M2 I2C NeoTrellis

Post by ntynen »

Hi,

I'm trying to attach a NeoTrellis keyboard to my Matrix Portal M4 via I2C.

I'm using a 4 pin JST PH to 4 pin JST SH cable.

I've connected to NeoTrellis to the M4 and, using a multimeter, confirmed that the board is getting 3.3V.

However, when I run the code to test the board I get this error:
code.py output:
Traceback (most recent call last):
File "code.py", line 27, in <module>
File "adafruit_neotrellis/neotrellis.py", line 60, in __init__
File "adafruit_seesaw/keypad.py", line 67, in __init__
File "adafruit_seesaw/seesaw.py", line 140, in __init__
ValueError: No I2C device at address: 0x2e
Running an I2C scan gives me the same output whether the Neotrellis is connected to the board or not:

Code: Select all

>>> import board
>>> import busio
>>> i2c = busio.I2C(board.SCL, board.SDA)
>>> while not i2c.try_lock():
...     pass
...     
...     
... 
>>> i2c.scan()
[25]
25 (decimal) is 0x19, the accelerometer

I've been searching the forums, the closest I come to what I'm seeing is this post: PN532 on Matrix Portal M4 (viewtopic.php?f=62&t=190458&p=921992&hi ... 2c#p921992). However, there was no resolution.

Looking for advice on what I can try next.

I've attached a photo of the NeoTrellis connected to the M4.

Any help is appreciated.

Thanks,
Nicole
Attachments
matrix-portal-neotrellis.jpg
matrix-portal-neotrellis.jpg (150.46 KiB) Viewed 251 times

User avatar
dastels
 
Posts: 15667
Joined: Tue Oct 20, 2015 3:22 pm

Re: Matrix Portal M2 I2C NeoTrellis

Post by dastels »

That should be good. Have you tried using board.STEMMA_I2C() in place of busio.I2C(board.SCL, board.SDA)?

It's not clear from the photo that the blue wire is connected to the STEMMA-QT connector. It's probably just obscured, but worth asking about.

Dave

User avatar
ntynen
 
Posts: 19
Joined: Sat May 28, 2022 10:15 pm

Re: Matrix Portal M2 I2C NeoTrellis

Post by ntynen »

I hadn't tried board.STEMMA_I2C() yet.

I did that just now but still only getting the accelerometer.

Code: Select all

Adafruit CircuitPython 7.3.0 on 2022-05-23; Adafruit Matrix Portal M4 with samd51j19
>>> import board
>>> i2c = board.STEMMA_I2C()
>>> while not i2c.try_lock():
...     pass
...     
...     
... 
>>> i2c.scan()
[25]
>>> i2c.scan()
[25]
>>> 
Attaching a new image to show the wires better. Based on the pinouts for the M4 the wires are correct.

Anything else I can try?

Thanks for your help.
Attachments
updated_m4_neotrellis.jpg
updated_m4_neotrellis.jpg (127.38 KiB) Viewed 201 times

User avatar
dastels
 
Posts: 15667
Joined: Tue Oct 20, 2015 3:22 pm

Re: Matrix Portal M2 I2C NeoTrellis

Post by dastels »

Yeah, STEMMA_I2C should be identical.

Yes, the cable is good. Have you tried reseating both ends of it?

Have you tried the matrix board with a different controller?

Dave

User avatar
ntynen
 
Posts: 19
Joined: Sat May 28, 2022 10:15 pm

Re: Matrix Portal M2 I2C NeoTrellis

Post by ntynen »

I have reseated the cable, both ends, multiple times with no change in behavior.

I receive my second Matrix Portal M4 today and it also does not see the NeoTrellis board.

I'm expecting a second I2C device within in the next day or two. At that time I can see if either board can see the new device when connected.

If there's anything else I should try, please let me know.

Thanks for the continued support.

Nicole

User avatar
dastels
 
Posts: 15667
Joined: Tue Oct 20, 2015 3:22 pm

Re: Matrix Portal M2 I2C NeoTrellis

Post by dastels »

I just connected a STEMMA-QT temperature sensor to a MatrixPortal and it finds it without problem.

My thought is that it's your NeoTrellis board. Does the soldering on the connector on it look good?

If both portals can see the new board you get, then it's pretty conclusive that it's the NeoTrellis board.

Dave

User avatar
ntynen
 
Posts: 19
Joined: Sat May 28, 2022 10:15 pm

Re: Matrix Portal M2 I2C NeoTrellis

Post by ntynen »

Sorry for the delay in updating.

I didn't have the right cable for the NeoKey board.

I received the proper cable yesterday and connected it and I do see it!

Code: Select all

>>> while not i2c.try_lock():
...     pass
...     
...     
... 
>>> i2c.scan()
[25, 48]
Not sure what is going on with the NeoTrellis. I'll have to try to connect it to one of my other boards and see if it's recognized there.

Do you have any other thoughts/suggestions for testing the NeoTrellis board?

Thanks,
Nicole

User avatar
dastels
 
Posts: 15667
Joined: Tue Oct 20, 2015 3:22 pm

Re: Matrix Portal M2 I2C NeoTrellis

Post by dastels »

The code at https://learn.adafruit.com/adafruit-neo ... ython-code would serve as a good test.

Dave

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

Return to “Itsy Bitsy Boards”