$12 Arduino WiFi temp and humidity sensors for placement around a house or office.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
main/temphumidityadafruitio
unit/helloworld
.gitignore
LICENSE.md
README.md

README.md

Tinkur Humidity and Temp

Overview

Project to 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 Adafruit tutorial and code for ESP8266 Temperature / Humidity Webserver.

Hardware

Setup

  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_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. Compile and Upload Sketch in Arduino IDE

  2. Use Arduino IDE Termainl to debug