Skip to content

Conversation

erikmav
Copy link
Contributor

@erikmav erikmav commented Nov 25, 2018

Update to pigpio version 1.2.0 containing new getTick() and tickDiff() functions, and use those functions to fix a problem with reading the sensor repeatedly. Ensure the DHT11 data pin is set high when still in output mode before switching to input mode, to ensure the sensor can see the difference in voltage from reading to reading, and track the baseline start tick value from that voltage change.

This fix is working in a DHT11 based sensor project that reads the sensor once per minute for multiple days in a row successfully.

@erikmav
Copy link
Contributor Author

erikmav commented Dec 7, 2018

@depuits Possible to merge this and issue a new package? I'm using this in a project and would like to get official packages.

@depuits
Copy link
Owner

depuits commented Dec 7, 2018

I'll test it this weekend but it looks good.

@depuits depuits merged commit dbde808 into depuits:master Dec 8, 2018
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

Successfully merging this pull request may close these issues.

2 participants