Great tutorial! Had trouble with my ESP8266 not compiling. Turned out to be the SimpleTimer Library, here's how I learned to fix it: // Remove this //#include ... // Modify this //SimpleTimer timer; // into this BlynkTimer timer; Hope this helps anyone with this error. Thanks again!
I copied everything but with a DHT22 sensor. Changed the line to use DHTTYPE DHT22. In the serial monitor I get "Failed to read from DHT sensor" Any ideas where I should look for the error? EDIT: Found the error. The code says DHTPIN 2 but the comment says PIN 4. And the diagram also indicates to PIN 4. It was actually using PIN2. The Blynk app is also updating now. Fantastic!
Good video! your cellphone is nice! unfortunately the program has been set up at 50 times the speed so the whole thing is useless. Maybe a step-by-step write-up would help ... I'll be successful next time, or else it's not your desk!
Most likely not. Depending on the location if this was an outdoor garage or workspace that wouldnt be otherwise heated the humidity can easily jump if there is a slight decrease in temp.
sir on which software were you doing this circuit diagram? Can you suggest some names where I can do circuit connections and upload codes for demo before on-hand iot for practice.
Thanks for the Video. I am having an issue where I used the DHT11 sensor with Arduino Mega and the reading was very accurate compared with another AC controller and sensor that I bought from the store. But when I used the same sensor with ESP8266 the temp reading was accurate but the humidity was off by 5 to 10% which I found very odd. Any idea why is the difference, are you using the same dht11 library with Arduino and ESP8266. Also is there a way to read the fraction temp and humidity or it has to be full integer?
Good evening, I have rebuilt the sensor and works very well with the DHT11. But I want to make a sketch suggestion. A relay should be switched on at a certain temperature and switched off again at a low temperature. That would be great. 2 additional buttons in the Blynk app for on / off would be great. Can you help me with the sketch? Thank you
this is a devic you have to get the app for. the code is here but doesnt work either way. BASICALLY THIS IS A QUICK WAY TO PROMOTE THE APP WHICH CHARGES YOU TO ADD YOUR BUTTONS AND FEATURES TO YOUR DOODAD. , ID PAY IT BUT THIS IS A RUN AROUND. [ON TOP COMMENT]- THOSE 7 COMMENTS ARE FAKE COMPLIMENTS.
I have a problem and I can't not connect my nodemcu to Arduino environment and I have all the plugins! why isn't connect? can you please help me? And thank you very much for your really good good videos I really do appreciate!!
Greetings, I can not make it work, I've tried everything and it's fine, but the reading does not come in the blynk application, you have to recharge it with money to enable this function? Thank you
Hi, don't you know how can I link this kind of project with my system so that I can also monitor the temperature through the system I've developed. Not using blynk or any other app?
Hey, im not sure how likely you are to respond to this, but what power source do you use to power it without connecting it to the computer? Im a noob so i need to ask
Can someone please help me it says "expected primary-expression before '.' token" on the "Float t = dht.readTempurature()" And I don't know what to do to fix it so please help me
Im receiving this error and I dont know how to fix it: In file included from C:\Users\*****\OneDrive\Documents\Arduino\DHT11nodemcu\DHT11nodemcu.ino:34:0: BlynkSimpleEsp8266.h:18:21: error: version.h: No such file or directory #include
how does the esp8266 communicate with the app? through the wifi or internet? i mean...do they have to be in the same wifi network to receive the temperature?
I do not know if all but it happens to me that it does not show the data of temperature and humidity in the application blink being all done well, if it is your case write me and I post a posile solution, greetings.
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-G0an4VZYi18.html there is a video who is a diagram with no-I2C display. with I2C display it's more easy :) you can find all informations about that on internet :)
Hi, there, that is lovely video. It is really clearly explained. Thumps up! ;) May I have a question.. What is the name of the editor that you use for simulation of the el. circuit. Looks intuitive and easy to use. Thanks a lot.
hello I need some help with this problem Error Message Arduino: 1.8.8 (Mac OS X), Board: "NodeMCU 0.9 (ESP-12 Module), 80 MHz, Flash, Enabled, 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200" In file included from /Users/avila/Documents/Arduino/libraries/DHT-sensor-library-master/DHT_U.cpp:22:0: /Users/avila/Documents/Arduino/libraries/DHT-sensor-library-master/DHT_U.h:25:29: fatal error: Adafruit_Sensor.h: No such file or directory #include ^ compilation terminated. exit status 1 Error compiling for board NodeMCU 0.9 (ESP-12 Module). This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences. my code #include //Viral science ru-vid.com //Temperature sensor /************************************************************** * Blynk is a platform with iOS and Android apps to control * Arduino, Raspberry Pi and the likes over the Internet. * You can easily build graphic interfaces for all your * projects by simply dragging and dropping widgets. * * Downloads, docs, tutorials: www.blynk.cc * Blynk community: community.blynk.cc * Social networks: www.fb.com/blynkapp * twitter.com/blynk_app * * Blynk library is licensed under MIT license * This example code is in public domain. * ************************************************************** * This example shows how value can be pushed from Arduino to * the Blynk App. * * WARNING : * For this example you'll need SimpleTimer library: * github.com/jfturcot/SimpleTimer * and Adafruit DHT sensor library: * github.com/adafruit/DHT-sensor-library * * App project setup: * Value Display widget attached to V5 * Value Display widget attached to V6 * **************************************************************/ #define BLYNK_PRINT Serial // Comment this out to disable prints and save space #include #include #include #include #include // You should get Auth Token in the Blynk App. // Go to the Project Settings (nut icon). char auth[] = "e320b7b68bf24519aabdb7a726"; //Enter the Auth code which was send by Blink // Your WiFi credentials. // Set password to "" for open networks. char ssid[] = "E5D0_5=G"; //Enter your WIFI Name char pass[] = "21632"; //Enter your WIFI Password #define DHTPIN 2 // Digital pin 4 // Uncomment whatever type you're using! #define DHTTYPE DHT11 // DHT 11 //#define DHTTYPE DHT22 // DHT 22, AM2302, AM2321 //#define DHTTYPE DHT21 // DHT 21, AM2301 DHT dht(DHTPIN, DHTTYPE); SimpleTimer timer; // This function sends Arduino's up time every second to Virtual Pin (5). // In the app, Widget's reading frequency should be set to PUSH. This means // that you define how often to send data to Blynk App. void sendSensor() { float h = dht.readHumidity(); float t = dht.readTemperature(); // or dht.readTemperature(true) for Fahrenheit if (isnan(h) || isnan(t)) { Serial.println("Failed to read from DHT sensor!"); return; } // You can send any value at any time. // Please don't send more that 10 values per second. Blynk.virtualWrite(V5, h); //V5 is for Humidity Blynk.virtualWrite(V6, t); //V6 is for Temperature } void setup() { Serial.begin(9600); // See the connection status in Serial Monitor Blynk.begin(auth, ssid, pass); dht.begin(); // Setup a function to be called every second timer.setInterval(1000L, sendSensor); } void loop() { Blynk.run(); // Initiates Blynk timer.run(); // Initiates SimpleTimer }
update after 16 mins with the dht22 sensor library problem I found a solution WARNING : For this example you'll need Adafruit DHT sensor libraries: you need to install both github.com/adafruit/Adafruit_Sensor github.com/adafruit/DHT-sensor-library
Go under Library Manager, type DHT and enter You should see a library called "DHT sensor library". Install that and you should be good to go. Not resolved, let me know bro
Hi Viral Science! I'm trying to make this project work , but, although I did everything as instructed in your video, and installed the libraries and drivers needed, I still get the "exit status 1 Error compiling for board NodeMCU 1.0 (ESP-12E Module)." error while compliling the program. Can you please help? Here is the code I'm tryin to upload: #define BLYNK_PRINT Serial // Comment this out to disable prints and save space #include #include #include #include #include // You should get Auth Token in the Blynk App. // Go to the Project Settings (nut icon). char auth[] = "mycode"; //Enter the Auth code which was send by Blink // Your WiFi credentials. // Set password to "" for open networks. char ssid[] = "myname"; //Enter your WIFI Name char pass[] = "mypassword"; //Enter your WIFI Password #define DHTPIN 2 // Digital pin 4 // Uncomment whatever type you're using! #define DHTTYPE DHT11 // DHT 11 //#define DHTTYPE DHT22 // DHT 22, AM2302, AM2321 //#define DHTTYPE DHT21 // DHT 21, AM2301 DHT dht(DHTPIN, DHTTYPE); SimpleTimer timer; // This function sends Arduino's up time every second to Virtual Pin (5). // In the app, Widget's reading frequency should be set to PUSH. This means // that you define how often to send data to Blynk App. void sendSensor() { float h = dht.readHumidity(); float t = dht.readTemperature(); // or dht.readTemperature(true) for Fahrenheit if (isnan(h) || isnan(t)) { Serial.println("Failed to read from DHT sensor!"); return; } // You can send any value at any time. // Please don't send more that 10 values per second. Blynk.virtualWrite(V5, h); //V5 is for Humidity Blynk.virtualWrite(V6, t); //V6 is for Temperature } void setup() { Serial.begin(9600); // See the connection status in Serial Monitor Blynk.begin(auth, ssid, pass); dht.begin(); // Setup a function to be called every second timer.setInterval(1000L, sendSensor); } void loop() { Blynk.run(); // Initiates Blynk timer.run(); // Initiates SimpleTimer }