Iot Watering Plant With Adruino Uno And Wifi Shield



everyone knows what is " IOT " Interning Of thing. With now technology, we can do many thing that possible. I just want to share some programming that I make for my friend with simple programing using Adruino Uno and wifi shield.

#define BLYNK_PRINT Serial

#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h>
#include <DHT.h>

char auth[] = "*****";
char ssid[] = "*****";
char pass[] = "*****"; //

#include <SoftwareSerial.h>
SoftwareSerial EspSerial(2, 3); // RX, TX

// Your ESP8266 baud rate:
#define ESP8266_BAUD 9600

ESP8266 wifi(&EspSerial);

//Constants
#define DHTPIN 7     // what pin we're connected to
#define DHTTYPE DHT22   // DHT 22  (AM2302)
DHT dht(DHTPIN, DHTTYPE); //// Initialize DHT sensor for normal 16mhz Arduino
SimpleTimer timer;
void setup()
{
  Serial.begin(9600);

  EspSerial.begin(ESP8266_BAUD);
 

  Blynk.begin(auth, wifi, ssid, pass);

    pinMode(7,INPUT);
    pinMode(12,OUTPUT);
    pinMode(13,OUTPUT);
  dht.begin();

}

void loop()
{
    float h = dht.readHumidity();
  float t = dht.readTemperature(); // or dht.readTemperature(true) for Fahrenheit

  if(t>=33)
  {

    digitalWrite(12,HIGH  );
  }
 
  else
  {

    digitalWrite(12,LOW);
  }
int moisture = analogRead(A3);
if(moisture>=600)
  {

    digitalWrite(13,HIGH);
  }
 
  else
  {

    digitalWrite(13,LOW);
  }

  // You can send any value at any time.
  // Please don't send more that 10 values per second.
  Blynk.virtualWrite(V4, h);
  Blynk.virtualWrite(V5, t);
  Blynk.virtualWrite(V6, moisture);
  // Setup a function to be called every second
  Blynk.run(); // Initiates Blynk
  timer.run(); // Initiates SimpleTimer
}

Artikel ini hanyalah simpanan cache dari url asal penulis yang berkebarangkalian sudah terlalu lama atau sudah dibuang :

http://www.belajarblogs.com/2019/09/iot-watering-plant-with-adruino-uno-and.html

Kempen Promosi dan Iklan
Kami memerlukan jasa baik anda untuk menyokong kempen pengiklanan dalam website kami. Serba sedikit anda telah membantu kami untuk mengekalkan servis percuma aggregating ini kepada semua.

Anda juga boleh memberikan sumbangan anda kepada kami dengan menghubungi kami di sini
More Than 60 Times As Many Hotspots In Indonesia Compared With Malaysia

More Than 60 Times As Many Hotspots In Indonesia Compared With Malaysia

papar berkaitan - pada 11/9/2019 - jumlah : 300 hits
There are at least twice as many hotspots in the Indonesian territories of Sumatra and Kalimantan compared to the entirety of Malaysia according to an analysis of satellite data that was recorded today In addition prevailing wind conditions...
Dr M Pas Should Retract Kafir Label Before Working With Umno

Dr M Pas Should Retract Kafir Label Before Working With Umno

papar berkaitan - pada 11/9/2019 - jumlah : 178 hits
Dr Mahathir Mohamad has thrown a spanner in the works on the proposed signing of a formal political pact between the opposition parties of Umno and PAS on Saturday The prime minister said PAS has to first retract its statement labelling Umn...
Azmin In Discussion With Mubadala An Ipic Linked Company

Azmin In Discussion With Mubadala An Ipic Linked Company

papar berkaitan - pada 11/9/2019 - jumlah : 202 hits
Mubadala owns International Petroleum Investment Company which was involved in a 2017 deal involving a US 5 78 billion settlement of a bond dispute with Malaysia s scandal hit 1Malaysia Development Bhd the investment arm of the former Malay...
Anello Fall In Love With Autumn Up To 50

Anello Fall In Love With Autumn Up To 50

papar berkaitan - pada 11/9/2019 - jumlah : 168 hits
Anello Fall in love with autumn up to 50 Anello New look New in 15 Coupon Code WELCOME15Anello Always stylish 15
Malaysia Voices Concern Over Haze With Indonesia

Malaysia Voices Concern Over Haze With Indonesia

papar berkaitan - pada 11/9/2019 - jumlah : 259 hits
Malaysia has reiterated its concern on the impact of persistent transboundary haze to the Malaysian public and its offer to assist Indonesia in extinguishing forest fires in Kalimantan and Sumatera This was conveyed at a meeting today led b...
Bernama To Enter Mbor With 24 Hour Non Stop Broadcast

Bernama To Enter Mbor With 24 Hour Non Stop Broadcast

papar berkaitan - pada 11/9/2019 - jumlah : 181 hits
KUALA LUMPUR With live non stop broadcast for 24 hours in four languages from Sept 16 to 17 in conjunction with Malaysia Day the Malaysian National News Agency is poised to gain entry into the Malaysia Book of Records The broadcast fr
795 Conferred With Awards In Conjunction With Agong S Birthday

795 Conferred With Awards In Conjunction With Agong S Birthday

papar berkaitan - pada 10/9/2019 - jumlah : 277 hits
Yang di Pertuan Agong Sultan Abdullah Sultan Ahmad Shah arrived at the Istana Negara this morning and was welcomed by Prime Minister Dr Mahathir Mohamad and Deputy Prime Minister Dr Wan Azizah Wan Ismail His Majesty then inspected a guard o...
Guan Eng Playing Up Racial Sentiments With Boycott Non Muslim Comments Says Mca S Ti

Guan Eng Playing Up Racial Sentiments With Boycott Non Muslim Comments Says Mca S Ti

papar berkaitan - pada 11/9/2019 - jumlah : 269 hits
MCA vice president Datuk Seri Ti Lian Ker has criticised DAP secretary general Lim Guan Eng for playing up racial issues with his comments over the call by certain parties for Muslims to boycott non Muslim products He said Lim was stirring ...
Refreshing Flavours With This Prawn Umai Mukah Sago Recipe

Refreshing Flavours With This Prawn Umai Mukah Sago Recipe

papar berkaitan - pada 11/9/2019 - jumlah : 335 hits
Umai is a traditional native of the in which was originally eaten by fishermen who often prepared and ate their catch while still out at sea on their boats but could not risk lighting a fire Umai is a dish of sliced raw fish or prawn with a...
Ph Must Safeguard Its Voter Base To Land Second Term For Anwar Says Analyst

Tetaplah Beriadah Di Bulan Ramadan

Honor Pad 9 Tablet Terbaik Untuk Berhibur Dan Kerja Mula Dijual Seluruh Negara Pada 28 Mac

Perumahan Izara Bayu Sutera Kediaman Idaman Tepi Tasik Dengan Ciri Smart Home

8 Resepi Air Balang Viral Di Bazar Ramadhan

Lirik Lagu Raya Mana Nabila Razali

Sesi Tukar Duit Raya Di Maybank

Diet If Yang Berkesan Menurut Pakar



Koleksi 15 Lagu Hari Raya Terbaru Yang Meriahkan Aidilfitri 2024 Bakal Evergreen Bak Lagu Lama

6 Pantang Larang Penting Kalau Nak Selamat di Sekolah Asrama

Info Dan Sinopsis Filem 19 Puasa Playboys Of Plastik Hitam Astro First

Casimir Zeglen Paderi Yang Mencipta Jaket Kalis Peluru

Biodata Mohammad Rifdean Masdor Atlet Muay Thai Malaysia Yang Gegarkan One Championship Seangkatan Johan Ghazali Jojo


15 Easter Garland Designs To String Along The Spring Festivities

Hallway Wall Art Mockup For A Sophisticated Look

Do You Know About Kuda Kepang Dance

Cukai Perkhidmatan 8 Hanya Ke Atas Golongan Berkemampuan

300 Extra Padu Registration Counters Opened

Nadma Remaining Water Storage Reserves In Four Dams In Johor Penang And Kedah At Critical Level