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

Arduino UNO Based Soil Moisture Monitoring and Ultrasonic Distance Measurement System

Image of Arduino UNO Based Soil Moisture Monitoring and Ultrasonic Distance Measurement System

Circuit Documentation

Summary

This circuit integrates various sensors and actuators with an Arduino UNO microcontroller to perform tasks that likely involve environmental monitoring and response. The circuit includes a soil moisture sensor for detecting water content in the soil, a soil moisture module that interfaces with the sensor, an HC-SR04 ultrasonic sensor for distance measuring, and two Tower Pro SG90 servos for actuation. The Arduino UNO serves as the central processing unit, reading sensor data, and controlling the servos based on programmed logic.

Component List

Soil Moisture Sensor

  • Pins: +, -
  • Description: A sensor used to measure the volumetric water content in soil.

Soil Moisture Module

  • Pins: positive, negative, Analog, Digital, Ground, VCC
  • Description: An interface module for the soil moisture sensor, providing power and signal conditioning.

Arduino UNO

  • Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0 to A5, SCL, SDA, AREF, D13 to D0
  • Description: A microcontroller board based on the ATmega328P, widely used for building digital devices and interactive objects.

HC-SR04 Ultrasonic Sensor

  • Pins: VCC, TRIG, ECHO, GND
  • Description: A sensor that measures distance by emitting ultrasonic waves and measuring the time taken for the echo to return.

Tower Pro SG90 Servo (x2)

  • Pins: Signal, +5V, GND
  • Description: A small and lightweight servo motor capable of precise control.

Wiring Details

Soil Moisture Sensor

  • Power: Connected to the positive pin of the Soil Moisture Module.
  • Ground: Connected to the negative pin of the Soil Moisture Module.

Soil Moisture Module

  • Power (VCC): Connected to the 5V pin on the Arduino UNO.
  • Ground (Ground): Connected to the GND pin on the Arduino UNO.
  • Signal (Analog): Connected to the A0 pin on the Arduino UNO.

Arduino UNO

  • 5V and GND: Provide power to the Soil Moisture Module, HC-SR04 Ultrasonic Sensor, and both Tower Pro SG90 servos.
  • A0: Receives the analog signal from the Soil Moisture Module.
  • D10: Connected to the ECHO pin of the HC-SR04 Ultrasonic Sensor.
  • D9: Connected to the TRIG pin of the HC-SR04 Ultrasonic Sensor.
  • D5: Connected to the Signal pin of one Tower Pro SG90 servo.
  • D3: Connected to the Signal pin of the other Tower Pro SG90 servo.

HC-SR04 Ultrasonic Sensor

  • Power (VCC): Connected to the 5V pin on the Arduino UNO.
  • Ground (GND): Connected to the GND pin on the Arduino UNO.
  • Signal (TRIG, ECHO): Connected to D9 and D10 on the Arduino UNO respectively.

Tower Pro SG90 Servos

  • Power (+5V): Connected to the 5V pin on the Arduino UNO.
  • Ground (GND): Connected to the GND pin on the Arduino UNO.
  • Signal (Signal): Each servo's signal pin is connected to a separate digital pin (D5 and D3) on the Arduino UNO.

Documented Code

Arduino UNO Code (sketch.ino)

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

}

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

}

Note: The provided code is a template and does not contain any functional logic. It needs to be populated with instructions to control the sensors and actuators based on the requirements of the project.