author
29Comments

Tell us about yourself!

  • Hello Marcelo,I opened a new file in IDE, cleared out all the writing on the field followed your link to github and pasted the code there in the field and ran a check compile. Here is the error:Arduino: 1.8.3 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, 115200, 4M (3M SPIFFS)"C:\Users\longb\Documents\Arduino\sketch_aug26b\sketch_aug26b.ino:21:25: fatal error: SimpleTimer.h: No such file or directory #include <SimpleTimer.h> ^compilation terminated.exit status 1Error compiling for board NodeMCU 1.0 (ESP-12E Module).This report would have more information with"Show verbose output during compilation"option enabled in File -> Preferences.Did I do something wrong? I tried it twice, it looks like some issue about the timer?

    I went back to the single sensor code from part two and saw there was a difference in the timer statement between your code and the reworked code that was done by the blynk community. They used BlynkTimer timer instead of simple. So I tried erasing your simple and putting in their BT. Then another error popped up:Arduino: 1.8.3 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, 115200, 4M (3M SPIFFS)"In file included from C:\Users\longb\Documents\Arduino\sketch_aug26b\sketch_aug26b.ino:24:0:C:\Users\longb\Documents\Arduino\libraries\OneWire/OneWire.h:123:1: error: expected initializer before 'class' class OneWire ^In file included from C:\Users\longb\Documents\Arduino\sketch_aug26b\sketch_aug26b.ino:25:0:C:\Users\longb\Documents\Arduino\libraries\Arduino-Temperature-Con…

    see more »

    I went back to the single sensor code from part two and saw there was a difference in the timer statement between your code and the reworked code that was done by the blynk community. They used BlynkTimer timer instead of simple. So I tried erasing your simple and putting in their BT. Then another error popped up:Arduino: 1.8.3 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, 115200, 4M (3M SPIFFS)"In file included from C:\Users\longb\Documents\Arduino\sketch_aug26b\sketch_aug26b.ino:24:0:C:\Users\longb\Documents\Arduino\libraries\OneWire/OneWire.h:123:1: error: expected initializer before 'class' class OneWire ^In file included from C:\Users\longb\Documents\Arduino\sketch_aug26b\sketch_aug26b.ino:25:0:C:\Users\longb\Documents\Arduino\libraries\Arduino-Temperature-Control-Library-master/DallasTemperature.h:43:30: error: expected ')' before '*' token DallasTemperature(OneWire*); ^C:\Users\longb\Documents\Arduino\libraries\Arduino-Temperature-Control-Library-master/DallasTemperature.h:45:21: error: 'OneWire' has not been declared void setOneWire(OneWire*); ^C:\Users\longb\Documents\Arduino\libraries\Arduino-Temperature-Control-Library-master/DallasTemperature.h:225:5: error: 'OneWire' does not name a type OneWire* _wire; ^sketch_aug26b:27: error: 'OneWire' does not name a type OneWire oneWire(ONE_WIRE_BUS); ^sketch_aug26b:28: error: 'oneWire' was not declared in this scope DallasTemperature DS18B20(&oneWire); ^C:\Users\longb\Documents\Arduino\sketch_aug26b\sketch_aug26b.ino: In function 'void setup()':sketch_aug26b:37: error: 'timer' was not declared in this scope timer.setInterval(1000L, getSendData); ^C:\Users\longb\Documents\Arduino\sketch_aug26b\sketch_aug26b.ino: In function 'void loop()':sketch_aug26b:44: error: 'timer' was not declared in this scope timer.run(); // Initiates SimpleTimer ^exit status 1'OneWire' does not name a typeThis report would have more information with"Show verbose output during compilation"option enabled in File -> Preferences.I'm not trying to mes with your code I just thought I'd try to figure out where the trouble is.Dave

    Hello Marcelo,I opened a new file in IDE, cleared out all the writing on the field followed your link to github and pasted the code there in the field and ran a check compile. Here is the error:Arduino: 1.8.3 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, 115200, 4M (3M SPIFFS)"C:\Users\longb\Documents\Arduino\sketch_aug26b\sketch_aug26b.ino:21:25: fatal error: SimpleTimer.h: No such file or directory #include <SimpleTimer.h> ^compilation terminated.exit status 1Error compiling for board NodeMCU 1.0 (ESP-12E Module).This report would have more information with"Show verbose output during compilation"option enabled in File -> Preferences.Did I do something wrong? I tried it twice, it looks like some issue about the timer?

    I went back to the single sensor code from part two and saw there was a difference in the timer statement between your code and the reworked code that was done by the blynk community. They used BlynkTimer timer instead of simple. So I tried erasing your simple and putting in their BT. Then another error popped up:Arduino: 1.8.3 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, 115200, 4M (3M SPIFFS)"In file included from C:\Users\longb\Documents\Arduino\sketch_aug26b\sketch_aug26b.ino:24:0:C:\Users\longb\Documents\Arduino\libraries\OneWire/OneWire.h:123:1: error: expected initializer before 'class' class OneWire ^In file included from C:\Users\longb\Documents\Arduino\sketch_aug26b\sketch_aug26b.ino:25:0:C:\Users\longb\Documents\Arduino\libraries\Arduino-Temperature-Con…

    see more »

    I went back to the single sensor code from part two and saw there was a difference in the timer statement between your code and the reworked code that was done by the blynk community. They used BlynkTimer timer instead of simple. So I tried erasing your simple and putting in their BT. Then another error popped up:Arduino: 1.8.3 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, 115200, 4M (3M SPIFFS)"In file included from C:\Users\longb\Documents\Arduino\sketch_aug26b\sketch_aug26b.ino:24:0:C:\Users\longb\Documents\Arduino\libraries\OneWire/OneWire.h:123:1: error: expected initializer before 'class' class OneWire ^In file included from C:\Users\longb\Documents\Arduino\sketch_aug26b\sketch_aug26b.ino:25:0:C:\Users\longb\Documents\Arduino\libraries\Arduino-Temperature-Control-Library-master/DallasTemperature.h:43:30: error: expected ')' before '*' token DallasTemperature(OneWire*); ^C:\Users\longb\Documents\Arduino\libraries\Arduino-Temperature-Control-Library-master/DallasTemperature.h:45:21: error: 'OneWire' has not been declared void setOneWire(OneWire*); ^C:\Users\longb\Documents\Arduino\libraries\Arduino-Temperature-Control-Library-master/DallasTemperature.h:225:5: error: 'OneWire' does not name a type OneWire* _wire; ^sketch_aug26b:27: error: 'OneWire' does not name a type OneWire oneWire(ONE_WIRE_BUS); ^sketch_aug26b:28: error: 'oneWire' was not declared in this scope DallasTemperature DS18B20(&oneWire); ^C:\Users\longb\Documents\Arduino\sketch_aug26b\sketch_aug26b.ino: In function 'void setup()':sketch_aug26b:37: error: 'timer' was not declared in this scope timer.setInterval(1000L, getSendData); ^C:\Users\longb\Documents\Arduino\sketch_aug26b\sketch_aug26b.ino: In function 'void loop()':sketch_aug26b:44: error: 'timer' was not declared in this scope timer.run(); // Initiates SimpleTimer ^exit status 1'OneWire' does not name a typeThis report would have more information with"Show verbose output during compilation"option enabled in File -> Preferences.I'm not trying to mes with your code I just thought I'd try to figure out where the trouble is.Dave

    View Instructable »
  • should I have also modified the float to be float_f ?

    Went there and printed the whole thing to read, I'm so old I do much better with a piece of paper in my hand. BTW I cleaned up a lot of my posts that were not meaningful, trying not to clutter your Instr.

    View Instructable »
  • Hello Marcelo, Now that I have a working project would you be willing to help me do two things?1. I want the readings in Fahrenheit 2. I would like to connect the second sensor and have it show in Blynk.If you don't, I understand, but please tell me. I've got two weeks to get this going for freezer monitoring while we are away. That's why I sought help at the community, Getting the parts took longer than I expected and while I read both parts of your pj. I got jammed up and desperate for help with the complexity. Fortunately, there I was able to find a helper who stayed online with me for an hour to get it all sorted. But this is your pj and I do appreciate it and I would like to finish off this last bit with your help.

    I went over to the Blynk community and got much needed help there. For other noobs:1. make sure you have proper drivers in your pc2.make sure you have esp8266 in IDE3.Steps 1-5 are all just practice they have no relation to what you must enter in IDE to get Blynk going.4. The Blynk community said the code as presented here will not work as a copy/paste, they reworked it:/************************************************************** * IoT Temperature Monitor with Blynk * Blynk library is licensed under MIT license * This example code is in public domain. * * Developed by Marcelo Rovai - 05 January 2017 **************************************************************//* ESP & Blynk */#include #include #define BLYNK_PRINT Serial // Comment this out to disable prints and save spacechar…

    see more »

    I went over to the Blynk community and got much needed help there. For other noobs:1. make sure you have proper drivers in your pc2.make sure you have esp8266 in IDE3.Steps 1-5 are all just practice they have no relation to what you must enter in IDE to get Blynk going.4. The Blynk community said the code as presented here will not work as a copy/paste, they reworked it:/************************************************************** * IoT Temperature Monitor with Blynk * Blynk library is licensed under MIT license * This example code is in public domain. * * Developed by Marcelo Rovai - 05 January 2017 **************************************************************//* ESP & Blynk */#include #include #define BLYNK_PRINT Serial // Comment this out to disable prints and save spacechar auth[] = "YOUR AUTH CODE HERE";/* WiFi credentials */char ssid[] = "YOUR SSID";char pass[] = "YOUR PASSWORD";/* TIMER *///#include // NOT REQUIRED WITH BLYNK LIBRARY VERSION 0.4.8 AND BEYONDBlynkTimer timer;/* DS18B20 Temperature Sensor */#include #include #define ONE_WIRE_BUS 2 // DS18B20 on arduino pin2 corresponds to D4 on physical boardOneWire oneWire(ONE_WIRE_BUS);DallasTemperature DS18B20(&oneWire);float temp;void setup() { Serial.begin(115200); Blynk.begin(auth, ssid, pass); DS18B20.begin(); timer.setInterval(1000L, getSendData);}void loop() { timer.run(); // Initiates SimpleTimer Blynk.run();}/*************************************************** * Send Sensor data to Blynk **************************************************/void getSendData(){ DS18B20.requestTemperatures(); temp = DS18B20.getTempCByIndex(0); Serial.println(temp); Blynk.virtualWrite(10, temp); //virtual pin V10}You might have to go there to copy it again :https://community.blynk.cc/t/noob-needs-help-with-...You must clear out all the writing in the code space on your new project before pasting this corrected code.Works Great, Now to figure out how to get two temps going!

    May I guess that I will get F if I change the C below to F?DS18B20.requestTemperatures(); temp = DS18B20.getTempCByIndex(0); Serial.println(temp); Blynk.virtualWrite(10, temp); //virtual pin V10

    View Instructable »
  • Hello Marcello,I'm really having trouble, I'd really like to complete this but I feel stupid, I try to follow your instructions and I'm banging my head on the wall. I don't understand upload the blynk file to Arduino. Could you please be more detailed about the steps involved.I would really appreciate your help.

    View Instructable »
  • Hello Marcelo, I am making this but I am unsure in step 4. Do I use the add zip files option in libraries?

    View Instructable »
  • Hello.Is there a wiring diagram for how to make the correct resistance when using more than one sensor?

    View Instructable »