1. A DHT11 Class for Arduino. Download dht11.h and dht11.cpp.
https://playground.arduino.cc/Main/DHT11Lib
2. DHT11 pinout
https://tttapa.github.io/ESP8266/Chap04%20-%20Microcontroller.html
|
Useful materials: 1. A DHT11 Class for Arduino. Download dht11.h and dht11.cpp. https://playground.arduino.cc/Main/DHT11Lib 2. DHT11 pinout 3. The ESP8266 as a microcontroller - Hardware
https://tttapa.github.io/ESP8266/Chap04%20-%20Microcontroller.html
Comments
Achieved target: 1. Voice control of light Tell Google Home "Turn on/off the light" to control the light. 2. Location based control of light Turn on the light if I entered the home area; turn off the light if I exited the home area. ----------------------------------------------------------------------------------------------------------------------------------------------------- Useful materials: Home Automation Using NodeMCU and Google Assistant In Under $20: http://codeometry.in/home-automation-using-nodemcu-and-google-assistant/ QUICK START TO NODEMCU (ESP8266) ON ARDUINO IDE: http://www.instructables.com/id/Quick-Start-to-Nodemcu-ESP8266-on-Arduino-IDE/ SIMPLE LED CONTROL WITH BLYNK AND NODEMCU ESP8266 12E: http://www.instructables.com/id/Simple-Led-Control-With-Blynk-and-NodeMCU-Esp8266-/ How to use http request with IFTTT: https://community.blynk.cc/t/solved-how-to-use-http-request-with-ifttt/16023/17 Send a web request to Blynk server for control of device: To send an ON signal it would be: http://45.55.96.146/MY BLYNK TOKEN/update/D13?value=1 45.55.96.146 is the Blynk ip address. Obtain this by "ping blynk-cloud.com" using CMD. MY BLYNK TOKEN is the token received from Blynk. Just change the final 1 to 0 to send OFF signal. Check the pin definition of NodeMCU for the name of the pin you want to control. For example, D13 in the above request actually stands for GPIO13 and represent D7 in the following pin definition drawing. Quiet confusing. Type the above request in the address bar of the browser for control; Or with Webhooks through IFTTT with method "GET" and "application/json" for Content Type. Leave Body blank.
|
Jingwei ZhuPh.D. candidate in the Department of Mechanical Science and Engineering at the University of Illinois at Urbana-Champaign. Categories
All
Archives
October 2018
|