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

Science 2022 - Polling Sensors - Temperature and RH #425

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

Stanlist
Copy link
Collaborator

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.

@jahnavithota2011
Copy link
Contributor

jahnavithota2011 commented Jul 10, 2022

@Stanlist Good Job on the PR! I few questions:

  • Did you build your DHT22 files of https://os.mbed.com/users/Wimpie/code/DHT//file/9b5b3200688f/DHT.cpp/. If yes, is there a reason why you are not using the original files.
  • When you were testing the sensors, were you able to get sensible values? If yes how stable were the readings.
  • Your PR has merge conflicts, can you please resolve and rebase the branch.

@Stanlist
Copy link
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.

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