/TinkurHumidityTemp

$12 Arduino WiFi temp and humidity sensors for placement around a house or office.

Primary LanguageC++OtherNOASSERTION

Tinkur Humidity and Temp

Overview

Project for measuring humidity and temperature using an HiLetgo ESP8266 NodeMCU and HiLetgo DHT22 sensor and send date to Adafruit IO to create a visual dashboard.

Adapted from:

TODO

  • Try 47k resistor vs 27k to lower max voltage enough and work with this math
  • Try 3.2v factor vs 5v factor since the board runs at 3.x volts

Hardware

Wiring

See Fritzing design in /fritzing directory.

This is an image

Setup

The following assumes OSX:

  1. Download and install the Arduino IDE

  2. Download and install the CP210x USB to UART Bridge VCP Drivers so the USB chipset on the NodeMCU can communicate with your computer

  3. Clone this repo from GitHub to your computer

  4. Create an Adafruit IO account to store your data and create a dashboard of your data

  5. Open /main/temphumidityadafruitio/ in the Arduino IDE and create a 'secrets.h' file

Create a 'secrets.h' file in the Sketch's root directory (ex. /main/temphumidityadafruitio/) with the following contents:

#define WLAN_SSID       "WiFiSSID"
#define WLAN_PASS       "WiFiPassword"

#define AIO_HUM_FEED   "/feeds/garage-humidity"
#define AIO_TEMP_FEED  "/feeds/garage-temperature"
#define AIO_MOISTURE_FEED  "/feeds/garage-moisture"
#define AIO_SERVER      "io.adafruit.com"
#define AIO_SERVERPORT  1883
#define AIO_USERNAME    "AdafruitIOUsername"
#define AIO_KEY         "AdafruitIOKey"

The 'secrets.h' file is ignored by Git.

  1. Install support for NodeMCU boards in the Arduino IDE.

  2. Download and install Arduino libraries needed by this project.

See Arduino IDE library tutorial if needed.

  1. Setup Arduino IDE under Tools menu:
  • Board: NodeMCU 1.0 (ESP=12E Module)
  • CPU Frequency: 80MHz
  • Flash Size: 4M (3M SPIFFS)
  • Upload Speed: 115200
  • Port: SLAB_USBtoUART (or similar)
  1. Wire NodeMCU and DHT22:
  • DHT22 "-" to NodeMCU "GND"
  • DHT22 "+" to NodeMCU "3.3v"
  • DHT22 "out" to NodeMCU "D2"
  1. Plug in the board via USB via the Apple USB A to C adapter (don't use a USB hub)

  2. Compile and Upload Sketch in Arduino IDE

  3. Use Arduino IDE terminal to debug at 115200 baud

Resources