002.NODEMCU + DHT11 + Cayenne
NODEMCU + DHT11 + Cayenne
NODEMCU Temperature(DHT11) Server + Cayenne
Using arduino sketch
NODEMCU + DHT11 + Cayenne
This sensor is DHT22 but same using pin for DHT11
IDE Setting
How to Esp3266 Board add
- https://www.youtube.com/watch?v=RVSCjCpZ_nQ
- https://zelkun.tistory.com/entry/031-Arduino-아두이노-보드-추가하기Adding-Arduino-Boards
ESPAsyncTCP & WebServer library
Cayenne Library
How to Library Add
- https://zelkun.tistory.com/entry/023-Arduino-아두이노-DH11-Sensor-Module-온습도-센서-모듈
- https://zelkun.tistory.com/entry/012-Arduino-아두이노-library-라이브러리-추가하기
DHT11 Lib Add
Library manager search & install
Adafruit DHT sensor library
Adafruit Unified Sensor
Cayenne Web & App
steps
- https://cayenne.mydevices.com
- sign up
- Add new Device/Widget
- Generic ESP8266 (All Device)
- Check Info
MQTT USERNAME
MQTT PASSWORD
CLIENT ID
Modify Your Source
WiFi SSID, PASSWD
Cayenne Authentication info
full source
// WiFi network info.
const char ssid[] = "your wifi ssid";
const char wifiPassword[] = "your wifi passwd";
// Cayenne authentication info. This should be obtained from the Cayenne Dashboard.
char username[] = "cayenees mqtt username";
char password[] = "cayenees mqtt passwd";
char clientID[] = "cayenees mqtt client id";
Upload Source
Arduino sketch
board select > esp8266
source upload
Run
Connect NODEMCU
- https://zelkun.tistory.com/entry/008-Arduino-아두이노-스케치-시리얼-모니터Seial-Monitor-사용방법 Using arduino sketch Serial Monitor and cheking your Nodemcu ip (192.168.0.x)
using browser and connecting ip address (192.168.0.x)
Caynees Dashboard
this is raspberry pi Dashboard but same.
Add Widget
if you want different widget, use to button “Add Device/Widget”
ref
- https://raw.githubusercontent.com/RuiSantosdotme/Random-Nerd-Tutorials/master/Projects/ESP8266/ESP8266_WiFi_DHT_Web_Server.ino
- https://zelkun.tistory.com
- https://cayenne.mydevices.com