Arduino UNO-Based Smart Soil Monitoring System with OLED and LCD Displays
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller interfacing with various sensors and displays. The components include a 16x2 I2C LCD, a 0.96" OLED display, a Soil Moisture Sensor, an NPK Soil Sensor, an RS485 module, and a 12V battery. The Arduino UNO serves as the central controller, reading data from the sensors and displaying information on the connected displays.
Component List
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
16x2 I2C LCD
- Description: A 16x2 character LCD display with I2C interface.
- Pins: GND, VCC, SDA, SCL
0.96" OLED
- Description: A small OLED display with I2C interface.
- Pins: GND, VDD, SCK, SDA
Soil Moisture Sensor
- Description: A sensor to measure soil moisture levels.
- Pins: VCC, GND, SIG
NPK Soil Sensor
- Description: A sensor to measure nitrogen (N), phosphorus (P), and potassium (K) levels in soil.
- Pins: 12V DC, A, B, GND
RS485
- Description: A module for RS485 communication.
- Pins: VCC, RO, RE, GND, B, A, DE, DI
Battery 12V
- Description: A 12V battery for powering components.
- Pins: +, -
Wiring Details
Arduino UNO
- 5V: Connected to VCC of Soil Moisture Sensor, VDD of 0.96" OLED, VCC of RS485, VCC of 16x2 I2C LCD
- GND: Connected to GND of Soil Moisture Sensor, GND of 0.96" OLED, GND of RS485, GND of 16x2 I2C LCD
- SCL: Connected to SCK of 0.96" OLED, SCL of 16x2 I2C LCD
- SDA: Connected to SDA of 0.96" OLED, SDA of 16x2 I2C LCD
- A0: Connected to SIG of Soil Moisture Sensor
16x2 I2C LCD
- GND: Connected to GND of Arduino UNO
- VCC: Connected to 5V of Arduino UNO
- SDA: Connected to SDA of Arduino UNO
- SCL: Connected to SCL of Arduino UNO
0.96" OLED
- GND: Connected to GND of Arduino UNO
- VDD: Connected to 5V of Arduino UNO
- SDA: Connected to SDA of Arduino UNO
- SCK: Connected to SCL of Arduino UNO
Soil Moisture Sensor
- VCC: Connected to 5V of Arduino UNO
- GND: Connected to GND of Arduino UNO
- SIG: Connected to A0 of Arduino UNO
NPK Soil Sensor
- 12V DC: Connected to + of 12V battery
- A: Connected to A of RS485
- B: Connected to B of RS485
- GND: Connected to - of 12V battery
RS485
- VCC: Connected to 5V of Arduino UNO
- GND: Connected to GND of Arduino UNO
- A: Connected to A of NPK Soil Sensor
- B: Connected to B of NPK Soil Sensor
Battery 12V
- +: Connected to 12V DC of NPK Soil Sensor
- -: Connected to GND of NPK Soil Sensor
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:
}
Documentation (documentation.txt)
This documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and the code used in the Arduino UNO microcontroller.