Science 2022 - Polling Sensors - Temperature and RH#425
Draft
Stanlist wants to merge 9 commits into
Draft
Conversation
…s to allow it to work with sensor module
Contributor
|
@Stanlist Good Job on the PR! I few questions:
|
Collaborator
Author
|
The code I used it taken from the DHT.cpp library, I just made some changes to it to work with our module system. I removed some of the code that wouldn't be used in our system. When I was testing, I was able to get integer values for the temperature and RH readings from the sensor, but I noticed that it would often fail the checksum that ensures the data read is valid. Other than that, the data I got looked accurate and changed appropriately when I tried grasping it in my hand or blowing on it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR sets up the driver code for the DHT22 Temperature and Relative Humidity sensor. The drivers for the sensor are adapted from https://os.mbed.com/users/Wimpie/code/DHT/. This is still a draft as the code still needs to be tested.