Introduction: Display Temperature and Humidity and Upload to ThingSpeak

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!

Comments

author
robkabob147 (author)2016-10-13

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?

author
lspoplove (author)robkabob1472016-10-16

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.

author
tochinet (author)robkabob1472016-10-14

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.

author
jrlv (author)robkabob1472016-10-13

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

author
johnstatham (author)jrlv2016-10-13

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

author
robkabob147 (author)2016-10-14

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.

author
weecoo (author)2016-10-14

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.

author
tochinet (author)weecoo2016-10-14

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.

author
Rebelxxx (author)2016-10-13

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

author
VicP1 (author)2016-10-13

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

author
Akin Yildiz (author)VicP12016-10-13

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
author
DIYmechanics (author)2016-10-11

good tutorial

About This Instructable

20,829views

252favorites

License:

More by lspoplove:How to Attack WiFi by Pocket 8266Pocket 8266 --ESP8266+18650 Battery(DHT to Thing Speak Project)Make a WiFi Necklace
Add instructable to: