DHT11 temperature and humidity measurement with Croduino Basic and display

Customer:

I’m sending an assembly and program for measuring temperature and humidity with a DHT11 sensor and display on Croduino Basic. I hope my comments are useful. If so, we can continue working together. I also expect responses from you, which would mean the collaboration is working and mutual. Feel free to point out errors in my comments. The attached schematic and program have been tested and the assembly works, which you can easily verify.

Original message (Croatian)

E-radionica!

U privitku šaljem sklop i program mjerenja temperature i vlage sa

senzorom DHT11 i prikazom na displayu.

Ja se nadam da moje pisanje i komentari imaju svrhu. Ako je to tako

možemo i dalje surađivati.

Isto tako očekujem odgovore od Vas, a to onda znači da je suradnja u

redu i obostrana.

Slobodno ukažite na greške u mojim komentarima .Priložena shema i

program su ispitani i sklop

radi , što Vi možete vrlo lako provjeriti.

[name removed]

dipl.ing.elektrotehnike

Attachment omitted in migration: Temp i vlaga.doc

Attachment omitted in migration: img029.jpg

Attachment omitted in migration: img031.jpg

Originally submitted via email support on 15 March 2016. Migrated to the forum for community visibility.

Soldered Support:

Here are responses to your questions in order:

  1. Croduino Basic has an integrated voltage regulator. Please see the datasheet: Soldered: Open-Source Electronics, Boards, Sensors & Modules – Soldered Electronics. It connects via the VIN pin of the Croduino.

  2. Resolution will depend on the variable types used by the library. However, DHT11 accuracy is +/-2°C and +/-5% RH for humidity, which makes using float unnecessary. Please see the datasheet: Soldered: Open-Source Electronics, Boards, Sensors & Modules – Soldered Electronics

  3. DHT22 has accuracy of +/-0.5°C. Please see the datasheet: Soldered: Open-Source Electronics, Boards, Sensors & Modules – Soldered Electronics

  4. Please check the library to see if it supports both DHT sensors. Also see our tutorial using a library that supports DHT11, DHT22 and DHT21 models: https://e-radionica.com/hr/blog/2015/10/18/kkm-dht22/

  5. The datasheet is comprehensive and explains the operating principle and communication.

  6. If you need a “faster” sensor, you can use DS18B20 waterproof temperature sensor for temperature. We will soon have SHT21 breakout available. The only thing I notice in the code is if, for example, the temperature drops from a two-digit number to a single-digit number: it will take up one less position in the line, and a character from the previous measurement will remain on the LCD. You can solve this by using lcd.clear(); before each print. Or, if the LCD refreshes too much, add a space to the last string in the line (“*C” or “%”), so the string reads "*C " or "% ".

Original message (Croatian)

pobati ću redom odgovoriti na Vaše upite.

  1. Croduino Basic ima integriran regulator napona, molimo pogledajte datasheet: Soldered: Open-Source Electronics, Boards, Sensors & Modules – Soldered Electronics

Spaja se preko VIN pina Croduina.
2) Rezolucija će ovisiti o tipu varijable koje library koristi, međutim preciznost temp za DHT11 je +/-2C, te +/-5%RH za vlagu, što svakako čini nepotrebnim koristiti float. Molimo pogledajte datasheet: Soldered: Open-Source Electronics, Boards, Sensors & Modules – Soldered Electronics
3) DHT22 ima preciznost +/-0,5C.Molimo pogledajte datasheet: Soldered: Open-Source Electronics, Boards, Sensors & Modules – Soldered Electronics
4) Molim provjerite library, podržava li oba DHT senzora. Pogledajte i naš tutorial u kojem koristimo library koji podržava modela DHT11, DHT22 i DHT21: https://e-radionica.com/hr/blog/2015/10/18/kkm-dht22/
5) Datasheet je vrlo iscrpan, te objašnjava princip rada i komunikacije.
6) Ako trebate “brži” senzor, možete koristiti Vodootporni DS18B20 senzor temperature – Soldered Electronics za temperaturu. Vrlo skoro ćemo imati dostupan SHT21 breakout. Jedino što mi upada u oko u kodu je ako se, npr. temeratura spusti iz dvoznamenkastog broja u jednoznamenkasti: zauzeti će jednu poziciju manje u redu, te će karakter iz prošlog mjerenje ostati na LCDu. To možete rješiti tako da prije svakog ispisa koristiti lcd.clear(); Ili, ako se previše refresha lcd, u posljedni string u redu (“*C” odnosno “%”) dodati “razmak”. Tako da string glasi "*C ", odnosno "% ".