Skip to content

Difficulty logging from BME280 with v1.11 #109

@adamgarbo

Description

@adamgarbo

Subject of the issue

Hey @PaulZC, I've noticed that my OLA is having a hard time logging data from a SparkFun Qwiic BME280. I recently left it logging for a couple of weeks and discovered that no data was actually recorded. It's been a while since I've worked with the OLA, and wasn't sure if v1.11 (and v2.x of the Apollo3 Core) introduced some quirks that I may not be aware of.

Your workbench

  • Are you using a microSD card? If so, what size? How is it formatted (FAT, FAT32, or exFat)?
    • 32 GB FAT32
  • At what frequency are you logging? For example, 10Hz, 1Hz, once every 5 seconds, etc.
    • 10 s
  • What version of firmware are you using? This is shown at boot, for example: "Artemis OpenLog v1.10"
    • v1.11
  • How is OpenLog Artemis wired to your sensor(s)?
    • Qwiic cable
  • How is everything being powered?
    • 4.2V LiPo
  • Are there any additional details that may help us help you?
    • I tested both enabling/disabling power to the Qwiic bus between measurements

Steps to reproduce

  • Connect BME280
  • Configure OLA to record once every 10 seconds
  • Disconnect USB-C and press reset button to create a new log file.

Expected behaviour

  • Data should be logged.

Actual behaviour

  • Sensor is detected:
    Autodetect complete
    PHT-BME280 online at address 0x77

  • The collected data (see below) looks to just be the default values from the registers or whatever was in memory.

  • It seems that the sensor is read from correctly while connected to Serial Monitor, but no dice when not connected to Serial.

  • Logging also doesn't work when disabling power to Qwiic bus while connected to Serial Monitor:
    1) Turn off Qwiic bus power between readings (>2s): Yes

  • I suspect that there may be a simple solution and there's something I've missed (or forgotten)!

rtcDate,rtcTime,VIN,pressure_Pa,humidity_%,x,temp_degC,count,
11/28/2021,11:50:59.73,3.99,71554.79,94.99,2839.12,19.66,18400,
11/28/2021,11:51:09.73,3.99,71554.79,94.99,2839.12,19.66,18401,
11/28/2021,11:51:19.74,3.98,71554.79,94.99,2839.12,19.66,18402,
11/28/2021,11:51:29.74,3.99,71554.79,94.99,2839.12,19.66,18403,
11/28/2021,11:51:39.74,3.98,71554.79,94.99,2839.12,19.66,18404,
11/28/2021,11:51:49.72,3.99,71554.79,94.99,2839.12,19.66,18405,
11/28/2021,11:51:59.72,3.99,71554.79,94.99,2839.12,19.66,18406,
11/28/2021,11:52:09.72,3.99,71554.79,94.99,2839.12,19.66,18407,
11/28/2021,11:52:19.73,3.98,71554.79,94.99,2839.12,19.66,18408,
11/28/2021,11:52:29.73,3.98,71554.79,94.99,2839.12,19.66,18409,
11/28/2021,11:52:39.73,3.98,71554.79,94.99,2839.12,19.66,18410,
11/28/2021,11:52:49.73,3.98,71554.79,94.99,2839.12,19.66,18411,
11/28/2021,11:52:59.73,3.99,71554.79,94.99,2839.12,19.66,18412,
11/28/2021,11:53:09.73,3.99,71554.79,94.99,2839.12,19.66,18413,
11/28/2021,11:53:19.73,3.99,71554.79,94.99,2839.12,19.66,18414,
11/28/2021,11:53:29.72,3.98,71554.79,94.99,2839.12,19.66,18415,
11/28/2021,11:53:39.72,3.98,71554.79,94.99,2839.12,19.66,18416,
11/28/2021,11:53:49.72,3.98,71554.79,94.99,2839.12,19.66,18417,
11/28/2021,11:53:59.72,3.99,71554.79,94.99,2839.12,19.66,18418,

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