Lifetime of BME280?

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
RWlodarczyk
 
Posts: 8
Joined: Mon Dec 22, 2014 1:15 pm

Lifetime of BME280?

Post by RWlodarczyk »

Hi there,

I used the code from https://github.com/adafruit/Adafruit_Python_BME280 and built a RPi Zero-based sensor for my shed. Every 5 minutes, I collected the each of the data points (temp, pressure, humidity) and posted it to adafruit io. This ran fine from 6/17 until 8/30. (Roughly I collected 21600 readings.) However, on Wednesday I started to notice this error:

Code: Select all

Sep 03 16:52:45 zero monitor.py[875]: File "/usr/local/lib/python2.7/dist-packages/Adafruit_BME280.py", line 136, in __init__
Sep 03 16:52:45 zero monitor.py[875]: self._load_calibration()
Sep 03 16:52:45 zero monitor.py[875]: File "/usr/local/lib/python2.7/dist-packages/Adafruit_BME280.py", line 147, in _load_calibration
Sep 03 16:52:45 zero monitor.py[875]: self.dig_T1 = self._device.readU16LE(BME280_REGISTER_DIG_T1)
Sep 03 16:52:45 zero monitor.py[875]: File "build/bdist.linux-armv6l/egg/Adafruit_GPIO/I2C.py", line 185, in readU16LE
Sep 03 16:52:45 zero monitor.py[875]: File "build/bdist.linux-armv6l/egg/Adafruit_GPIO/I2C.py", line 164, in readU16
Sep 03 16:52:45 zero monitor.py[875]: File "build/bdist.linux-armv6l/egg/Adafruit_PureIO/smbus.py", line 173, in read_word_data
Sep 03 16:52:45 zero monitor.py[875]: IOError: [Errno 121] Remote I/O error
Actual code used:

Code: Select all

#!/usr/bin/env python

from Adafruit_IO import Client
from Adafruit_BME280 import *
import logging

logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)

aio = Client('<my key>')
sensor = BME280(t_mode=BME280_OSAMPLE_8, p_mode=BME280_OSAMPLE_8, h_mode=BME280_OSAMPLE_8)

degrees = sensor.read_temperature()
pascals = sensor.read_pressure()
hectopascals = pascals / 100
humidity = sensor.read_humidity()

logger.info('Temp      = {0:0.2f} deg C'.format(degrees))
logger.info('Pressure  = {0:0.2f} hPa'.format(hectopascals))
logger.info('Humidity  = {0:0.2f} %'.format(humidity))

try:
    aio.send("Temperature", degrees)
    aio.send("Pressure", hectopascals)
    aio.send("Humidity", humidity)
except:
    logger.error("Cannot connect to Adafruit.io")
Before debugging this further, the first thing I did was replace the initial BME280 with a second one that I had laying around. After replacing it, everything worked as it did before. Here is the output I generate under normal conditions:

Code: Select all

Sep 03 17:05:50 zero monitor.py[763]: INFO:__main__:Temp      = 36.64 deg C
Sep 03 17:05:50 zero monitor.py[763]: INFO:__main__:Pressure  = 1013.82 hPa
Sep 03 17:05:50 zero monitor.py[763]: INFO:__main__:Humidity  = 38.61 %
It seems that the initial sensor is no longer operational. What is the expected lifespan of this sensor?

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Lifetime of BME280?

Post by adafruit_support_mike »

The lifespan for most sensors depends heavily on the environment where they're used.

Could you post a photo showing the breakout the failed please? 800x600 images usually work best.

User avatar
RWlodarczyk
 
Posts: 8
Joined: Mon Dec 22, 2014 1:15 pm

Re: Lifetime of BME280?

Post by RWlodarczyk »

Sure! Sorry for the delay in posting this.

[img]
IMG_4022 copy.jpg
IMG_4022 copy.jpg (803.95 KiB) Viewed 474 times
[/img]

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Lifetime of BME280?

Post by adafruit_support_mike »

Your soldering looks excellent, and I don't see any visible signs of damage anywhere.

What kind of environment were you using it in when it failed?

User avatar
RWlodarczyk
 
Posts: 8
Joined: Mon Dec 22, 2014 1:15 pm

Re: Lifetime of BME280?

Post by RWlodarczyk »

Thanks. :)

It was in a dry environment, in my outside shed, with the breadboard placed on a shelf about chest height. When it failed the preceding days were pretty warm, with temperatures reaching above 40C.

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Lifetime of BME280?

Post by adafruit_support_mike »

Those conditions shouldn't cause any problems.

Have you tried connecting the BME280 to an Arduino to see if it responds?

User avatar
RWlodarczyk
 
Posts: 8
Joined: Mon Dec 22, 2014 1:15 pm

Re: Lifetime of BME280?

Post by RWlodarczyk »

Nope, I’ll give it a try.

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Products from Adafruit”