ESP8266- Blynk Plot Sensor Readings in Live Charts & Export CSV File | DHT22 Sensor

  Рет қаралды 20,154

Robotica DIY

Robotica DIY

4 жыл бұрын

ESP8266- Blynk Plot Sensor Readings in Live Charts & Export CSV File | DHT22 Sensor
Scroll down for code.....
Sensor data is very important in any project to find how system is performing or we just want to monitor a system. Last tutorial where I showed how we can plot sensor data to our local network web page. In this tutorial we can plot sensor data chart from cloud. So we don’t need to be on same wifi network, you can access sensor data from anywhere in the world. We not only see how to plot sensor data but also export this data in CSV file. All this things will be going in Blynk App. Where we also explore various ways to present sensor data like Gauge, H Level, V Level & Display value in Blynk App.
If you want to support my video please buy any product through my amazon affiliate link. I will receive a commission, at no extra cost to you.
LIST OF COMPONENT (affiliate links)
amzn.to/2Uo7M93 (NodeMCU ESP8266 12E)
amzn.to/2vqIKJP (DHT22)
amzn.to/2wxPmWz (Breadboard)
amzn.to/2vJ3lvo (Jumper wire)
amzn.to/2vmSK8l (Resistor)
Track: LFZ - Popsicle [NCS Release]
Music provided by NoCopyrightSounds.
Free Download / Stream: ncs.io/PopsicleYO
#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
#include (SPI.h) //instead of parenthesis () put angle bracket as KZbin description does not allow angle bracket
#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[] = "";//Enter the Auth code which was send by Blink
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "Your_SSID";
char pass[] = "Your_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
}

Пікірлер: 17
@fadhlurrohmanfaqih480
@fadhlurrohmanfaqih480 3 жыл бұрын
GREAT! I've been looking for this and finally found this, thankyou very much
@amirumar7157
@amirumar7157 3 жыл бұрын
Great explanation. Thank you so much for helping me complete my final year project.
@Ziqastory
@Ziqastory 3 жыл бұрын
hi. nice video. Does the data logged at per second or perminute?
@tonyvarghese75
@tonyvarghese75 4 жыл бұрын
Nice
@RoboticaDIY
@RoboticaDIY 4 жыл бұрын
Thanks
@syafiqahzawanahzahraabinti6957
@syafiqahzawanahzahraabinti6957 3 жыл бұрын
HI . May i know cani use NodeMcu V3 for this project ?
@SPARKELECTRONICS
@SPARKELECTRONICS 4 жыл бұрын
How to identify time in this chart ?
@alipakmal6820
@alipakmal6820 3 жыл бұрын
My Blynk is connected but no changes in output? Helpp ;(
@bharathkalyaan3855
@bharathkalyaan3855 3 жыл бұрын
sir how to do the same for tof sensor
@deovantomaitland
@deovantomaitland 3 жыл бұрын
What type of temperature sensor were you using ?
@zaidinamdar9938
@zaidinamdar9938 3 жыл бұрын
Dht22
@suadanwar7668
@suadanwar7668 2 жыл бұрын
why i cant open the tutorial link?
@manasimakote42
@manasimakote42 3 жыл бұрын
Can we send this automatically
@Ravich646
@Ravich646 8 ай бұрын
High volume noise music
Arduino: Log sensor data in the cloud
10:07
logMaker360
Рет қаралды 74 М.
Heartwarming moment as priest rescues ceremony with kindness #shorts
00:33
Fabiosa Best Lifehacks
Рет қаралды 38 МЛН
Mom's Unique Approach to Teaching Kids Hygiene #shorts
00:16
Fabiosa Stories
Рет қаралды 30 МЛН
Blynk ESP8266 DHT22 Temperature & Humidity Sensor | Weather station
7:10
Export Blynk app data to Excel Sheet | Blynk Superchart | SBU
6:36
Raspberry Pi 4 Data Logger | DHT11/DHT22 Sensor Data Logger
6:10
Robotica DIY
Рет қаралды 29 М.
Tech Note 080 - ESP32/ESP8266 Data Logging Webserver
6:57
G6EJD - David
Рет қаралды 61 М.
LPG Gas Leakage Detector with SMS Alert | Home Safety Project
6:04
ESP8266: IoT Live Sensor Data Plotter to Web Page
4:47
Robotica DIY
Рет қаралды 8 М.
#samsung #retrophone #nostalgia #x100
0:14
mobijunk
Рет қаралды 9 МЛН
iPhone 15 Pro в реальной жизни
24:07
HUDAKOV
Рет қаралды 446 М.
Как распознать поддельный iPhone
0:44
PEREKUPILO
Рет қаралды 2,2 МЛН
Здесь упор в процессор
18:02
Рома, Просто Рома
Рет қаралды 409 М.
Какой ноутбук взять для учёбы? #msi #rtx4090 #laptop #юмор #игровой #apple #shorts
0:18