Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino 101-Based Smart Soil Monitoring System with NPK, Moisture, and Temperature Sensors

View and Edit Project In Cirkit DesignerImage of Arduino 101-Based Smart Soil Monitoring System with NPK, Moisture, and Temperature Sensors

Circuit Documentation

Summary

This document provides a detailed overview of a circuit that includes various sensors, an Arduino 101 microcontroller, a 12V battery, and an RS-485 module. The circuit is designed to measure soil moisture, temperature, pH, and NPK levels using respective sensors. The Arduino 101 microcontroller processes the sensor data and communicates with other components via the RS-485 module.

Component List

  1. NPK Soil Sensor

    • Pins: VCC, GND, A, B
    • Description: Measures the levels of Nitrogen (N), Phosphorus (P), and Potassium (K) in the soil.
    • Purpose: To provide soil nutrient data.
  2. TEMP Sensor

    • Pins: 5V, D3, GND
    • Description: Measures the temperature.
    • Purpose: To provide temperature data.
  3. SparkFun Soil Moisture Sensor

    • Pins: VCC, GND, SIG
    • Description: Measures the soil moisture level.
    • Purpose: To provide soil moisture data.
  4. Arduino 101

    • Pins: A5/SCL, A4/SDA, AREF, GND, D13/SCK, D12/MISO, D11 PWM/MOSI, D10 PWM/SS, D9 PWM, D8, D7, D6 PWM, D5 PWM, D4, D3 PWM, D2, D1/TX, D0/RX, AIN, ioref, RESET, 3V3, 5V, VIN, A0, A1, A2, A3, ICSP MISO, ICSP SCK, ICSP MOSI
    • Description: A microcontroller board based on the Intel Curie module.
    • Purpose: To process sensor data and control other components.
  5. Battery 12V

    • Pins: +, -
    • Description: Provides power to the circuit.
    • Purpose: To supply power to the components.
  6. RS-485 Module

    • Pins: VCC, B, A, GND, RO, RE, DE, DI
    • Description: A communication module for RS-485 protocol.
    • Purpose: To enable communication between the Arduino and other devices.
  7. PH Meter

    • Pins: Signal, VCC, GND
    • Description: Measures the pH level of the soil.
    • Purpose: To provide soil pH data.

Wiring Details

NPK Soil Sensor

TEMP Sensor

SparkFun Soil Moisture Sensor

Arduino 101

Battery 12V

RS-485 Module

PH Meter

Documented Code

Arduino 101 Code

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

}

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

}

Battery 12V Code

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

}

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

}

This documentation provides a comprehensive overview of the circuit, including the components used, their wiring details, and the code for the microcontrollers.