Skip to content

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

@pushbuttondesign

Description

@pushbuttondesign

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions