TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ADRIAN
from: DAVID TAYLOR
date: 2020-06-16 14:45:00
subject: Re: Raspberry Pi2 and BME

On 16/06/2020 14:01, Adrian wrote:
> The BME 280 sensor is a temperature/humidity/pressure sensor, and is
> recommended for use with the PI weather station project :
>
> https://projects.raspberrypi.org/en/projects/build-your-own-weather-stati
> on
>
> I've found this easier to use than the DHT22, which I had been using as
> a temperature/humidity sensor.  I've also found that the DHT22 always
> seems to time out when I try to use it with either Stretch or Buster, so
> as I upgrade the OS on my various PIs, I've been changing from the DHT22
> to the BME280.
>
> I've now installed several of these on a number of PI3s without any
> problems, but when I've tried it on 3 different PI2s I get various results.
>
> When it comes to working with the BME280, Pi A seems to perform OK, Pi B
> works most of the time (e.g. weeks on end), but has occasional sulks,
> which can last for several hours at a time, and Pi C refuses point blank
> to play at all.  When I'm having problems, I get the following :
>
> Traceback (most recent call last):
>    File "/home/pi/weather_station/bme280_sensor.py", line 9, in 
>      bme280.load_calibration_params(bus, address)
>    File "/usr/local/lib/python3.5/dist-packages/bme280/__init__.py",
> line 153, in load_calibration_params
>      compensation_params.dig_T1 = read.unsigned_short(0x88)
>    File "/usr/local/lib/python3.5/dist-packages/bme280/reader.py", line
> 40, in unsigned_short
>      return self._bus.read_word_data(self._address, register) & 0xffff
>    File "/usr/local/lib/python3.5/dist-packages/smbus2/smbus2.py", line
> 453, in read_word_data
>      ioctl(self.fd, I2C_SMBUS, msg)
> OSError: [Errno 121] Remote I/O error
>
> I've had a number of sessions of trawling through the Internet, but I
> haven't come across anyone else having this problem (I've had a thread
> running on the Pi Forum, but that has been inconclusive, but I'll also
> post this there for completeness).
>
> Using /etc/os-release and pinout, I find that Pi A has the following
> config :
>
> PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
> NAME="Raspbian GNU/Linux"
> VERSION_ID="10"
> VERSION="10 (buster)"
> VERSION_CODENAME=buster
> ID=raspbian
> ID_LIKE=debian
> HOME_URL="http://www.raspbian.org/"
> SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
> BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
>
> Pi Model B+  V1.2
> Revision           : 0010
> SoC                : BCM2835
> RAM                : 512Mb
> Storage            : MicroSD
> USB ports          : 4 (excluding power)
> Ethernet ports     : 1
> Wi-fi              : False
> Bluetooth          : False
> Camera ports (CSI) : 1
> Display ports (DSI): 1
>
> Pi B :
>
> PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
> NAME="Raspbian GNU/Linux"
> VERSION_ID="10"
> VERSION="10 (buster)"
> VERSION_CODENAME=buster
> ID=raspbian
> ID_LIKE=debian
> HOME_URL="http://www.raspbian.org/"
> SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
> BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
>
> Pi Model 2B  V1.1
> Revision           : a01041
> SoC                : BCM2836
> RAM                : 1024Mb
> Storage            : MicroSD
> USB ports          : 4 (excluding power)
> Ethernet ports     : 1
> Wi-fi              : False
> Bluetooth          : False
> Camera ports (CSI) : 1
> Display ports (DSI): 1
>
> Pi C:
> PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
> NAME="Raspbian GNU/Linux"
> VERSION_ID="9"
> VERSION="9 (stretch)"
> VERSION_CODENAME=stretch
> ID=raspbian
> ID_LIKE=debian
> HOME_URL="http://www.raspbian.org/"
> SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
> BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
>
> Pi Model 2B V1.2
> Revision           : a22042
> SoC                : BCM2837
> RAM                : 1024Mb
> Storage            : MicroSD
> USB ports          : 4 (excluding power)
> Ethernet ports     : 1
> Wi-fi              : False
> Bluetooth          : False
> Camera ports (CSI) : 1
> Display ports (DSI): 1
>
> Apart from replacing the existing PI2s with PI3s, any suggestions ?
>
> Adrian

If it helps, it's working here on a 1B, Wi-Fi, running Buster:

   https://www.satsignal.eu/mrtg/performance_air_temp.php#down

--
Cheers,
David
Web: http://www.satsignal.eu

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.