![blink app icon blink app icon](https://d1rdbmlr0h5wfx.cloudfront.net/documents/images/en/beta/cliprollfilteroptions.png)
For that, you can use D1, D2, D5, D6, D7, D8 pins of NodeMCU. Here I have used a 2-channel relay module but you can also connect 4-channel or 6-channel relay module with node MCU. And we can control different home appliances from Blynk App. We just need a relay module and NodeMCU board for this circuit. The circuit for this home automation project is very simple. I have shared all the details like esp8266 NodeMCU pinout, circuit, Arduino sketch, Blynk App setup for this smart home project. The circuit is very simple, we just need a Nodemcu board and a relay module to control home appliances securely from the smartphone through the internet.
#Blink app icon how to#
Blynk.In this IoT based project, we will learn how to make a Home Automation project using NodeMCU and Blynk App. Please don't send more that 10 values per second.
![blink app icon blink app icon](https://images.squarespace-cdn.com/content/v1/5e21c06a08d2fc435f20e6c5/1599050572783-MZXC21FAQ67AIR33WXY2/blink_an_amazon_company_logo_RGB_WHT.png)
println ( "Failed to read from DHT sensor!" ) readTemperature () // or dht.readTemperature(true) for Fahrenheit that you define how often to send data to Blynk App.įloat t = dht. In the app, Widget's reading frequency should be set to PUSH. This function sends Arduino's up time every second to Virtual Pin (5). # define DHTPIN 2 // What digital pin we're connected to Go to the Project Settings (nut icon). You should get Auth Token in the Blynk App.
![blink app icon blink app icon](https://yt3.ggpht.com/-Pj-vt_SfKM8/AAAAAAAAAAI/AAAAAAAAAAA/iQCO9BCq9Gc/s900-c-k-no-mo-rj-c0xffffff/photo.jpg)
Checkout some projects of ESP8266 interfacing with Blynk, Artik, Particle, IFTTT and ThingSpeak.
![blink app icon blink app icon](https://cloudo3.com/resources/images/image-cloudo3db-0725104408578.jpg)
Hence, we have successfully interfaced DHT11 with Blynk App. The app will look like as the image given below:
#Blink app icon code#
void sendSensor() Īfter, uploading the complete code in the Arduino IDE run the blynk app to measure the temperature and humidity. The below function is used to send Arduino's up time every second to Virtual Pin (5). char ssid = "CircuitLoop" //wifi name char pass = "circuitdigest101" //wifi password #define DHTPIN 0 // D3 of Node MCU #define DHTTYPE DHT11 // DHT 11 DHT dht(DHTPIN, DHTTYPE) BlynkTimer timer Here, in the below code we are configuring the wifi credential and defining the pins for DHT11.
#Blink app icon serial#
#define BLYNK_PRINT Serial #include #include #include Įnter the Auth Token in the code, which is send to your email (as shown in the below image) or you can also check in the project setting of the Blynk App. Now, include the required libraries for Blynk, ESP8266 and DHT11. The complete code for the project is given at the end. Now, open Arduino ide and select Tools option as shown below:Ĭopy the example code for DHT11 with NodeMCU from the link then paste and run into Arduino IDE. Then, select NodeMCU as board and example code for DHT11, as shown below: To get the example code for DHT11 with NodeMCU search in browser “blynk code generator” then open the first link of blynk example browser. Also, select the pin for the ‘OUTPUT’ and give names to On/Off labels. Now provides a name to the widget by edit the settings. Choose ‘gauge’ widget to add on the Blynk app dashboard.Ħ. Now, add Widgets to the project by clicking on Add button (Plus sign)ĥ. After these steps click on ‘Create’ button to form your project.Ĥ. Now give a name to the project and choose your board. After sign up click on ‘New Project’ to start.Ģ. Log in to Blynk App using your email id and password, if you don’t have an account create one.ġ.
#Blink app icon install#
To recieve temperature and humidity data from DHT11 sensor on Blynk app, download and install the Blynk app from Google play store or Apple app store. Blynk isn't limited to some specific board or platform it can be used with any microcontroller. It is easy to use this IoT platform to create advanced applications. Blynk app is a digital dashboard where you will be able to build or design a graphical interface for any IoT based project by just drag and drop widgets. Blynk is an IoT Platform used with Arduino, Raspberry Pi, ESP8266 and NodeMCU and other microcontrollers.