Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Project Documentation

Arduino-Powered Soil Moisture Monitoring System with Ultrasonic Distance Sensing

Image of Arduino-Powered Soil Moisture Monitoring System with Ultrasonic Distance Sensing

Circuit Documentation

Summary

This circuit is designed to integrate an Arduino UNO microcontroller with various sensors and actuators, including an HC-SR04 ultrasonic sensor, a SparkFun soil moisture sensor, and a servo motor. The circuit is powered by a 18650 Li-ion battery, providing a portable power source for the components. The ultrasonic sensor is used for distance measurement, the soil moisture sensor for detecting soil moisture levels, and the servo motor for mechanical movement based on sensor inputs.


Component List

Arduino UNO

  • Description: A microcontroller board based on the ATmega328P. It is used to control the other components in the circuit.
  • Purpose: Acts as the central processing unit for the circuit, executing the programmed code to manage sensor readings and control the servo motor.

HC-SR04 Ultrasonic Sensor

  • Description: An ultrasonic distance sensor that measures the distance to an object using sonar.
  • Purpose: Provides distance measurements to detect obstacles or measure distances in the environment.

Servo

  • Description: A small motor that can be controlled to rotate to a specific angle.
  • Purpose: Used to perform mechanical movements based on the input from the sensors.

SparkFun Soil Moisture Sensor

  • Description: A sensor that measures the volumetric water content in soil.
  • Purpose: Monitors soil moisture levels to determine when irrigation is needed.

18650 Li-ion Battery

  • Description: A rechargeable lithium-ion battery commonly used in portable electronics.
  • Purpose: Provides power to the entire circuit, ensuring all components operate effectively.

Wiring Details

Arduino UNO

  • 5V connected to:

    • HC-SR04 VCC
    • SparkFun Soil Moisture Sensor VCC
    • Servo VCC
  • GND connected to:

    • SparkFun Soil Moisture Sensor GND
    • HC-SR04 GND
    • Servo GND
    • 18650 Li-ion Battery -
  • Vin connected to:

    • 18650 Li-ion Battery +
  • A0 connected to:

    • SparkFun Soil Moisture Sensor SIG
  • D12 connected to:

    • HC-SR04 TRIG
  • D11 connected to:

    • HC-SR04 ECHO
  • D8 connected to:

    • Servo PWM

Documented Code

Arduino Code

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

}

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

}

Documentation

This section is reserved for additional documentation or notes related to the circuit and its operation. Currently, there are no additional notes provided.