Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino UNO R4 WiFi Smart Irrigation and Environmental Monitoring System

View and Edit Project In Cirkit DesignerImage of Arduino UNO R4 WiFi Smart Irrigation and Environmental Monitoring System

Circuit Documentation

Summary

This document provides a detailed overview of a circuit that integrates various sensors, relays, and actuators with an Arduino UNO R4 WiFi microcontroller. The circuit is designed to monitor environmental parameters such as soil moisture, temperature, and gas concentrations, and to control devices like fans and water pumps based on sensor readings.

Component List

  1. Arduino UNO R4 WiFi

    • Description: A microcontroller board based on the ATmega328P, featuring built-in WiFi capabilities.
    • Pins: OFF, GND, VRTC, IIC0_SCL, IIC0_SDA, 3V3, GPIO 41, GPIO 0, GPIO 42, GPIO 43, GPIO 44, BOOT, IOREF, RESET, 5V, VIN, A0, A1, A2, A3, A4, A5, RSPCKA, CIPO, COPI, D0/RX, D1/TX, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, AREF, SDA, SCL
  2. 9V Battery

    • Description: A standard 9V battery used to power the circuit.
    • Pins: +, -
  3. 1-Channel Relay (5V 10A)

    • Description: A relay module used to control high-power devices.
    • Pins: NC, signal, C, power, NO, ground
  4. Water Pump

    • Description: A small water pump used for irrigation purposes.
    • Pins: positive, negative
  5. DFRobot Oxygen Sensor

    • Description: A sensor used to measure oxygen concentration.
    • Pins: Pin 1, Pin 2, Pin 3, Pin 4
  6. Soil Moisture Module

    • Description: A module used to measure soil moisture levels.
    • Pins: positive, negative, Analog, Digital, Ground, VCC
  7. SparkFun Soil Moisture Sensor

    • Description: A sensor used to measure soil moisture levels.
    • Pins: VCC, GND, SIG
  8. 2.1mm Barrel Jack with Terminal Block

    • Description: A barrel jack used to connect the 9V battery to the circuit.
    • Pins: POS, NEG
  9. MQ131

    • Description: A gas sensor used to measure ozone concentration.
    • Pins: GND, AOUT, DOUT, VCC
  10. MH-Z19B

    • Description: A sensor used to measure CO2 concentration.
    • Pins: HD, TX, RX, V0, PWM, GND, Vin
  11. TEMP

    • Description: A temperature sensor.
    • Pins: 5V, D3, GND
  12. Fan

    • Description: A small fan used for ventilation.
    • Pins: GND, 5V
  13. 16x2 I2C LCD

    • Description: A 16x2 character LCD with I2C interface.
    • Pins: GND, VCC, SDA, SCL

Wiring Details

Arduino UNO R4 WiFi

9V Battery

1-Channel Relay (5V 10A)

Water Pump

DFRobot Oxygen Sensor

Soil Moisture Module

SparkFun Soil Moisture Sensor

2.1mm Barrel Jack with Terminal Block

MQ131

MH-Z19B

TEMP

Fan

16x2 I2C LCD

Documented Code

Arduino UNO R4 WiFi Code

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

This code is a basic template for the Arduino UNO R4 WiFi. The setup function is used to initialize any settings or configurations, and the loop function contains the main logic that runs repeatedly. You can add your specific logic to read sensor data and control the relays and actuators based on the sensor readings.