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

Arduino UNO Based Soil Moisture Monitoring with OLED Display and Alert Buzzer

Image of Arduino UNO Based Soil Moisture Monitoring with OLED Display and Alert Buzzer

Circuit Documentation

Summary

This circuit integrates an Arduino UNO microcontroller with a 0.96" OLED display, a DFRobot Capacitive Soil Moisture Sensor (V1.0), and a buzzer. The Arduino UNO serves as the central processing unit, interfacing with the OLED display via I2C communication and reading soil moisture levels from the sensor. The buzzer is controlled by the Arduino to provide audible alerts or feedback.

Component List

Arduino UNO

  • Description: A microcontroller board based on the ATmega328P.
  • Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0-A5, SCL, SDA, AREF, D0-D13.
  • Purpose: Acts as the central controller for the circuit, interfacing with sensors, displays, and other peripherals.

0.96" OLED

  • Description: A small display for visual output.
  • Pins: GND, VDD, SCK, SDA.
  • Purpose: Displays information such as sensor readings or system status.

DFRobot Capacitive Soil Moisture Sensor (V1.0)

  • Description: A sensor that measures the moisture level in the soil.
  • Pins: A, VCC, GND.
  • Purpose: Provides soil moisture readings to the Arduino for monitoring or control purposes.

Buzzer

  • Description: An electromechanical component that produces sound.
  • Pins: PIN, GND.
  • Purpose: Generates audible alerts based on certain triggers or conditions.

Wiring Details

Arduino UNO

  • 5V: Powers the Soil Moisture Sensor and the OLED display.
  • GND: Common ground for the Buzzer, Soil Moisture Sensor, and OLED display.
  • A0: Receives analog input from the Soil Moisture Sensor.
  • A4 (SDA): I2C data line connected to the OLED display.
  • A5 (SCL): I2C clock line connected to the OLED display.
  • D4: Controls the Buzzer.

0.96" OLED

  • GND: Connected to the common ground.
  • VDD: Powered by the 5V from the Arduino UNO.
  • SCK: Connected to A5 (SCL) on the Arduino UNO for I2C clock.
  • SDA: Connected to A4 (SDA) on the Arduino UNO for I2C data.

DFRobot Capacitive Soil Moisture Sensor (V1.0)

  • A: Analog output connected to A0 on the Arduino UNO.
  • VCC: Powered by the 5V from the Arduino UNO.
  • GND: Connected to the common ground.

Buzzer

  • PIN: Controlled by D4 on the Arduino UNO.
  • GND: Connected to the common ground.

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 include specific functionality. It should be populated with setup configurations and operational logic to control the OLED display, read from the soil moisture sensor, and drive the buzzer based on the sensor readings or other conditions.