ESP32-Based Battery-Powered Weather Station with LoRa and GPS
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit design that includes various components such as sensors, microcontrollers, capacitors, resistors, and communication modules. The circuit is designed to interface multiple sensors and communication modules with an ESP32 microcontroller. The document includes a component list, wiring details, and code documentation.
Component List
SparkFun OpenLog
- Description: A serial data logger that writes incoming serial data to a microSD card.
- Pins: DTR, RXI, TXO, VCC, GND, RST, SCK, MOSI, MISO
Tantalum Capacitor
- Description: A capacitor with a capacitance of 100nF.
- Pins: -, +
- Properties:
- Capacitance: 100nF (1e-7 Farads)
Electrolytic Capacitor
- Description: A capacitor with a capacitance of 100µF.
- Pins: -, +
- Properties:
- Capacitance: 100µF (0.0001 Farads)
TP4056
- Description: A lithium battery charger module.
- Pins: OUT-, B-, B+, OUT+, IN-, IN+
BC547
- Description: A general-purpose NPN transistor.
- Pins: Collector, Base, Emitter
Rocker Switch
- Description: A simple on/off switch.
- Pins: Output, Input
Adafruit BME280
- Description: A sensor for measuring temperature, humidity, and pressure.
- Pins: VCC, 3.3V, GND, SCK/SCL, SDO/ADR, SDI/SDA, CS
Resistor (27kΩ)
- Description: A resistor with a resistance of 27kΩ.
- Pins: Pin1, Pin2
- Properties:
- Resistance: 27kΩ (27000 Ohms)
Resistor (100kΩ)
- Description: A resistor with a resistance of 100kΩ.
- Pins: Pin1, Pin2
- Properties:
- Resistance: 100kΩ (100000 Ohms)
MPU-6050
- Description: A 6-axis motion tracking device.
- Pins: VCC, GND, SCL, SDA, XDA, XCL, AD0, INT
ESP32 (30 pin)
- Description: A powerful microcontroller with built-in Wi-Fi and Bluetooth.
- Pins: EN, VP, VN, D34, D35, D32, D33, D25, D26, D27, D14, D12, D13, GND, Vin, D23, D22, TX0, RX0, D21, D19, D18, D5, TX2, RX2, D4, D2, D15, 3V3
Adafruit RFM9x LoRa Radio
- Description: A long-range radio module for communication.
- Pins: DIO1, DIO2, DIO3, DIO4, DIO5, ANTENNA, VIN, GND, EN, DIO0, SCK, MISO, MOSI, CS, RST
Li-ion 18650 Battery
- Description: A rechargeable lithium-ion battery.
- Pins: -, +
GPS NEO 6M
- Description: A GPS module for location tracking.
- Pins: VCC, RX, TX, GND
Comment
- Description: Placeholder for comments in the circuit.
- Pins: None
Wiring Details
SparkFun OpenLog
- RXI connected to ESP32 TX0
- TXO connected to ESP32 RX0
- GND connected to:
- Adafruit RFM9x LoRa Radio GND
- Adafruit BME280 GND
- Tantalum Capacitor -
- MPU-6050 GND
- TP4056 OUT-
- Electrolytic Capacitor -
- Resistor (100kΩ) Pin2
- GPS NEO 6M GND
- BC547 Collector
- ESP32 GND
- VCC connected to:
- Adafruit RFM9x LoRa Radio VIN
- Adafruit BME280 3.3V
- Tantalum Capacitor +
- MPU-6050 VCC
- Electrolytic Capacitor +
- GPS NEO 6M VCC
- BC547 Emitter
- ESP32 3V3
Tantalum Capacitor
- - connected to GND
- + connected to VCC
Electrolytic Capacitor
- - connected to GND
- + connected to VCC
TP4056
- OUT- connected to GND
- OUT+ connected to Rocker Switch Input
- B- connected to Li-ion 18650 Battery -
- B+ connected to Li-ion 18650 Battery +
BC547
- Collector connected to GND
- Base connected to Rocker Switch Output and Resistor (27kΩ) Pin1
- Emitter connected to VCC
Rocker Switch
- Input connected to TP4056 OUT+
- Output connected to BC547 Base and Resistor (27kΩ) Pin1
Adafruit BME280
- SCK/SCL connected to MPU-6050 SCL and ESP32 D22
- SDI/SDA connected to MPU-6050 SDA and ESP32 D21
- GND connected to GND
- 3.3V connected to VCC
Resistor (27kΩ)
- Pin1 connected to Rocker Switch Output and BC547 Base
- Pin2 connected to Resistor (100kΩ) Pin1 and ESP32 D33
Resistor (100kΩ)
- Pin1 connected to Resistor (27kΩ) Pin2 and ESP32 D33
- Pin2 connected to GND
MPU-6050
- SCL connected to Adafruit BME280 SCK/SCL and ESP32 D22
- SDA connected to Adafruit BME280 SDI/SDA and ESP32 D21
- GND connected to GND
- VCC connected to VCC
ESP32 (30 pin)
- TX0 connected to SparkFun OpenLog RXI
- RX0 connected to SparkFun OpenLog TXO
- D33 connected to Resistor (27kΩ) Pin2 and Resistor (100kΩ) Pin1
- D22 connected to Adafruit BME280 SCK/SCL and MPU-6050 SCL
- D21 connected to Adafruit BME280 SDI/SDA and MPU-6050 SDA
- D23 connected to Adafruit RFM9x LoRa Radio MOSI
- D19 connected to Adafruit RFM9x LoRa Radio MISO
- D18 connected to Adafruit RFM9x LoRa Radio SCK
- D5 connected to Adafruit RFM9x LoRa Radio CS
- D2 connected to Adafruit RFM9x LoRa Radio DIO0
- TX2 connected to GPS NEO 6M RX
- RX2 connected to GPS NEO 6M TX
- GND connected to GND
- 3V3 connected to VCC
Adafruit RFM9x LoRa Radio
- RST connected to ESP32 D14
- MOSI connected to ESP32 D23
- MISO connected to ESP32 D19
- SCK connected to ESP32 D18
- CS connected to ESP32 D5
- DIO0 connected to ESP32 D2
- GND connected to GND
- VIN connected to VCC
Li-ion 18650 Battery
- - connected to TP4056 B-
- + connected to TP4056 B+
GPS NEO 6M
- RX connected to ESP32 TX2
- TX connected to ESP32 RX2
- GND connected to GND
- VCC connected to VCC
Code Documentation
No code is provided for this circuit.
This document provides a comprehensive overview of the circuit, including a detailed component list and wiring details. The