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 :

https://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
Cytron Esp8266 Wifi Shield

Cytron Esp8266 Wifi Shield

papar berkaitan - pada 22/11/2019 - jumlah : 216 hits
Because of IoT everything is connected to the Internet a crucial element is WiFi that provides a wireless connection to the Internet It has been carrying ESP module and many have used it However it is not user friendly enough for a beginner...
How To Make An Iot Smoke Alarm With Nodemcu Esp8266

How To Make An Iot Smoke Alarm With Nodemcu Esp8266

papar berkaitan - pada 22/11/2019 - jumlah : 272 hits
About Gas SensorThe MQ2 is used in gas leakage detecting equipment in consumer and industry markets this sensor is suitable for detecting CH4 Natural gas LNG avoid exposure to alcohol cooking fumes and cigarette smoke The sensitivity can be...
Saifuddin Harapan A Fair Party With Various Races

Saifuddin Harapan A Fair Party With Various Races

papar berkaitan - pada 11/11/2019 - jumlah : 254 hits
TG PIAI POLLS Pakatan Harapan is a ruling coalition party that practices the system of equality and fairness with members of its administration from various races its secretary general Saifuddin Abdullah said After its victory in the 14th g...
Kj Don T Get Overconfident With Bigger Chinese Crowd At Ceramah

Kj Don T Get Overconfident With Bigger Chinese Crowd At Ceramah

papar berkaitan - pada 11/11/2019 - jumlah : 267 hits
TG PIAI POLLS Former Umno Youth chief Khairy Jamaluddin today cautioned BN against overconfidence in the Tanjung Piai by election due to the growing Chinese crowd at ceramah organised by BN and in particular MCA The Rembau MP said he is con...
Mtuc Seeks Genuine Consultation With Gov T

Mtuc Seeks Genuine Consultation With Gov T

papar berkaitan - pada 11/11/2019 - jumlah : 329 hits
The Malaysian Trades Union Congress hopes the technical committee meeting it will attend with the Human Resources Ministry in Putrajaya today on amendments to labour laws will be held in a spirit of genuine consultation Its secretary genera...
Penang To Hit Errant Developers With Stiffer Penalties

Penang To Hit Errant Developers With Stiffer Penalties

papar berkaitan - pada 11/11/2019 - jumlah : 235 hits
State executive councillor Zairil Khir Johari will propose a new state law to allow city councils to take action GEORGE TOWN Penang will follow the example of the Selangor state government in imposing stiff compound fines on developers who ...
Perak Mb In Viral Video Lamenting Lone Battle With Dap

Perak Mb In Viral Video Lamenting Lone Battle With Dap

papar berkaitan - pada 10/11/2019 - jumlah : 334 hits
A video clip of Perak Mentri Besar Datuk Seri Ahmad Faizal Azumu lamenting that he is fighting a lone battle against DAP in the state has surfaced on social media In the clip posted on one Azizi Safar s Facebook page on Friday Ahmad Faizal ...
Rais Yatim Disappointed With Iium S Relocation Of Keris Monument

Rais Yatim Disappointed With Iium S Relocation Of Keris Monument

papar berkaitan - pada 10/11/2019 - jumlah : 511 hits
Former International Islamic University Malaysia president Rais Yatim has lambasted the university s current president Mohd Abu Bakar over the relocation of a keris monument located at the entrance of the university campus s in Gombak Selan...
Syed Saddiq Basikal Lajak Riders Can Be Saved With Right Guidance

Syed Saddiq Basikal Lajak Riders Can Be Saved With Right Guidance

papar berkaitan - pada 10/11/2019 - jumlah : 654 hits
Youngsters racing basikal lajak are seen as a menace on public roads but Youth and Sports Minister Syed Saddiq Abdul Rahman believed they can be saved given the right guidance He used the example of national cyclist Hariff Salle whom he cla...
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