Black Lives Matter - Action and Equality. ... Adafruit is open and shipping.
0

clue_display_sensor_data.py not working
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

clue_display_sensor_data.py not working

by capnfantasy on Sun Mar 08, 2020 1:30 pm

This was discussed on discord and it seemed helpful to add it to the forums. The clue_display_sensor_data.py from the examples did not work on my new Clue board, I was getting the error: Traceback (most recent call last):
File "main.py", line 1, in <module>
File "adafruit_clue.py", line 917, in <module>
File "adafruit_clue.py", line 172, in init
RuntimeError: SDA or SCL needs a pull up
Attachments
IMG_20200308_131701412.jpg
IMG_20200308_131701412.jpg (102.3 KiB) Viewed 71 times
IMG_20200308_131727911.jpg
IMG_20200308_131727911.jpg (58.9 KiB) Viewed 71 times

capnfantasy
 
Posts: 3
Joined: Sun Mar 08, 2020 10:44 am

Re: clue_display_sensor_data.py not working

by adafruit_support_carter on Sun Mar 08, 2020 1:38 pm

Thanks. Can you also post the text you got, including the banner that shows the firmware version information, when you ran this test via REPL:
Code: Select all | TOGGLE FULL SIZE
Adafruit CircuitPython 5.0.0 on 2020-03-02; Adafruit CLUE nRF52840 Express with nRF52840
>>> import board
>>> i2c = board.I2C()
>>>

adafruit_support_carter
 
Posts: 16413
Joined: Tue Nov 29, 2016 2:45 pm

Re: clue_display_sensor_data.py not working

by capnfantasy on Sun Mar 08, 2020 2:04 pm

Code: Select all | TOGGLE FULL SIZE
Adafruit CircuitPython 5.0.0 on 2020-03-02; Adafruit CLUE nRF52840 Express with nRF52840
>>>import board
>>> i2c = board.I2C()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError: SDA or SCL needs a pull up

capnfantasy
 
Posts: 3
Joined: Sun Mar 08, 2020 10:44 am

Re: clue_display_sensor_data.py not working

by capnfantasy on Sun Mar 08, 2020 2:30 pm

This may have been fixed with a power cycle.

capnfantasy
 
Posts: 3
Joined: Sun Mar 08, 2020 10:44 am

Re: clue_display_sensor_data.py not working

by adafruit_support_carter on Sun Mar 08, 2020 3:52 pm

Interesting. There's a chance it could be related to power. On discord you mentioned using your computers USB port. That should generally be OK, but the USB cable itself could even be a potential issue.

Go ahead and just keep using the CLUE. If the problem shows up again, see if you can correlate it to anything.

adafruit_support_carter
 
Posts: 16413
Joined: Tue Nov 29, 2016 2:45 pm

Re: clue_display_sensor_data.py not working

by kevinjwalters on Mon Mar 09, 2020 4:53 am

I doubt it's a factor here but I've accidentally placed a CPX board on a conductive service before and I think that was linked with a problem like this. The round flat boards with the conductive pads on both sides are most vulnerable to this, the CLUE has a fairly large exposed edge connector but doesn't lie flat.

Dan Halbert alerted me to GitHub: adafruit/circuitpython: I2C Bus error leaves board unrecoverable without power down #2635 - the essence of that is no particular trigger for the rather random problem plus solution/workaround is a power-cycle.

kevinjwalters
 
Posts: 674
Joined: Sun Oct 01, 2017 3:15 pm

Please be positive and constructive with your questions and comments.