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 : 218 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 : 276 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 : 256 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 : 269 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 : 332 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 : 237 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 : 335 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 : 513 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 : 657 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...
Beli Rumah Lebih Jimat Dengan Kempen Hartanah Bumiputera Matrix

Tattoos Raised And Itchy

Bersatu Man Demands Dnb Exit Strategy For U Mobile

Khutbah Jumat Jumadil Awal Tangis Ibnu Rawahah Jelang Perang Mu Tah

Tattoos Portland Maine

Bertolak Ansurlah

Kisah Adv 160 Pengajaran Dari Bateri Lemah

Haram Guna Dan Jual Vape Dewan Pemuda Pas Pahang Zahir Sokongan Penuh Terhadap Titah Sultan


echo '';
Senarai Lagu Tugasan Konsert Minggu 1 Gegar Vaganza 2024 Musim 11

Info Dan Sinopsis Drama Berepisod Dhia Kasyrani Slot Akasia TV3

Biodata Terkini Reshmonu Peserta Gegar Vaganza 2024 Musim 11 GV11 Penyanyi Lagu Hey Waley

Gegar Vaganza 2024 GV 11 Hadiah Tiket Peserta Juri Format Pemarkahan Dan Segala Info Tonton Live Di Astro Ria Dan Sooka

6 Janji Donald Trump Kalau Dia Naik Jadi Presiden Semula


Mixology Vape S Commitment To Quality Crafting The Best Vape Flavours Nz

Pensyarah Didakwa Hina Nabi Jawi Turut Buka Siasatan

Murid Buktikan Pada Guru Lembu Makan Martabak

The Difference In The Concept Of Illicit Relationship Between Muslims And Non Muslims

Tiada Masalah Pas Ketuai Pn Tapi Bincang Dulu Kata Pemimpin Bersatu

Cek Pertama Dari Google Adsense