NodeMCU with DHT22 sensor, using Azure, Node-RED and HiveMq.
IoT with Azure, Mqtt, Arduino, NodeMCU and Node-RED tutorial Part 1https://www.youtube.com/watch?v=7ITxtLSsQrc&t=212s
NodeMCU PinOuts using D1 which = GPIO5
https://www.youtube.com/watch?v=4RTaxUfm3dM
CODE for Arduino IDE: https://github.com/itchopshop/IOT-NodeMCU/blob/master/DHTtesterTutorialPart2/DHTtesterTutorialPart2.ino
https://www.arduino.cc/en/Main/Software ******** Arduino IDE
http://arduino.esp8266.com/stable/package_esp8266com_index.json ****** Additional Boards Manager URLs
https://github.com/adafruit/Adafruit_Sensor **** Main Sensor Library
Change the following code in your Arduino C++ program to the below.
#define DHTPIN 5 // GPIO 15 (D1) ***** what digital pin we're connected to
Part 3https://www.youtube.com/watch?v=D4AVv1ntq8w&t=15s
Azure subscription, VM set up in Azure, configuring end points and Node-RED installation
https://azure.microsoft.com/en-us/free/ **** link to Azure subscription
http://nodered.org/docs/getting-started/installation.html **** Node-RED setup
https://www.java.com/en/download/windows-64bit.jsp ***** Java Install
https://nodejs.org/en/ ***** Node.js install
http://www.hivemq.com/try-out/ *** Tryout
Connect to Public Broker
Host: broker.hivemq.com
Port: 1883
Websocket Port: 8000
Part 4https://www.youtube.com/watch?v=ektTXmgxELs
Add pubsubclient library to you Arduino IDE.
http://127.0.0.1:1880/ **** Node-RED designer Url
change topics in Node-RED to: wifiTemp and wifiHumidity
https://flows.nodered.org/ ****** Flows and useful nodes
https://flows.nodered.org/node/node-red-dashboard **** Dashboard install for Node-RED
npm i node-red-dashboard
http://127.0.0.1:1880/ui/ ***** Node Red Dashboard URL
Code for this section: https://github.com/itchopshop/IOT-NodeMCU/blob/master/NodeMCUAzurePart3/NodeMCUAzurePart3.ino
Part 5https://www.youtube.com/watch?v=mEpSGGSCIiA&t=2s
Node-RED flow for this tutorial: https://github.com/itchopshop/IOT-NodeMCU/blob/master/NodeRedFlowPart5.txt
Just some handy links for setting up Node-RED
https://flows.nodered.org/ ******** Flows and Nodes
https://nodered.org/docs/security ****** Security
Comments