Circuit Diagram & System Architecture

Hardware wiring diagrams, pin connections, and system flowchart for JalRakshak.AI water monitoring nodes.

Recommended ESP32 Board

This project is designed to work with standard ESP32 development boards with external LoRa modules.

Recommended Board: PandaByte xLoRa ESP32 LoRaWAN Development Board (ESP32-WROOM-32E with integrated RA-01H LoRa module)

Purchase PandaByte xLoRa Board (₹3,000) →

Note: If using the PandaByte xLoRa board, the LoRa module is already integrated. The pin connections below are for reference with external SX1276 modules on standard ESP32 boards.

ESP32
LoRa SX1276
Water Sensors
OLED Display

Complete Circuit Diagram

100%

Circuit Diagram Placeholder

This is a placeholder for the complete circuit diagram showing all connections between ESP32, LoRa module, sensors, and display.

Image will be added by the user

Circuit Diagram Image

Add your circuit diagram image (PNG/JPG) to /public/circuit-diagram.pngand it will be displayed here with zoom controls.

System Flowchart

100%
JalRakshak AI complete system flowchart
Download SVG

LoRa SX1276 → ESP32 Pin Connections

SX1276 PinESP32 GPIODescription
NSS (CS)GPIO 5SPI chip select
RSTGPIO 26LoRa reset pin
DIO0GPIO 25TX done / RX done IRQ
DIO1GPIO 33RX timeout IRQ
DIO2GPIO 32FHSS change IRQ
MOSIGPIO 23SPI MOSI (default)
MISOGPIO 19SPI MISO (default)
SCKGPIO 18SPI clock (default)
3.3V3V3Power supply
GNDGNDGround

Sensor Pins → ESP32

SensorESP32 GPIONotes
TDS (analog out)GPIO 212-bit ADC, VREF = 3.3V
pH (analog out)GPIO 34Input-only ADC pin
DS18B20 (data)GPIO 141-Wire; add 4.7 kΩ pull-up to 3.3V
OLED SDAGPIO 21I²C data (Wire default)
OLED SCLGPIO 22I²C clock (Wire default)

Component Overview

ESP32 DevKit

Voltage:3.3V - 5V
Current (Active):~240 mA
WiFi/BT:
Supported

LoRa SX1276/RA-01H

Frequency:868/915 MHz
Current (TX):~120 mA
Range:
Up to 15 km

Water Sensors

pH Sensor:0-14 pH
TDS Sensor:0-1000 ppm
DS18B20:
-55°C to 125°C

Power Supply Requirements

Total Power Consumption

ESP32 (Active):~240 mA
LoRa TX (Peak):~120 mA
Sensors (Total):~50 mA
OLED Display:~20 mA
Peak Total:~430 mA

Recommended Power Setup

LiPo Battery
3.7V, 2000-3000 mAh
TP4056 Charger Module
For solar/USB charging
Estimated Battery Life
~12-24 hours (60s TX interval)

Assembly Instructions

  1. 1

    Connect LoRa SX1276 module to ESP32 using SPI pins (MOSI, MISO, SCK, NSS, RST, DIO0-2).

  2. 2

    Wire water sensors: TDS to GPIO 2, pH to GPIO 34, DS18B20 to GPIO 14 (with 4.7kΩ pull-up resistor).

  3. 3

    Connect OLED display via I²C: SDA to GPIO 21, SCL to GPIO 22.

  4. 4

    Attach power supply (3.7V LiPo with TP4056 charger) to ESP32 VIN and GND.

  5. 5

    Verify all connections match the circuit diagram before powering on.

Important Safety Notes

  • • Ensure all sensors are rated for 3.3V operation (or use level shifters)
  • • DS18B20 requires a 4.7kΩ pull-up resistor on the data line
  • • Waterproof sensors and connections for outdoor deployment
  • • Use proper ESD protection when handling sensitive components
  • • Double-check power polarity before connecting battery