|
Post by bsimister on Sept 2, 2017 18:21:37 GMT -8
Just curious how to connect the HDC1080 sensor to the weatherboard?
|
|
|
Post by SDL on Sept 3, 2017 14:35:48 GMT -8
The HDC1080 Sensor is an I2C device. So you just plug it into the I2C connector on the Weatherboard.
We are now supplying this instead of the previous HTU21D-F device which required soldering.
It should be placed on the same I2C segment as the HTU21D-F was if you are building the GroveWeatherPi.
Best,
BP
|
|
|
Post by bsimister on Sept 5, 2017 14:41:30 GMT -8
That is what I figured but I am out of i2C grove connectors on the weather board.
There are 5 on the board today and are used as follows:
- Grove Anemometer - Grove Rain bucket - Grove Wind vane - i2C -> passive hub - i2c -> external temp sensor AM2315
Do I need to buy a larger i2c hub or am I missing something?
|
|
|
Post by SDL on Sept 5, 2017 18:12:46 GMT -8
Nope. Where else do you have an I2C bus plug? It just has to be on the I2C segment as the WeatherBoard, but not on the board itself. If you don't have any spare I2C bus connections available, then a solution is this: store.switchdoc.com/grove-12c-hub/BP
|
|
|
Post by doxidad on Sept 23, 2017 11:42:24 GMT -8
I have found a bug in GroveWeatherPi.py code. If you attach a HDC1080 it is recognized OK. When it is read it works fine and stores the values internally and prints them out. The problem is the next section that checks the logical to see if a HTU21D is present - which it isn't so the else on the if sets the 2 values of the temperature and humidity to 0. These zeros are reported in the DB instead of the real readings from the HDC. Quick fix is to either remove the code for the HTU or comment out the else part of the conditional. A more elegant solution can be added that checks to see if one or the other sensor is present and if neither then set the temp and humidity to zeros.
|
|
|
Post by SDL on Sept 23, 2017 12:02:50 GMT -8
That is definitely a bug. We will fix that in the next revision. Thank you for reporting that!
BP
|
|
|
Post by SDL on Oct 2, 2017 5:44:15 GMT -8
|
|