Arduino Pro Mini Based Soil Moisture Monitoring with OLED Display
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an Arduino Pro Mini as the central microcontroller, interfaced with an OLED display, a capacitive soil moisture sensor, a toggle switch, a pushbutton, a 7805 voltage regulator, and powered by a 9V battery. The circuit is designed to collect soil moisture data and display it on the OLED screen. User interaction is facilitated through a pushbutton and a toggle switch that controls the power supply.
Component List
Arduino Pro Mini
- Microcontroller board based on the ATmega328
- Pins: DTR, TXO, RXI, VCC, GND, A4, A5, RAW, RESET, A3, A2, A1, A0, SCK, MISO, MOSI, D10, D9, D8, D7, D6, D5, D4, D3, D2
OLED Display (128x32)
- Small OLED screen for displaying data
- Pins: SDA, SCL, VCC, GND
Capacitive Soil Moisture Sensor V1.2
- Sensor for measuring the moisture content in soil
- Pins: GND, VCC, AOUT
Toggle Switch
- Switch to control the power supply to the circuit
- Pins: L1, COM, L2
Pushbutton
- Button for user input
- Pins: Pin 2, Pin 1, Pin 3, Pin 4
7805 Voltage Regulator
- Linear voltage regulator that outputs 5V
- Pins: Vin, Gnd, Vout
9V Battery
- Power source for the circuit
- Pins: -, +
Wiring Details
Arduino Pro Mini
- VCC connected to 7805 Vout
- GND connected to 9V Battery -, Capacitive Soil Moisture Sensor GND, OLED Display GND, and Pushbutton Pin 1
- A4 connected to OLED Display SDA
- A5 connected to OLED Display SCL
- A0 connected to Capacitive Soil Moisture Sensor AOUT
- D6 connected to Pushbutton Pin 4
OLED Display (128x32)
- SDA connected to Arduino Pro Mini A4
- SCL connected to Arduino Pro Mini A5
- VCC connected to Arduino Pro Mini VCC
- GND connected to Arduino Pro Mini GND
Capacitive Soil Moisture Sensor V1.2
- GND connected to Arduino Pro Mini GND
- VCC connected to Arduino Pro Mini VCC
- AOUT connected to Arduino Pro Mini A0
Toggle Switch
- COM connected to 7805 Vin
- L2 connected to 9V Battery +
Pushbutton
- Pin 4 connected to Arduino Pro Mini D6
- Pin 1 connected to Arduino Pro Mini GND
7805 Voltage Regulator
- Vin connected to Toggle Switch COM
- Gnd connected to 9V Battery -
- Vout connected to Arduino Pro Mini VCC
9V Battery
-
- connected to Arduino Pro Mini GND and 7805 Gnd
-
- connected to Toggle Switch L2
Documented Code
Arduino Pro Mini Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Additional Notes (documentation.txt)
No additional code documentation was provided for the Arduino Pro Mini.