Yes, I am using the latest version of Raspbian Buster on Pi3
On Sat, Mar 28, 2020 at 5:07 PM Jim Bennett <[email protected]>
wrote:
> Are you running the latest version of Raspbian Buster? Are you use the
> same hardware?
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/jimbobbennett/AgroHack/issues/6#issuecomment-605519592>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AONG7SFPONJQ7PMK74Y3KFLRJZRHZANCNFSM4LVTBTTQ>
> .
>
Updated the I2c as suggested below, still having same issue.
https://github.com/jimbobbennett/AgroHack/blob/master/Steps/SetUpTheEnvironmentMonitor.md#turn-on-the-i2c-interface
you are correct, just turned it on seems to resolve one issue
this worked -- bus = smbus2.SMBus(bme_pin)
now having issues with the below module
calibration_params = bme280.load_calibration_params(bus, bme_address)
Traceback (most recent call last):
File "app.py", line 16, in <module>
calibration_params = bme280.load_calibration_params(bus, bme_address)
File "/home/pi/EnvironmentMonitor/.venv/lib/python3.7/site-packages/bme280/__init__.py", line 153, in load_calibration_params
compensation_params.dig_T1 = read.unsigned_short(0x88)
File "/home/pi/EnvironmentMonitor/.venv/lib/python3.7/site-packages/bme280/reader.py", line 40, in unsigned_short
return self._bus.read_word_data(self._address, register) & 0xffff
File "/home/pi/EnvironmentMonitor/.venv/lib/python3.7/site-packages/smbus2/smbus2.py", line 453, in read_word_data
ioctl(self.fd, I2C_SMBUS, msg)
OSError: [Errno 121] Remote I/O error
I hope so, just followed the instructions that you have given
On Sat, Mar 28, 2020 at 5:53 PM Jim Bennett <[email protected]>
wrote:
> Have you plugged the sensor into the correct socket?
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/jimbobbennett/AgroHack/issues/6#issuecomment-605524464>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AONG7SAHK2LWK3MRIMJPID3RJZWURANCNFSM4LVTBTTQ>
> .
>
Just to double check - it's a Grove BME280 Temperature/Pressure/Humidity sensor, plugged in to the bottom left I2C socket. Bottom left being the I2C sockets are on the bottom, so it's the first socket.
Are the cables in firmly on both sides?
Traceback (most recent call last):
File "SoilTemperatureSensor.py", line 1, in <module>
from sensors.BaseSensor import BaseSensor
ModuleNotFoundError: No module named 'sensors'
How to resolve this?
The code is [here](https://github.com/microsoft/farmbeatsforstudents/blob/main/farmbeats-datastreamer/sensors/SoilTemperatureSensor.py).