Skip to content

Enhancement Request: DHT22 (DHT11 DHT2302) #219

Open
@AnonymousMonkeyNo12

Description

@AnonymousMonkeyNo12

I would like to use the DHT22 Thermometer and Hygrometer sensor.

It implements it's own one-wire (1 wire) protocol.

I got it working on my rpi4 using this guide

Which downloads the following repo and runs the pi code.

https://github.com/adafruit/Adafruit_Python_DHT

Now I would like to use this sensor with diozero, since I am already controlling multiple other devices through it.

If there is currently no possibility for somebody else to implement it, I am willing to attempt to implement it myself (I have never worked with low level stuff, C or JNI before), but any pointers would be very welcome, especially in regards to:

  • How to deal with the c files
  • How to deal with different raspberry pi versions? (There are different c files depending on the device)
  • Is there already some build in stuff I can use ( I have found the one wire stuff, but it seems to be some kind of standard, contrary to the DHT22 custom protocol)

Thanks in advance and cheers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions