0

"SDA or SCL needs a pull up" is plaguing me
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

"SDA or SCL needs a pull up" is plaguing me

by geekguy on Sun Aug 25, 2019 4:58 am

Hi,

I have a Feather M4 Express that is giving me this error, and I have no idea why. I have tried erasing the files system twice, without it helping. I can not find any other possible cure. I am only using Adafruit breakout boards, which should already have the pull ups on them.

Help!

8-Dale

geekguy
 
Posts: 241
Joined: Tue Sep 10, 2013 2:43 pm
Location: Beaverton, OR

Re: "SDA or SCL needs a pull up" is plaguing me

by siddacious on Sun Aug 25, 2019 2:11 pm

Can you please post the code that you're using along with pictures of your circuit(s) showing how everything is connected? This will allow us to help narrow down the possible issues.

Thanks!

siddacious
 
Posts: 128
Joined: Fri Apr 21, 2017 3:09 pm

Re: "SDA or SCL needs a pull up" is plaguing me

by geekguy on Sun Aug 25, 2019 9:16 pm

Hi

siddacious wrote:Can you please post the code that you're using along with pictures of your circuit(s) showing how everything is connected? This will allow us to help narrow down the possible issues.

Thanks!

current_circuit_by_geekguy.jpg
current_circuit_by_geekguy.jpg (67.92 KiB) Viewed 61 times

OK, here is everything. It will be difficult following the connections though, since the VL53L0X is part of a larger circuit. I have the VL53L0X connected directly to the Feather M4 Express now, and it is the only thing on the I2C bus. All sensors are powered by the 2500mAH battery.

Code: Select all | TOGGLE FULL SIZE
#!/usr/bin/env python3
# Simple demo of the VL53L0X distance sensor.
# Will print the sensed range/distance every second.
import board
import busio
import time

import adafruit_vl53l0x

# Initialize I2C bus and sensor.
i2c = busio.I2C(board.SCL, board.SDA)
vl53l0x = adafruit_vl53l0x.VL53L0X(i2c)

# Optionally adjust the measurement timing budget to change speed and accuracy.
# See the example here for more details:
#   https://github.com/pololu/vl53l0x-arduino/blob/master/examples/Single/Single.ino
# For example a higher speed but less accurate timing budget of 20ms:
#vl53l0x.measurement_timing_budget = 20000
# Or a slower but more accurate timing budget of 200ms:
#vl53l0x.measurement_timing_budget = 200000
# The default timing budget is 33ms, a good compromise of speed and accuracy.

# Main loop will read the range and print it every second.
while True:
    print('Range: {0}mm'.format(vl53l0x.range))
    time.sleep(1.0)

8-Dale

geekguy
 
Posts: 241
Joined: Tue Sep 10, 2013 2:43 pm
Location: Beaverton, OR

Re: "SDA or SCL needs a pull up" is plaguing me

by siddacious on Tue Aug 27, 2019 10:26 pm

Thanks for posting your code. Unfortunately as you suggested the wiring is hard to follow. Can you post another picture of just the feather and the VL53L0X?

The code looks good; usually this is a wiring issue.

siddacious
 
Posts: 128
Joined: Fri Apr 21, 2017 3:09 pm

Please be positive and constructive with your questions and comments.