Arduino Nano-Based Smart Soil Monitoring System with Wi-Fi Connectivity
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit designed to monitor environmental conditions using various sensors and an Arduino Nano microcontroller. The circuit includes a WiFi module for connectivity, multiple sensors for soil moisture, temperature, humidity, and nutrient levels, and a power supply from 18650 Li-ion batteries.
Component List
Arduino Nano
- Description: A small, complete, and breadboard-friendly board based on the ATmega328P.
- Pins: D1/TX, D0/RX, RESET, GND, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11/MOSI, D12/MISO, VIN, 5V, A7, A6, A5, A4, A3, A2, A1, A0, AREF, 3V3, D13/SCK
18650 Li-ion Battery x 2
- Description: Rechargeable lithium-ion batteries used to power the circuit.
- Pins: +, -
SparkFun Soil Moisture Sensor
- Description: Measures the volumetric content of water in soil.
- Pins: VCC, GND, SIG
NPK Soil Sensor
- Description: Measures the nitrogen (N), phosphorus (P), and potassium (K) levels in the soil.
- Pins: 12V DC, A, B, GND
DHT22
- Description: Measures temperature and humidity.
- Pins: VCC, OUT, GND
Adafruit MS8607 PHT Sensor
- Description: Measures pressure, humidity, and temperature.
- Pins: VCC, 3.3V, GND, SCL, SDA
TDS Sensor
- Description: Measures the total dissolved solids in water.
- Pins: AI, GND, 5V
WiFi module ESP8266-01
- Description: Provides WiFi connectivity.
- Pins: RX, GPIO0, GPIO2, GND, +3V3, Reset, CH-PD Chip power down, TX
Wiring Details
Arduino Nano
- D1/TX connected to RX of WiFi module ESP8266-01
- D0/RX connected to TX of WiFi module ESP8266-01
- D3 connected to OUT of DHT22
- VIN connected to + of 18650 Li-ion Battery x 2
- GND connected to:
- GND of WiFi module ESP8266-01
- GND of DHT22
- GND of TDS Sensor
- GND of NPK Soil Sensor
- GND of SparkFun Soil Moisture Sensor
- - of 18650 Li-ion Battery x 2
- GND of Adafruit MS8607 PHT Sensor
- 5V connected to:
- +3V3 of WiFi module ESP8266-01
- VCC of DHT22
- 5V of TDS Sensor
- 12V DC of NPK Soil Sensor
- VCC of SparkFun Soil Moisture Sensor
- VCC of Adafruit MS8607 PHT Sensor
- A2 connected to SDA of Adafruit MS8607 PHT Sensor
- A1 connected to A of NPK Soil Sensor
- A0 connected to SIG of SparkFun Soil Moisture Sensor
18650 Li-ion Battery x 2
- + connected to VIN of Arduino Nano
- - connected to GND of Arduino Nano
SparkFun Soil Moisture Sensor
- VCC connected to 5V of Arduino Nano
- GND connected to GND of Arduino Nano
- SIG connected to A0 of Arduino Nano
NPK Soil Sensor
- 12V DC connected to 5V of Arduino Nano
- A connected to A1 of Arduino Nano
- GND connected to GND of Arduino Nano
DHT22
- VCC connected to 5V of Arduino Nano
- OUT connected to D3 of Arduino Nano
- GND connected to GND of Arduino Nano
Adafruit MS8607 PHT Sensor
- VCC connected to 5V of Arduino Nano
- GND connected to GND of Arduino Nano
- SDA connected to A2 of Arduino Nano
TDS Sensor
- 5V connected to 5V of Arduino Nano
- GND connected to GND of Arduino Nano
WiFi module ESP8266-01
- RX connected to D1/TX of Arduino Nano
- TX connected to D0/RX of Arduino Nano
- GND connected to GND of Arduino Nano
- +3V3 connected to 5V of Arduino Nano
Documented Code
Arduino Nano Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Additional Documentation (documentation.txt)
This document provides a comprehensive overview of the circuit, including the components used, their connections, and the code running on the Arduino Nano.