Battery-Powered Arduino Nano Weather Station with LoRa Connectivity
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit integrates various sensors and communication modules with an Arduino Nano and an ESP32 Devkit V1. The sensors include a DHT11 Humidity and Temperature Sensor, an Adafruit GUVA-S12SD UV Light Sensor, and a DFRobot Capacitive Soil Moisture Sensor. The communication modules are LoRa Ra-02 SX1278 modules. The circuit is powered by two sets of 2x 18650 batteries.
Component List
DHT11 Humidity and Temperature Sensor
- Pins: VDD, DATA, NULL, GND
- Description: Measures humidity and temperature.
- Purpose in Circuit: Provides environmental data.
Arduino Nano
- 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
- Description: Microcontroller board.
- Purpose in Circuit: Central control unit for sensors and communication modules.
2x 18650 Battery
- Pins: vcc, gnd
- Description: Power source.
- Purpose in Circuit: Provides power to the circuit.
Adafruit GUVA-S12SD UV Light Sensor
- Pins: 5V, Out, GND
- Description: Measures UV light intensity.
- Purpose in Circuit: Provides UV light data.
LoRa Ra-02 SX1278
- Pins: GND, NSS, MOSI, MISO, SCK, D105, DI04, 3.3V, RST, DI00, DI01, D102, DI03
- Description: Long-range communication module.
- Purpose in Circuit: Enables long-range wireless communication.
ESP32 Devkit V1
- Pins: 3V3, GND, D15, D2, D4, RX2, TX2, D5, D18, D19, D21, RX0, TX0, D22, D23, EN, VP, VN, D34, D35, D32, D33, D25, D26, D27, D14, D12, D13, VIN
- Description: Microcontroller board with Wi-Fi and Bluetooth.
- Purpose in Circuit: Secondary control unit for communication.
DFRobot Capacitive Soil Moisture Sensor (V1.0)
- Pins: A, VCC, GND
- Description: Measures soil moisture levels.
- Purpose in Circuit: Provides soil moisture data.
Wiring Details
DHT11 Humidity and Temperature Sensor
- VDD connected to 3V3 of Arduino Nano
- DATA connected to D2 of Arduino Nano
- GND connected to GND of Arduino Nano
Arduino Nano
- VIN connected to vcc of 2x 18650 Battery
- GND connected to gnd of 2x 18650 Battery
- 5V connected to 5V of Adafruit GUVA-S12SD UV Light Sensor
- D2 connected to DATA of DHT11 Humidity and Temperature Sensor
- D3 connected to DI00 of LoRa Ra-02 SX1278
- A2 connected to Out of Adafruit GUVA-S12SD UV Light Sensor
- A1 connected to A of DFRobot Capacitive Soil Moisture Sensor
- D9 connected to RST of LoRa Ra-02 SX1278
- D10 connected to NSS of LoRa Ra-02 SX1278
- D11/MOSI connected to MOSI of LoRa Ra-02 SX1278
- 3V3 connected to VCC of DFRobot Capacitive Soil Moisture Sensor
- 3V3 connected to 3.3V of LoRa Ra-02 SX1278
- 3V3 connected to VDD of DHT11 Humidity and Temperature Sensor
- D12/MISO connected to MISO of LoRa Ra-02 SX1278
- D13/SCK connected to SCK of LoRa Ra-02 SX1278
2x 18650 Battery
- vcc connected to VIN of Arduino Nano
- gnd connected to GND of Arduino Nano
- vcc connected to VIN of ESP32 Devkit V1
- gnd connected to GND of ESP32 Devkit V1
Adafruit GUVA-S12SD UV Light Sensor
- 5V connected to 5V of Arduino Nano
- Out connected to A2 of Arduino Nano
- GND connected to GND of Arduino Nano
LoRa Ra-02 SX1278 (Arduino Nano)
- GND connected to GND of Arduino Nano
- NSS connected to D10 of Arduino Nano
- MOSI connected to D11/MOSI of Arduino Nano
- MISO connected to D12/MISO of Arduino Nano
- SCK connected to D13/SCK of Arduino Nano
- DI00 connected to D3 of Arduino Nano
- 3.3V connected to 3V3 of Arduino Nano
- RST connected to D9 of Arduino Nano
ESP32 Devkit V1
- VIN connected to vcc of 2x 18650 Battery
- GND connected to gnd of 2x 18650 Battery
- 3V3 connected to 3.3V of LoRa Ra-02 SX1278
- GND connected to GND of LoRa Ra-02 SX1278
- D2 connected to DI00 of LoRa Ra-02 SX1278
- D4 connected to RST of LoRa Ra-02 SX1278
- D5 connected to NSS of LoRa Ra-02 SX1278
- D18 connected to SCK of LoRa Ra-02 SX1278
- D19 connected to MISO of LoRa Ra-02 SX1278
- D23 connected to MOSI of LoRa Ra-02 SX1278
DFRobot Capacitive Soil Moisture Sensor (V1.0)
- A connected to A1 of Arduino Nano
- VCC connected to 3V3 of Arduino Nano
- GND connected to GND of Arduino Nano
LoRa Ra-02 SX1278 (ESP32 Devkit V1)
- GND connected to GND of ESP32 Devkit V1
- NSS connected to D5 of ESP32 Devkit V1
- MOSI connected to D23 of ESP32 Devkit V1
- MISO connected to D19 of ESP32 Devkit V1
- SCK connected to D18 of ESP32 Devkit V1
- DI00 connected to D2 of ESP32 Devkit V1
- 3.3V connected to 3V3 of ESP32 Devkit V1
- RST connected to D4 of ESP32 Devkit V1
Documented Code
Arduino Nano Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Additional Documentation
This documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and documented code.