Every time we travel, my wife complains about our home been too cold (I turn down heaters to save some $$). So, I decided to end that! I am getting divorced! :) Nooooope! I just found a way of making my dumb as a heater....heater a little less dumb! :0
I will try to be as clear as the mississippi's river mud! ;)
Firsts things first!
1. Get your stuff!- NodeMCU ESP-12
- DHT-22 Temperature and Humidity Sensor
- SSR 25DA Solid State Relay
- 230V Socket
- Wall Mounted Heater (Dumb Type)
DHT-22 Data -> NodeMCU D1
DHT-22 Vcc -> NodeMCU 3V3
DHT-22 GND -> NodeMCU GND
Relay Pos-> NodeMCU D0
Relay Neg-> NodeMCU GND
3. Prepare your code to work!Install libraries:
Blynk
DHT-22
NodeMCU
Don't know how? Check the link below:
https://www.arduino.cc/en/guide/libraries
Visual guy? Get sleepy reading? Check this youtube video:
https://www.youtube.com/watch?v=A5eakzVo5mY
4. Creating Your Blynk AppExtracted of instructions from: http://docs.blynk.cc/
Instructions on how to setup Blynk on your phone on this link: https://www.hackster.io/Cmtelesann/blynk-nodemcu-and-dht-22-8220ab
Continuing from item 5. Add a widget.
Select "Button".
Drag-n-Drop - Tap and hold the Widget to drag it to the new position.
Widget Settings - Each Widget has it’s own settings. Tap on the widget to get to them.
Choose a name for your widget.
Select a target. My case I am using NodeMCU.
The most important parameter to set is OUTPUT. The list of outputs reflects physical pins defined by your hardware. If you are sending a value to Pin D0 on your NodeMCU - then select D0.
4.6. Run The Project
When you are done with the Settings - press the PLAY button. This will switch you from EDIT mode to PLAY mode where you can interact with the hardware. While in PLAY mode, you won’t be able to drag or set up new widgets, press STOP and get back to EDIT mode.
You will get a message saying “Arduino UNO is offline”. We’ll deal with that in the next section.
Click on Play Icon.
Here's how it looks like when the project is running with no connection.
The red number one should go once it is connected.
Enjoy! Try adding graphs and other sensors to it!
5. Open a beer!







Comments