Closed dougseven closed 8 years ago
Looks pretty straight forward!
@dougseven I have another user that's reporting issues with the Grove Temp & Humidity sensor; they reported it was a BMP180, but a photograph of their hardware reveals that it's actually this component. I'd like to implement the controller driver for this today.
I had started looking into it, but haven't had time to work on it. I can look at it more today.
Do you mind if I just take over?
Go for it - happy to help (test, etc.)
Excellent—I will call on you to do so :)
@dougseven ready for testing—update to latest version
I'm going to try a different board with the official Yocto image, but using "latest" for johnny-five and edison-io with ubiLinux and Node v4.3.1 gets this:
NOTE: I have previously run a johnny-five app on this board in this configuration.
root@ubilinux:~/iot-labs/azure-iot# node iot-starter-kit.js NOTICE
This OS image is no longer supported. Please upgrade to IoTKit Image with libmraa0 support. https://github.com/intel-iot-devkit/mraa/#installing-on-your-board
/root/iot-labs/azure-iot/node_modules/edison-io/node_modules/galileo-io/lib/galileo.js:48 if (Pin.IO.getPlatformType() === 2) { ^
TypeError: Cannot read property 'getPlatformType' of undefined
at Object.
Weird, that should only happen if the native bindings are missing 0_o
I set up a new Edison with the official Yocto image. I get some very radical readings using the sample for the TH02 - 80-degree swings (in Celsius).
celsius : 102
fahrenheit : 215.6
kelvin : 375.15
--------------------------------------
Hygrometer
relative humidity : 52
--------------------------------------
temperature
celsius : 102.375
fahrenheit : 216.275
kelvin : 375.525
--------------------------------------
Hygrometer
relative humidity : 52.1875
--------------------------------------
temperature
celsius : 102.375
fahrenheit : 216.275
kelvin : 375.525
--------------------------------------
Hygrometer
relative humidity : 52.1875
--------------------------------------
temperature
celsius : 22
fahrenheit : 71.6
kelvin : 295.15
--------------------------------------
Hygrometer
relative humidity : 12.375
--------------------------------------
temperature
celsius : 22
fahrenheit : 71.6
kelvin : 295.15
--------------------------------------
Hygrometer
relative humidity : 12.375
--------------------------------------
Other times it would start, read a couple times and then stop reading/outputing to the console:
root@edison:~/iot-labs/basic# node th02.js
1458718176636 Device(s) Intel Edison
1458718176653 Connected Intel Edison
1458718176676 Repl Initialized
>> temperature
celsius : NaN
fahrenheit : NaN
kelvin : NaN
--------------------------------------
Hygrometer
relative humidity : -24
--------------------------------------
temperature
celsius : -50
fahrenheit : -58
kelvin : 223.14999999999998
--------------------------------------
Hygrometer
relative humidity : -24
--------------------------------------
That is where it would stop and nothing more would happen. I can stop it (Ctrl+C twice) and run it again, or another simple sample. Not sure what is happening or how to debug it. I tried it with multiple Grove - Temperature&Humidity Sensor (High-Accuracy &Mini).
Interesting, I will have a closer look and double check that the initialization operations are correct.
Well, I missed the status check :\
And of course, I don't have my TH02 with me (I'm in Boston until tomorrow). I have a fix for this, but I just need to double check it against actual hardware, so I should have something by Saturday
If it's in a branch I can pull then I can test it tonight. No rush though.
@dougseven I completely forgot to ping you on this; you can pull and run the last round of work from master
I would like to add support for the Grove - Temperature & Humidity Sensor that is included in the Grove Indoor Environment Kit for Intel® Edison. It utilizes a TH02 sensor that can meet measurement needs of general purposes. The C driver for the TH02 is here