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 : 340 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 : 214 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 : 230 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 : 208 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 : 295 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 : 213 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 : 320 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 : 314 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 : 365 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...
Oriental Kopi Klcc Port Minum Kopi Terbaru

Pasar Raya Flagship Jaya Grocer Di Sunway Pyramid Tarik Pengunjung Dengan Penampilan Serba Baharu

U Mobile The New Ali Baba Contractor For The Second 5g Network Tender

The Celebrity Legs And Feet In Tights 2024 Pantyhose Queen Poll Full Contender List

Panas Artis Wanita Malaysia Ditahan Polis Thailand Turut Ditemukan 6 000 Biji Pil Kuda

Iphones Dalam Bahaya Amaran Baru Peretasan Sasarkan Peranti Apple

Explore The Hottest Tangkasnet Gaming Trends And Top Picks For 2024

Jangkitan Kulit Utama Oleh Mycobacteria Bukan Tuberkulosis Laporan 6 Kes


echo '';
Info Dan Sinopsis Drama Berepisod Senyawa iQIYI Malaysia

Info Dan Sinopsis Drama Berepisod Project Projek Exit Astro Originals

Pelajari Asal Usul Nama Makhluk Seram Kisah Fiksyen Barat Yang Terkenal

10 Fakta Filem Kahar Kapla High Council Yang Ramai Tak Tahu Prekuel Drama Project Projek High Council

Anugerah Seri Angkasa 2024 Senarai Keputusan Pemenang Calon Top 5 Kategori Hadiah Persembahan Penyampai Trofi Dan Segala Info ASA 36


Creating Timeless Portraits Techniques Used By Professional Photographers In Dubai

Pengawal Keselamatan Rebah Tunggang Motosikal Akibat Terlalu Penat Bekerja

Artis Kelantan Ditahan Sungai Golok Didakwa Miliki Dadah

Immigration Officers Involved In Counter Setting Case Transferred Says Dg

Kerajaan Perkenal Undang Undang Lebih Tegas Tangani Buli Siber Kata Anwar

Malaysiaweeklyrecap 30 September