Skip to content
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

Does not work as is for ESP8266 #9

Open
seblucas opened this issue Oct 17, 2016 · 3 comments
Open

Does not work as is for ESP8266 #9

seblucas opened this issue Oct 17, 2016 · 3 comments

Comments

@seblucas
Copy link

Hi,

I spent some time on your library this weekend. I was using it for some time with my moteinos (and without any problem).

But I saw that it does not seem to work as is on any of my ESP8266 (Wemos, Nodemcu v1.0, bare ESP12) all working at 80MHz. I found out that there was two problems :

The higher delay is strange as the datasheet (page 5) mention a worst case conversion time of 12ms. I've used 85ms everywhere and it worked fine but I guess it can be lowered.

I'll probably do a PR about that, once I'm sure that my sensor is working fine for a full week.

Another modification I made was to add CRC check of RH and Temp (Page 17 of the datasheet). Are you also interested by that (as a PR) ?

Thanks a lot for your work (and also for the moteinos)

@LowPowerLab
Copy link
Owner

LowPowerLab commented Oct 18, 2016

Hi, thanks for the suggestions. If you submit a PR for the timings I can merge those. Also, I would expect these to be wrapped in ESP8266 preprocessor checks, so they won't influence AVRs.
The CRC check should be a separate PR if you'd like to submit that also.
Thanks again!

@seblucas
Copy link
Author

I'll do the timings PR as soon as I'm sure it's rock solid, so next weekend hopefully (don't worry they will be properly enclosed like there).

About the CRC, for the last year I had 3 moteinos with SI7021 doing temperature / humidity reading every 15 minutes (so more than 200 000 CRC checks) and I never had a single error on normal conditions (I had some CRC problems when the battery was really low but then even using RF was dodgy). So I don't know if that's really usefull but I kept it just in case (tm).

@LowPowerLab
Copy link
Owner

Thanks,
RE the CRC, i never heard of a problem from anyone so I'm not very concerned with that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants