Display Temperature and Humidity and Upload to ThingSpeak

22,335

256

12

D-duino is a platform. Its 0.96 OLED is very useful to display some important information.

Today I successfully displayed temperature and humidity and uploaded to ThingSpeak.

Step 1:

Prepare:

D-duino x1

18650 shield x1

DHT11 sensor x1

Step 2: Connect

Connect DHT11 sensor's RED,BLACK pin to D-duino's 5V and GND.

Connect DHT11 sensor's Green line to D-duino's D4 pin

Step 3: Programming and Test ThingSpeak

Please follow this project :DHTtoThingSpeak

You need to build a new channel with 2 chart.

Remember your API key and copy it to the code.

After changing WiFi ssid and password and API key. You can upload code into D-duino.

Wait several seconds you will find the data displayed on the oled.

Here I set it upload to ThingSpeak every 60 seconds.

Not only DHT sensor but also other sensor is OK!

Share

    Recommendations

    • First Time Author

      First Time Author
    • Big and Small Contest

      Big and Small Contest
    • Toys Contest

      Toys Contest

    12 Discussions

    0
    None
    robkabob147

    2 years ago

    If you were to have this run on an external battery, how long would it last? Does it have a big draw? Is there a way you could tap into the fridges electricity so it will always have power?

    4 replies
    0
    None
    lspoploverobkabob147

    Reply 2 years ago

    How long depends on how to write the code.
    Here I set it upload every minutes. So it last only several hours.
    In fact monitor such things we do not need to monitor it all the time.

    0
    None
    tochinetrobkabob147

    Reply 2 years ago

    Wifi does consume a lot of power, so it won't last long. In this project using a 18650 shield is a good idea, because it means you can recharge the battery every day/week like your smartphone. For long duration, you need to use another radio technology. I personally use panstamps with DHT22 on "battery board" and a single AA alkaline battery (1.5V) goes for 3-4 month. It also monitors the battery voltage, from 1.55V to 0.9V over the weeks. Using a rechargeable 2200mAh AA 1.2V cell would only last 2-3 weeks.

    0
    None
    jrlvrobkabob147

    Reply 2 years ago

    I think the second picture in the first step shows it running off a battery (an 18650 that is labeled as 4800mAh).

    0
    None
    johnstathamjrlv

    Reply 2 years ago

    Nice project. I too am interested in power consumption /battery life

    0
    None
    robkabob147

    2 years ago

    I understand that bluetooth is a lot less harsh on batteries. Could you hook it up that way?

    Or an example my Lyric thermostat is wifi based, but the Li-on AAA battery that is in there lasts for over a year. And that runs the wifi connection and the lcd display.

    Id love to put one of these in my fridge and then get warnings if the power fails or something so I can realize it before the food gets ruined.

    0
    None
    weecoo

    2 years ago

    I just built something like this yesterday using Rbpi zero and a DS18B20 plus a USB WiFi module. I chose to use DS18B20 instead of DHT11 because I do not need humidity and have found the temperature accuraty more reliable. The total cost (without general cables) was ~ $18 consisting of the Rbpi zero, a MicroSD card, a DS18B20 and a WiFi module. The system can, of course be extended with DHT11 modules and several Dallas chips.

    1 reply
    0
    None
    tochinetweecoo

    Reply 2 years ago

    I agree DHT11 is not reliable. However, I use DHT22 for 5 years now, and it is uncredibly stable 0.1°C precision and regularity, checked with "conventional" thermoter. Actually better than the 18B20.

    0
    None
    Rebelxxx

    2 years ago

    easyIoT server or easyIoT cloud could be a cheaper sollution for home project. Actually it would cost only ... components price...

    0
    None
    VicP1

    2 years ago

    30 or 40 bucks for 1 monitor point/how about multiple sensors

    1 reply
    0
    None
    Akin YildizVicP1

    Reply 2 years ago

    you can make the same device (without screen) uploading to blynk smartphone app and even control AC outlets for under $10 (while still able to add multiple sensors) - download & zoom to the attached picture
    www.blynk.cc
    http://r.ebay.com/bnNOb3

    13115928_995550127188493_3783325008914098178_o.jpg