Skip to content

High current consumption #6

@PaulRB

Description

@PaulRB

Reading the temp/pressure/humidity using this library seems to leave the bme280 in a state where it consumes over 400uA, and stays like that indefinitely. It would be better if the readTempC(), readFloatHumidity() and readFloatPressure() functions put the chip into sleep or standby mode after the reading has been taken. These modes use < 1uA. See page 7 of the data sheet: http://www.mouser.com/ds/2/783/BST-BME280_DS001-11-844833.pdf

Workaround: user can call reset() after taking readings. This means that begin() must be called every time before readings are taken, e.g.:
combinedSensor.begin(); temperatureNow = combinedSensor.readTempC(); double humidityNow = combinedSensor.readFloatHumidity(); double pressureNow = combinedSensor.readFloatPressure() / 100; combinedSensor.reset();
This reduces current consumption to around 8uA vs. 400uA after readings are taken, according to my multimeter. However, as begin() calls Wire.begin(), there could be side-effects of this workaround. But workaround works OK for me.

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