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 : 343 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 : 215 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 : 233 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 : 210 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 : 296 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 : 217 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 : 322 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 : 317 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 : 367 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...
Cultural Reasons Make Malaysians Target For Human Trafficking Says Firm

Makan Steamboat Dapat Henna Free

Cops Probing Into Foreigner S Death In Custody At Klia

15 Kafe Di Johor Bahru Instagrammble Muslim Friendly

15 Cozy Christmas Wreath Designs For A Warm Welcome

Is Tiong China S Tourism Minister Or Malaysia S Asks Wan Fayhsal

Suspek Buruan Kes Samun Toreh Dicekup

A Botched Shot


echo '';
Info Dan Sinopsis Drama Berepisod Lara Kasih Slot Samarinda TV3

Senarai Lagu Tugasan Konsert Minggu 2 Gegar Vaganza 2024 Musim 11

Keputusan Markah Peserta Konsert Minggu 1 Gegar Vaganza 2024 Musim 11

Senarai Lagu Tugasan Konsert Minggu 1 Gegar Vaganza 2024 Musim 11

Info Dan Sinopsis Drama Berepisod Dhia Kasyrani Slot Akasia TV3


Leveraging Zero Click Searches

Ibu Bapa Elak Pilih Kasih Dengan Anak Anak

Senarai Calon Top 5 Festival Filem Malaysia Ke 33

Resipi Sambal Goreng Jawa Paling Sedap Cara Masak Pun Mudah Je

Pertandingan Akhir Memasak Kisahkariku Berakhir Meriah Kari Ketam Jadi Pilihan Juri

10 Cuka Epal Terbaik Untuk Kesihatan Kecantikkan Anda