-
Notifications
You must be signed in to change notification settings - Fork 410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTU21D doesn't work with later mraa versions #457
Comments
I was making some changes on my weather system the other day and noted that the htu21d code has another problem. About line 226/227 there are two - one byte register reads. That should be one 16-bit read according to the documentation. I was going to update the code, but my HTU21D part died and I haven't been able to get another up and running yet to verify the fixes. Bill |
Ok, I'll probably send it up this evening or tomorrow morning. I've made the code changes and need to finish testing it. |
Hi I have checked various demo and startup programs from the arduino IDE, there are great differences including the one you are pointing out on the 2byte readings. There is another one concerning the release of the i2c bus which is necessary if another sensor is on the same bus. Have you seen this one (I found it on the datasheet)? Do you intend to amend it in your proposal ? i have had no time to come into the code but I may find some time this weekend if that helps, let me know. Thanks for your work. |
How can I remove my #433 proposal ? Thanks |
I have a pull request up that will make a change to the reset function. It was missing the actual command to perform the reset. I use this sensor in combination with other sensors without any issue. You do need to make sure you have adequate pull-up resistors to either 3.3 or 5v (usually 3K - 10K) for both the SDA and SCL signals. Bill |
When can we expect this package fixed on npm? Or can someone build the latest verison and provide us with the .node file so we can update manually? Thanx! |
Hi @rista86. If you want to test this manually, download the latest development ipk from here. It can be unzipped (twice) and you will find the .node module in there. Built with Node 4 for i586 (Galileo, Edison, Minnowboard 32-bit). Meanwhile we are coming up with a generic solution for npm that will allow you to install the UPM modules regardless of Node version and architecture, but it will take a little longer. See #325 also. |
Le 31/08/2016 à 19:27, Mihai Tudor Panu a écrit :
I have cheked the code on a minibreakout with level shifter and with the It is still not possible to detect the HTU21D with the iodetect command best regards —
Gérard Vidal |
I've seen at least 2 other sensors that don't show up in the table with i2cdetect but work fine when you start sending commands to them from MRAA. It might be very well the fact that i2cdetect tries to read a byte and some devices transfer a full word at a time, as @whpenner suggested on the forums. Thanks a lot for confirming the sensor module works as expected after the patch! |
Mraa's i2c error dection fixes have broken the HTU21D driver - see details here: https://communities.intel.com/thread/104939
The text was updated successfully, but these errors were encountered: