Scarze
Published

Greenhouse Domotic Unit

Domotic unit to control temperature, humidity and time inside a greenhouse.

BeginnerFull instructions provided252
Greenhouse Domotic Unit

Things used in this project

Hardware components

Jumper wires (generic)
Jumper wires (generic)
×1
Female/Female Jumper Wires
Female/Female Jumper Wires
×1
Male/Female Jumper Wires
Male/Female Jumper Wires
×1
DHT11 Temperature & Humidity Sensor (3 pins)
DHT11 Temperature & Humidity Sensor (3 pins)
×1
FireBeetle ESP32 IOT Microcontroller (Supports Wi-Fi & Bluetooth)
DFRobot FireBeetle ESP32 IOT Microcontroller (Supports Wi-Fi & Bluetooth)
×1
Power Relay, SPDT
Power Relay, SPDT
×2
Arduino UNO & Genuino UNO
Arduino UNO & Genuino UNO
×1
Real Time Clock (RTC)
Real Time Clock (RTC)
×1
Alphanumeric LCD, 16 x 2
Alphanumeric LCD, 16 x 2
×1
Rotary potentiometer (generic)
Rotary potentiometer (generic)
×1

Software apps and online services

Blynk
Blynk

Hand tools and fabrication machines

Scissors, Free Fall
Scissors, Free Fall
Soldering iron (generic)
Soldering iron (generic)
Tape, Electrical Insulation
Tape, Electrical Insulation

Story

Read more

Schematics

circuit

in this picture is represented the circuit

Code

progetto_edo_Serra_IoT.ino

Arduino
#include <Blynk.h>
#include <SPI.h>

/*************************************************************
  Download latest Blynk library here:
    https://github.com/blynkkk/blynk-library/releases/latest

  Blynk is a platform with iOS and Android apps to control
  Arduino, Raspberry Pi and the likes over the Internet.
  You can easily build graphic interfaces for all your
  projects by simply dragging and dropping widgets.

    Downloads, docs, tutorials: http://www.blynk.cc
    Sketch generator:           http://examples.blynk.cc
    Blynk community:            http://community.blynk.cc
    Follow us:                  http://www.fb.com/blynkapp
                                http://twitter.com/blynk_app

  Blynk library is licensed under MIT license
  This example code is in public domain.

 *************************************************************
  This example runs directly on ESP32 chip.

  Note: This requires ESP32 support package:
    https://github.com/espressif/arduino-esp32

  Please be sure to select the right ESP32 module
  in the Tools -> Board menu!

  Change WiFi ssid, pass, and Blynk auth token to run :)
  Feel free to apply it to any other example. It's simple!
 *************************************************************/

/* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial

#include <DHT.h>
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
#define DHTTYPE DHT11 //tipo di DHT
#define DHTPIN 2  //definition of DHT11 pin
DHT dht(DHTPIN, DHTTYPE);
BlynkTimer timer;
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "89844fd043d8415c8e4c6f68dbf142a9";

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "Cioccolato";
char pass[] = "chiesa123";

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

  if (isnan(h) || isnan(t)) {
   
    return;
  }
  // You can send any value at any time.
  // Please don't send more that 10 values per second.
  Blynk.virtualWrite(V5, h);
  Blynk.virtualWrite(V6, t);
}


void setup()
{
  
  Serial.begin(9600);
   dht.begin();
 timer.setInterval(1000L, sendSensor);
  Blynk.begin(auth, ssid, pass);
 
}




void loop()
{  
   timer.run();
  Blynk.run();

}

Credits

Scarze

Scarze

0 projects • 0 followers

Comments

Add projectSign up / Login