Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example results in 'Unsupported baudrate' with Feather M0 & CircuitPython v7.3.3 #33

Open
pushbuttondesign opened this issue Sep 15, 2022 · 0 comments

Comments

@pushbuttondesign
Copy link

pushbuttondesign commented Sep 15, 2022

ERROR DESCRIPTION:

  • Provided example code and documentation recommends using frequency 50000 but this results in ValueError: Unsupported baudrate with the circuit described below
  • Default frequency of 100000 does work in limited testing but is specifically recommend against by the SCD30 datasheet
  • I cannot find a list of baudrates supported by Adafruit Feather M0 Datalogger. Other common baudrates <50000 were tested but all resulted in the same ValueError.

CIRCUIT:

  • Using Adafruit Feather M0 Datalogger with CircuitPython 7.3.3. and SCD30 sensor connected via i2c
  • I am not using Adafruit Part ID 4867, I am using an SCD30 directly, without the Adafruit breakout board. This means the SCL and SCA lines are 3.3v despite the SCD30 datasheet recommending an i2c high of 3v max. I don't believe it is relevant to this issue however.

CODE:

import adafruit_scd30, time, board, busio

#i2c = board.I2C()     #  this works
#i2c = busio.I2C(board.SCL, board.SDA, frequency=100000)   #  this works
i2c = busio.I2C(board.SCL, board.SDA, frequency=50000)  #  this does not work
scd30 = adafruit_scd30.SCD30(i2c)

time.sleep(5)
print("CO2: %d PPM" % scd30.CO2)

CODE OUTPUT:
ValueError: Unsupported baudrate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant