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

Arduino Mega 2560-Based Smart Irrigation System with Soil Moisture and Rain Sensors

View and Edit Project In Cirkit DesignerImage of Arduino Mega 2560-Based Smart Irrigation System with Soil Moisture and Rain Sensors

Circuit Documentation

Summary

This circuit is designed to interface an Arduino Mega 2560 with multiple sensors and modules, including soil moisture sensors, a rain sensor, relay modules, and a SIM900A module. The circuit is powered through step-down buck converters to ensure appropriate voltage levels for the components.

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, PWM, AREF, SDA, SCL
  2. SparkFun Soil Moisture Sensor

    • Description: A sensor used to measure the moisture level in the soil.
    • Pins: VCC, GND, SIG
  3. RAIN SENSOR

    • Description: A sensor used to detect the presence of rain.
    • Pins: AO, DO, GRD, VCC
  4. Step down Buck converter

    • Description: A DC-DC converter used to step down voltage.
    • Pins: IN +, IN - GND, OUT +, OUT - GND
  5. Relay module 5v-30v

    • Description: A relay module used to control high voltage devices.
    • Pins: common contact, normally open, normally closed, trigger, V-, V+
  6. SIM900A

    • Description: A GSM/GPRS module used for communication.
    • Pins: GND, DB9-3 (RXD), DB9-2 (TXD), 5V, 3VR, 5VR, 3VT, 5VT, VCC, Ring, RESTART, RESET, STATUS

Wiring Details

Arduino Mega 2560

SparkFun Soil Moisture Sensor

RAIN SENSOR

Step down Buck converter

Relay module 5v-30v

SIM900A

Documented Code

Arduino Mega 2560 Code (sketch.ino)

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

}

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

}

Additional Documentation (documentation.txt)