ADABOX020 - LED Glasses - ValueError: No I2C device at address: 0x30

Wearable electronics: boards, conductive materials, and projects from Adafruit!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
ankurdarji
 
Posts: 3
Joined: Fri Oct 28, 2022 10:24 am

ADABOX020 - LED Glasses - ValueError: No I2C device at address: 0x30

Post by ankurdarji »

Hi,
I am having issues getting the LED glasses to work. I get the following error. Note that this is running the code from the is31fl3741_glassesrings.py example. I tried the projects from CircuitPython EyeLights Starter Projects and have the same issue so I started to try in individual examples to try debug.

Code: Select all

code.py output:
Traceback (most recent call last):
  File "code.py", line 9, in <module>
  File "adafruit_is31fl3741/adafruit_ledglasses.py", line 256, in __init__
  File "adafruit_is31fl3741/__init__.py", line 280, in __init__
  File "adafruit_is31fl3741/__init__.py", line 105, in __init__
ValueError: No I2C device at address: 0x30
If I manually scan the I2C, I see 2 devices and 0x30 (DEC 48) is found:

Code: Select all

>>> import board
>>> import adafruit_is31fl3741
>>> from adafruit_is31fl3741.adafruit_ledglasses import LED_Glasses
>>> i2c = board.I2C()
>>> i2c.try_lock()
True
>>> i2c.scan()
[24]
>>> i2c.scan()
[24, 48]
>>> i2c.scan()
[24, 48]
>>> i2c.unlock()
>>> glasses = LED_Glasses(board.I2C(), allocate=adafruit_is31fl3741.MUST_BUFFER)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "adafruit_is31fl3741/adafruit_ledglasses.py", line 256, in __init__
  File "adafruit_is31fl3741/__init__.py", line 280, in __init__
  File "adafruit_is31fl3741/__init__.py", line 105, in __init__
ValueError: No I2C device at address: 0x30
Any suggestions? Could this be a bad LED Glasses board? I am able to access the lis3dh accelerometer and successfully run the code from the example lis3dh_simpletest.py

Thanks for the Support!

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

Re: ADABOX020 - LED Glasses - ValueError: No I2C device at address: 0x30

Post by dastels »

Are CircuitPython (7.3.3 from https://circuitpython.org/board/adafrui ... _nrf52840/) and matching libraries (7.x from https://circuitpython.org/libraries) up to date?

Dave

User avatar
ankurdarji
 
Posts: 3
Joined: Fri Oct 28, 2022 10:24 am

Re: ADABOX020 - LED Glasses - ValueError: No I2C device at address: 0x30

Post by ankurdarji »

Hi Dave,

Thanks for the quick response. To answer your question yes I had made sure I was using the latest CircuitPython and matching libs.

Actually, I found the issue... it was a bent pin the STEMMA QT connector. Not really sure how it got bent, but after carefully straightening the pin and reconnecting the cable, the LED Glasses came to life!

Thanks for the support!
Ankur

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

Re: ADABOX020 - LED Glasses - ValueError: No I2C device at address: 0x30

Post by dastels »

Awesome!

Dave

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

Return to “Wearables”