Hey everyone,
I have some trouble getting believable readings of the Temperature&humidity sensor (High Accuracy&Mini) v1.0 in combination with the GrovePi+ and Raspberry 2 B+.
It has the latest Jessie image, the firmware of the GrovePi+ is also updated.
When using the grove_i2c_temp_hum_mini.py
and the other script, the readings are all over the place. The temperature is somewhere between 30 C and 222 C (if you breath on it), and the humidity is between -24 and 200 % (again after breathing on the sensor). The changes occur within 1 second, so an example of 10 seconds of running the script gives me
(46.125, 8.0)
(54.125, -8.0)
(254.125,200.0)
(187.65, 123.0)
(110.51, 18.0)
(46.125, -8.0)
(46.125, 4.0)
(54.125, 24.0)
(16.125, 22.0)
(36.75, -4.0)
This readings occur within 1 second.
The sensor is connected to the I2C-2 port, but I have also tried I2C-1 and I2C-3, SERIAL and D4 (and tried different python-scripts, grove_temperature_sensor.py
, grove_dht_pro.py
)
What can cause this problem?
I guess the sensor is found by the Raspberry Pi, when i2cdetect -y 1
is run,
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: 40 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --