Please note: Friday June 18 is a holiday celebrating Juneteenth, please allow extra time for your order to arrive and plan accordingly.
0

No pull up found on SDA or SCL; check your wiring No I2C dev
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

No pull up found on SDA or SCL; check your wiring No I2C dev

by timmcc on Mon Jun 07, 2021 11:10 am

I am using a Cricket with the Circuit Playground express with Circuit Python and am trying to run some test code.

Code: Select all | TOGGLE FULL SIZE
# motor test
import board
import digitalio
import time
from adafruit_crickit import crickit

led = digitalio.DigitalInOut(board.LED)
led.direction = digitalio.Direction.OUTPUT

# make two variables for the motors to make code shorter to type
motor_1 = crickit.dc_motor_1

while True:
   led.value = True   #red LED on
   time.sleep(0.1)
   led.value = False  # red LED off
   time.sleep(0.1)

   motor_1.throttle = 1  # full speed forward
   time.sleep(1)

which gives the following errors (somewhat randomly, meaning it throws both errors without me changing anything)... We have checked the power supply and the tightness of the bolts connecting the two boards as some posts have suggested. Not sure what else could be the problem.

Traceback (most recent call last):
File "code.py", line 6, in <module>
File "adafruit_crickit.py", line 402, in <module>
RuntimeError: No pull up found on SDA or SCL; check your wiring


Traceback (most recent call last):
File "code.py", line 6, in <module>
File "adafruit_crickit.py", line 402, in <module>
File "adafruit_seesaw/seesaw.py", line 141, in __init__
ValueError: No I2C device at address: 49
Last edited by adafruit_support_carter on Mon Jun 07, 2021 12:52 pm, edited 1 time in total.
Reason: added [code] tags

timmcc
 
Posts: 13
Joined: Mon Jun 07, 2021 10:51 am

Re: No pull up found on SDA or SCL; check your wiring No I2C

by adafruit_support_carter on Mon Jun 07, 2021 12:53 pm

How are you powering the Crickit board?

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

Re: No pull up found on SDA or SCL; check your wiring No I2C

by timmcc on Mon Jun 07, 2021 1:52 pm

We are using your 5V 2A (2000mA) switching power supply - UL Listed.

timmcc
 
Posts: 13
Joined: Mon Jun 07, 2021 10:51 am

Re: No pull up found on SDA or SCL; check your wiring No I2C

by adafruit_support_carter on Mon Jun 07, 2021 2:09 pm

Thanks. That should be fine. That's being plugged in to the barrel jack on the Crickit board? And just to make sure - is the switch next the barrel jack turned ON?

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

Re: No pull up found on SDA or SCL; check your wiring No I2C

by timmcc on Mon Jun 07, 2021 2:10 pm

Yes.

timmcc
 
Posts: 13
Joined: Mon Jun 07, 2021 10:51 am

Re: No pull up found on SDA or SCL; check your wiring No I2C

by adafruit_support_carter on Mon Jun 07, 2021 2:11 pm

Hmm. OK, can you please post a photo of your setup so we can look for anything obvious with the hardware.

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

Re: No pull up found on SDA or SCL; check your wiring No I2C

by timmcc on Mon Jun 07, 2021 2:19 pm

Here it is.
Attachments
IMG_3867-2.jpg
IMG_3867-2.jpg (645.13 KiB) Viewed 121 times

timmcc
 
Posts: 13
Joined: Mon Jun 07, 2021 10:51 am

Re: No pull up found on SDA or SCL; check your wiring No I2C

by timmcc on Mon Jun 07, 2021 2:28 pm

We are able to blink the red LED on the Circuit Playground as well as produce sound via an external speaker (see code)

Code: Select all | TOGGLE FULL SIZE
import audioio
import audiocore
import board
import digitalio
import time

led = digitalio.DigitalInOut(board.LED)
led.direction = digitalio.Direction.OUTPUT
   
wavfile = "howto.wav"
f = open(wavfile, "rb")
wav = audiocore.WaveFile(f)
a = audioio.AudioOut(board.A0)
a.play(wav)

while a.playing:
   pass
   while True:
       led.value = True   # red LED on
       time.sleep(0.1)
       led.value = False  # red LED off
       time.sleep(0.1)
f.close()
Last edited by adafruit_support_carter on Mon Jun 07, 2021 3:48 pm, edited 1 time in total.
Reason: added [code] tags

timmcc
 
Posts: 13
Joined: Mon Jun 07, 2021 10:51 am

Re: No pull up found on SDA or SCL; check your wiring No I2C

by adafruit_support_carter on Mon Jun 07, 2021 2:52 pm

Thanks for the photo. That all looks OK.

Is this a new Crickit? Or has it been used previously?

Can you clarify the behavior here:
which gives the following errors (somewhat randomly, meaning it throws both errors without me changing anything)...

You only get one issue at a time? And just random which one?

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

Re: No pull up found on SDA or SCL; check your wiring No I2C

by timmcc on Mon Jun 07, 2021 3:01 pm

Brand new.

When I save the code.py, it usually starts by saying the first error (no pull up found on SDA or SCL) and then ill save it a couple more times and it will randomly switch to the other error (no I2C device). Other than saving more times, I won't have changed anything between the two errors.

timmcc
 
Posts: 13
Joined: Mon Jun 07, 2021 10:51 am

Re: No pull up found on SDA or SCL; check your wiring No I2C

by adafruit_support_carter on Mon Jun 07, 2021 3:15 pm

How new are you to CircuitPython? Have you ever interacted via the REPL before? We can try some things there.

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

Re: No pull up found on SDA or SCL; check your wiring No I2C

by timmcc on Mon Jun 07, 2021 3:17 pm

I just started using it last week. Yes, I am familiar with the REPL, what should I try doing?

timmcc
 
Posts: 13
Joined: Mon Jun 07, 2021 10:51 am

Re: No pull up found on SDA or SCL; check your wiring No I2C

by adafruit_support_carter on Mon Jun 07, 2021 3:33 pm

OK, try this and see what you get:
Code: Select all | TOGGLE FULL SIZE
Adafruit CircuitPython 6.3.0 on 2021-06-01; Adafruit CircuitPlayground Express with Crickit libraries with samd21g18
>>> import board
>>> i2c = board.I2C()
>>> i2c.try_lock()
True
>>> i2c.scan()
[73]
>>>

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

Re: No pull up found on SDA or SCL; check your wiring No I2C

by timmcc on Mon Jun 07, 2021 3:38 pm

See below.
Attachments
Screen Shot 2021-06-07 at 3.32.01 PM (2).png
Screen Shot 2021-06-07 at 3.32.01 PM (2).png (402.47 KiB) Viewed 114 times

timmcc
 
Posts: 13
Joined: Mon Jun 07, 2021 10:51 am

Re: No pull up found on SDA or SCL; check your wiring No I2C

by adafruit_support_carter on Mon Jun 07, 2021 3:56 pm

Weird. It's just not seeing it.

Let's try sanity checking the firmware on the Crickit. Move your USB cable to the "seesaw ONLY" port on the Crickit board. Then double press the reset button on the Crickit (next to barrel connector). Do you get a CRICKITBOOT folder to show up on your PC?

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

Please be positive and constructive with your questions and comments.