Skip to content

using the setAmbientPressure function results in extreme noise in the output #15

Open
@gazzat5

Description

@gazzat5

Hi there,

I have a bme680 pressure sensor which is giving fairly stable pressure readings:
image

However when I use the pressure sensor readings to set the ambient pressure for the scd30, the output numbers for Co2 are extremely noisy (and the below is with extensive filtering):
image

I am only setting the ambient pressure after every reading from the scd30, and I have tested intervals of 5, 10 and 20 seconds between each reading but the noise remains. This is similar to the way Example 10 is doing it where it sets the pressure every time data is available as long as the pressure sensor is enabled.

When I remove the setAmbientPressure command and just use the setAltitudeCompensation command the readings are much more stable and sane.

I note that I am sending the readings from a float variable with millibar values such as 1004.79 which is getting automatically converted to an integer value as that's what the function is expecting to receive. I don't know if this is having an affect.

I'm testing on a Wemos D1 Mini pro (esp8266), and using the latest version of the SCD30 library, and the latest version of the Adafruit_BME680.h library.

I also note that the scd30 library is running it's internal beginMeasuring command every time the pressure is provided, which runs sendCommand(COMMAND_CONTINOUS_MEASUREMENT, pressureOffset), so I wonder if the sensor is being reset/restarted each time the command is sent which might explain the noisy readings...?

Can share code if needed though it is rather long (and ugly)

Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions