@UtaMask are you up and running with the WiFi shield for Arduino Uno’s?
Think there are some posts on here from other Blynkers that are using them.
You should pick Generic ESP8266 board from available list. The chip should be 4M so you can pick 4M with 1M or 3M SPIFFS for the flash, not the default 512K (64K SPIFFS). Default reset of ck should be fine.
WeMos are good (and no I don’t have shares in their business either).
They have their own entry in the board selector and it will default to 4M and correct reset (or it does for the WeMos Mini’s which is the same board selection in the IDE). You can pick 1M or 3M SPIFFS and 3 is probably best as you can’t use the 2 to 4M for anything else (first 1M is your programmable memory for the IDE).
Yes but they had a R1 that didn’t last long and then an R2. Pins are slightly different on a R1 to an R2 and I don’t know how you know which one it is by looking at it.
How long have you had it? Did you buy it from WeMos?
LINK i found the link where i bought it from its from its a ESP-12E WeMos D1 WiFi uno based ESP8266 i think i can just use the wemos d1 right? so how do i plug in the moisture sensor?
The humidity sensor (and temperature btw) can be connected to any digital pin. Use the DHT library (available in Arduino via Library management I think) to read it.
edit- that is the data pin ofcourse … + and gnd need to go on there
@UtaMask if you have the WeMos set up correctly and all the libraries correctly installed including DHT.h then this should compile for you. Enter yout token, SSID and pwd in lines 39 to 41.
/**************************************************************
* 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: http://www.blynk.cc
* Blynk community: http://community.blynk.cc
* Social networks: http://www.fb.com/blynkapp
* http://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:
* https://github.com/jfturcot/SimpleTimer
* and Adafruit DHT sensor library:
* https://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 <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <SimpleTimer.h>
#include <DHT.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "YourAuthToken";
char ssid[] = "YourNetworkName";
char pass[] = "YourPassword";
#define DHTPIN 2 // What digital pin we're connected to
// 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);
Blynk.virtualWrite(V6, t);
}
void setup()
{
Serial.begin(115200); // See the connection status in Serial Monitor
Blynk.begin(auth, ssid, pass);
while (Blynk.connect() == false) {
// Wait until connected
}
dht.begin();
// Setup a function to be called every second
timer.setInterval(1000L, sendSensor);
}
void loop()
{
Blynk.run(); // Initiates Blynk
timer.run(); // Initiates SimpleTimer
}
can i just have a way to put the pins in the arduino i mean the humidity sensor because iam having a hard time using it and it looks complex i just tried using the led with blynk and iam amazed asf
\sketch_oct14a\sketch_oct14a.ino:35:17: fatal error: DHT.h: No such file or directory
#include <DHT.h>
^
compilation terminated.
Multiple libraries were found for “BlynkSimpleEsp8266.h”
Used: C:\Users\Documents\Arduino\libraries\Blynk
Not used: C:\Program Files (x86)\Arduino\libraries\Blynk
Not used: C:\Program Files (x86)\Arduino\libraries\Blynk
Not used: C:\Program Files (x86)\Arduino\libraries\Blynk
Not used: C:\Program Files (x86)\Arduino\libraries\Blynk
exit status 1
Error compiling for board WeMos D1(Retired).
This report would have more information with
“Show verbose output during compilation”
option enabled in File -> Preferences.