0

Magtag I2C error with SCD30
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Magtag I2C error with SCD30

by Pigmonster on Thu Feb 18, 2021 2:36 am

Hi so I've been trying to get my scd30 to work with my magtag since I got the magtag, and it has never worked. My scd30 works fine with rpis and my other circuit python devices. I get this error:
code.py output:
Traceback (most recent call last):
File "code.py", line 19, in <module>
File "/lib/adafruit_scd30.py", line 66, in __init__
File "/lib/adafruit_scd30.py", line 93, in measurement_interval
File "/lib/adafruit_scd30.py", line 221, in _send_command
File "/lib/adafruit_scd30.py", line 221, in _send_command
File "adafruit_bus_device/i2c_device.py", line 84, in write
OSError: [Errno 5] Input/output error

Code done running.



The weirdest part about it is that sometimes it randomly works but most of the time I get this error. I've found that sometimes if I jiggle the stemma qt cable a tiny bit at the side connecting to the magtag sometimes that fixes it but not usually and it could be coincidental. I've tried using other cables and it doesn't change anything.

Other times it will work consistently for a little while then just randomly stop working at all and gives the above error.

Could this be a connector issue?

Pigmonster
 
Posts: 1
Joined: Wed Dec 16, 2020 9:05 pm

Re: Magtag I2C error with SCD30

by tannewt on Thu Feb 18, 2021 3:29 pm

We've seen a few issues with I2C on the ESP32-S2 when running wifi. So, I don't expect it is the connector. You could post a picture of the connector though to make sure it looks ok.

What version of CircuitPython are you running?

tannewt
 
Posts: 2189
Joined: Thu Oct 06, 2016 8:48 pm

Please be positive and constructive with your questions and comments.