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

add DHT22 #1106

Merged
merged 8 commits into from
Jan 18, 2022
Merged

add DHT22 #1106

merged 8 commits into from
Jan 18, 2022

Conversation

mkinney
Copy link
Contributor

@mkinney mkinney commented Jan 16, 2022

Add DHT22 sensor (similar to the DHT11 sensor, but the library does different stuff):

For example, from DHT.cpp:

    switch (_type) {
    case DHT11:
    case DHT12:
      f = data[0] + data[1] * 0.1;
      break;
    case DHT22:
    case DHT21:
      f = ((word)data[0]) << 8 | data[1];
      f *= 0.1;
      break;
    }

@mkinney
Copy link
Contributor Author

mkinney commented Jan 16, 2022

I guess I needed to merge the protobufs change before the CI build.

@mkinney
Copy link
Contributor Author

mkinney commented Jan 17, 2022

This compiles and runs ok on my Heltec, but I cannot seem to get any readings from it. I've got some DHT11's on order. Also, going to see if Garth can send me some soldered headers.

@mkinney mkinney merged commit 6ca3186 into meshtastic:master Jan 18, 2022
@crossan007
Copy link
Contributor

For what it's worth, my experience with the DHT11 has bee that comms is rather flaky (hence the slight overkill on managing retry options)

@mkinney mkinney deleted the add_more_env_sensors branch January 21, 2022 00:08
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.

3 participants