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

Arduino Mega 2560 Smart Irrigation System with Bluetooth Control

View and Edit Project In Cirkit DesignerImage of Arduino Mega 2560 Smart Irrigation System with Bluetooth Control

Circuit Documentation

Summary

This circuit is designed to interface various sensors and modules with an Arduino Mega 2560 microcontroller. The components include a DHT11 temperature and humidity sensor, an MQ-2 gas sensor, an HC-05 Bluetooth module, a 5V relay, a water pump, a 12V battery, a rain/snow sensor, a soil moisture sensor, and a soil moisture interceptor. The Arduino Mega 2560 serves as the central controller, reading data from the sensors and controlling the relay and water pump.

Component List

  1. Arduino Mega 2560

    • Description: A microcontroller board based on the ATmega2560.
    • Pins: IOREF, RESET, 3V3, 5V, GND, VIN, A0-A15, D0-D53, AREF, SDA, SCL
  2. DHT11

    • Description: A temperature and humidity sensor.
    • Pins: DATA, GND, VCC
  3. MQ-2

    • Description: A gas sensor for detecting LPG, i-butane, propane, methane, alcohol, hydrogen, and smoke.
    • Pins: GND, VCC, ANALOG, Digital
  4. HC-05 Bluetooth Module

    • Description: A Bluetooth module for wireless communication.
    • Pins: Key, VCC, GND, TXD, RXD, State
  5. 5V Relay

    • Description: A relay module for switching high voltage devices.
    • Pins: Normally Open, Common terminal, Normally Closed, In, GND, VCC
  6. Water Pump

    • Description: A pump for moving water.
    • Pins: VCC, GND
  7. Battery 12V

    • Description: A 12V battery for powering the water pump.
    • Pins: +, -
  8. Rain/Snow Sensor - Board

    • Description: A sensor board for detecting rain or snow.
    • Pins: 1, 2, A0 (Analog), D0 (Digital), GND, VCC (5V)
  9. YL-83 Rain Sensor - Detection Board

    • Description: A detection board for the rain sensor.
    • Pins: POS, NEG
  10. SparkFun Soil Moisture Sensor

    • Description: A sensor for measuring soil moisture.
    • Pins: VCC, GND, SIG
  11. Soil Moisture Interceptor

    • Description: A module for interfacing with the soil moisture sensor.
    • Pins: AO, DO, GND, VCC

Wiring Details

Arduino Mega 2560

DHT11

MQ-2

HC-05 Bluetooth Module

5V Relay

Water Pump

Battery 12V

Rain/Snow Sensor - Board

YL-83 Rain Sensor - Detection Board

SparkFun Soil Moisture Sensor

Soil Moisture Interceptor

Documented Code

sketch.ino

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

}

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

}

documentation.txt