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

Arduino Mega 2560-Based Automated Plant Watering System with Soil and Water Level Sensors

View and Edit Project In Cirkit DesignerImage of Arduino Mega 2560-Based Automated Plant Watering System with Soil and Water Level Sensors

Circuit Documentation

Summary

This circuit involves an Arduino Mega 2560 microcontroller interfacing with a water level sensor, a soil moisture sensor, a 5V mini water pump, and an LED with a resistor. The circuit is designed to monitor water levels and soil moisture, and control a water pump accordingly. The LED serves as an indicator.

Component List

Arduino Mega 2560

Water Level Sensor

Adafruit STEMMA Soil Sensor

5V Mini Water Pump

LED: Two Pin (Red)

Resistor

Wiring Details

Arduino Mega 2560

Water Level Sensor

Adafruit STEMMA Soil Sensor

5V Mini Water Pump

LED: Two Pin (Red)

Resistor

Documented Code

Arduino Mega 2560 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 Mega 2560. 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 for controlling the water pump, reading sensor values, and driving the LED in these functions.