support for si7012 i2c temp/hum sensor
Moderators: grovkillen, Stuntteam, TD-er
support for si7012 i2c temp/hum sensor
Hi,
I noticed that this project looks very good. I'm using nog some temp/humidity sensor with esp and lua with fhem software.
It should be bette to have it run with arduino , so this project looks very good.
Is there a way to get hardware support for the si7012.
lua examples : https://github.com/nodemcu/nodemcu-firm ... les/si7021
arduino library: https://forum.pjrc.com/threads/29237-Si ... or-Library
regards Richard
I noticed that this project looks very good. I'm using nog some temp/humidity sensor with esp and lua with fhem software.
It should be bette to have it run with arduino , so this project looks very good.
Is there a way to get hardware support for the si7012.
lua examples : https://github.com/nodemcu/nodemcu-firm ... les/si7021
arduino library: https://forum.pjrc.com/threads/29237-Si ... or-Library
regards Richard
Re: support for si7012 i2c temp/hum sensor
I think this is possible, but I don't have one to test. I will order a few on eBay so we can have a look at this.kroonen wrote:Is there a way to get hardware support for the si7012.
regards Richard
Re: support for si7012 i2c temp/hum sensor
I just received two chinese si7021 modules, with both modules I get a checksum error.
Are both modules corrupt or can it be an other problem?
Are both modules corrupt or can it be an other problem?
Re: support for si7012 i2c temp/hum sensor
I have tested the modules on an arduino mega 2560 with the following library https://forum.pjrc.com/attachment.php?s ... 1437698680
The example in this library is working correct
The example in this library is working correct
Re: support for si7012 i2c temp/hum sensor
I have tested the modules on an arduino mega 2560 with the following library https://forum.pjrc.com/attachment.php?s ... 1437698680
The example in this library is working correct
The example in this library is working correct
Re: support for si7012 i2c temp/hum sensor
Hi,
I aslo tested with an si7021, that works ok with an esp8266 with lua. I also get these errors
Log
6939298 : HTTP : connection failed
6940323 : SI7021 : checksum error!
6940336 : SI7021 : Read Error!
regards richard
I aslo tested with an si7021, that works ok with an esp8266 with lua. I also get these errors
Log
6939298 : HTTP : connection failed
6940323 : SI7021 : checksum error!
6940336 : SI7021 : Read Error!
regards richard
Re: support for si7012 i2c temp/hum sensor
I did not build this plugin, but I do have one of those devices. Didn't test it before, since I've guested that the plugin would just work.
I figured out that in my testlab, it also gets a read error with the default settings.
But if I change the resolution to 12 bit, it does work fine!
It works with 13 and 12 bits. It does NOT work with 14 and 11 bits. Strange.
Could you guys verify if your situations are similar to mine?
I figured out that in my testlab, it also gets a read error with the default settings.
But if I change the resolution to 12 bit, it does work fine!
It works with 13 and 12 bits. It does NOT work with 14 and 11 bits. Strange.
Could you guys verify if your situations are similar to mine?
Re: support for si7012 i2c temp/hum sensor
My results are the same as yours.
Re: support for si7012 i2c temp/hum sensor
Same results here.
Re: support for si7012 i2c temp/hum sensor
So the good news: There are at least two settings that can be used.
And the error seems consistent, so probably easier to reproduce and fix.
Maybe "Charly86" (the plugin developer) can have a look at the code?
And the error seems consistent, so probably easier to reproduce and fix.
Maybe "Charly86" (the plugin developer) can have a look at the code?
Re: support for si7012 i2c temp/hum sensor
I have 2 HTU21D (should be software compatible) boards and they also don't work. Will try with the 13/12 bit setting.
Re: support for si7012 i2c temp/hum sensor
DHT : Temperature: 23.90fluppie wrote:I have 2 HTU21D (should be software compatible) boards and they also don't work. Will try with the 13/12 bit setting.
DHT : Humidity: 52.50
SI7021 : Res=0x1 => Error 0x1
SI7021 : Read Error!
WD : Uptime 16 ConnectFailures 0 FreeMem 29296
DHT : Temperature: 23.70
DHT : Humidity: 52.50
SI7021 : checksum error!
SI7021 : Read Error!
WD : Uptime 1 ConnectFailures 0 FreeMem 27040
Still not working on 13/10 bits or 12/8 bits
Re: support for si7012 i2c temp/hum sensor
Just thought i would mention here that i made some code changes to the si7021 code because it did not work on the htu21d module either.
Changed this:-
if (resolution == SI7021_RESOLUTION_11T_11RH)
delay(4);
else if (resolution == SI7021_RESOLUTION_12T_08RH)
delay(5);
else if (resolution == SI7021_RESOLUTION_13T_10RH)
delay(8);
else
delay(12);
Too
delay(55)
And it works faultlessly so i can assume it will work on the si7021 as well.
Changed this:-
if (resolution == SI7021_RESOLUTION_11T_11RH)
delay(4);
else if (resolution == SI7021_RESOLUTION_12T_08RH)
delay(5);
else if (resolution == SI7021_RESOLUTION_13T_10RH)
delay(8);
else
delay(12);
Too
delay(55)
And it works faultlessly so i can assume it will work on the si7021 as well.
Re: support for si7012 i2c temp/hum sensor
Came here from google, confirming this works for SI7021
Re: support for si7012 i2c temp/hum sensor
may this thread now should be marked as SOLVED?
Re: support for si7012 i2c temp/hum sensor
Hi,
I can confirm that the SI7021 still won't work with R108 out of the box. Had to change the delay to 55 as mentioned.
Any chance this will get into the release?
cheers,
patrik
I can confirm that the SI7021 still won't work with R108 out of the box. Had to change the delay to 55 as mentioned.
Any chance this will get into the release?
cheers,
patrik
- Redfeather
- New user
- Posts: 6
- Joined: 22 May 2016, 20:43
- Location: Netherlands
Re: support for si7012 i2c temp/hum sensor
For me the same, i have created a pull request for this issue https://github.com/ESP8266nu/ESPEasy/pull/44pmayer wrote:Hi,
I can confirm that the SI7021 still won't work with R108 out of the box. Had to change the delay to 55 as mentioned.
Any chance this will get into the release?
cheers,
patrik
Re: support for si7012 i2c temp/hum sensor
Great work!
Who is online
Users browsing this forum: Ahrefs [Bot] and 3 guests