OpenGarage Forums Comments, Suggestions, Requests Temperature, humidity

This topic contains 10 replies, has 5 voices, and was last updated by  Gompka 2 years, 7 months ago.

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #95

    Anonymous

    Hi,

    OpenGarage is great handy tool.

    You may consider adding temperature and humidity sensor (like DHT22)?

    Thanks.

    #126

    Ray
    Keymaster

    Actually the first design of OpenGarage did have a temperature sensor on board, but it was dropped in the final design. It’s nice to have extra sensors, but it’s hard to know how many users need them, and DHT22 is quite expensive honestly, so we would rather not have to include such components if most users don’t need them.

    #137

    Hello Ray,

    I am going to attempt to make a version of open garage and i was also very interested in adding a dht22. Is there a provision in the code to add the sensor if i want to or can you provide the code to get the dht22 working?

    Thank you,

    Dave

    #138

    Ray
    Keymaster

    Hi Dave,

    To get DHT22 to work, you just need the DHT22 library:
    https://github.com/adafruit/DHT-sensor-library
    and it requires a spare GPIO pin. On OpenGarage, GPIO 4 and 5 are spare pins and are mapped out, so you can use either of them.

    Alternatively, there are I2C versions of DHT22 (for example, AM2320). GPIO 4 and 5 happen to be the hardware I2C SDA and SCL pins respectively, so you can also use AM2320. The library for AM2320 can be found here:
    https://github.com/thakshak/AM2320

    #269

    Gompka
    Participant

    Ray, i can get the dht sensor working with the blynk examples and my wemos d1, however when it comes to open garage the code is much more complicated and I don’t even know where i should reference the dht.h library and where i can define the dht pin. I’m sorry to be a pita, but this is the last bit i need to get working, any help is greatly appreciated.

    #270

    Ray
    Keymaster

    Just reference dht.h in main.cpp. You can define the dht pin anywhere, but I would suggest defining it in defines.h as that’s where all hardware pins are specified.

    #279

    Gompka
    Participant

    Ray, i finally got everything working, thank you for your direction, i am just waiting for a project box to come in and will be installing this on the garage!

    #280

    szormpas
    Participant

    Hi Gompka,

    I am also interested in adding a dht22. Could you please share the details of your project (code modifications, DHT22 version, library, pin diagram etc.)?

    Have you also made changes on opensprinkler UI or you just use blynk app?

    All these could be very useful for users with little programming experience like me.

    Thanks
    Sotirios

    #286

    Gompka
    Participant

    Sotrios I will start a separate post with a more detailed write up on what I did. I’m working on it, will takeemail another day or two.

    #287

    szormpas
    Participant

    thanks, I am looking forward to your post.

    #289

    Gompka
    Participant

    Here is a link to my post wemos d1 and dht22

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.

OpenGarage Forums Comments, Suggestions, Requests Temperature, humidity