Circuit Documentation
Summary
This circuit integrates various components to create a system capable of wireless communication and environmental sensing. The core of the circuit is an ESP32 microcontroller, which interfaces with a LoRa Ra-02 SX1278 module for long-range communication, a KY-015 DHT11 sensor for temperature and humidity measurement, and an HX711 Weighing Sensor Module connected to a Load Cell for weight measurement. The ESP32 facilitates data acquisition from the sensors and communicates the data wirelessly via the LoRa module.
Component List
ESP32 (30 pin)
- Description: A microcontroller with Wi-Fi and Bluetooth capabilities, featuring a wide range of GPIO pins for interfacing with various sensors and modules.
- 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
LoRa Ra-02 SX1278
- Description: A wireless communication module based on the SX1278 chip, capable of long-range communication using the LoRa protocol.
- Pins: GND, NSS, MOSI, MISO, SCK, D105, DI04, 3.3V, RST, DI00, DI01, D102, DI03
KY-015 DHT11
- Description: A basic, ultra-low-cost digital temperature and humidity sensor.
- Pins: 5V, S, GND
HX711 Weighing Sensor Module
- Description: A precision 24-bit analog-to-digital converter (ADC) designed for weigh scales and industrial control applications to interface directly with a bridge sensor.
- Pins: B-, B+, A-, A+, E-, E+, VCC, CK/TX, DO/RX, GND
Load Cell - Red/white/black/green
- Description: A transducer that is used to create an electrical signal whose magnitude is directly proportional to the force being measured.
- Pins: E+, A-, E-, A+
Wiring Details
ESP32 (30 pin)
- D33 connected to HX711 Weighing Sensor Module DO/RX
- D25 connected to HX711 Weighing Sensor Module CK/TX
- D26 connected to LoRa Ra-02 SX1278 DI00
- D14 connected to LoRa Ra-02 SX1278 RST
- GND connected to LoRa Ra-02 SX1278 GND, KY-015 DHT11 GND, and HX711 Weighing Sensor Module GND
- D23 connected to LoRa Ra-02 SX1278 MOSI
- D19 connected to LoRa Ra-02 SX1278 MISO
- D18 connected to LoRa Ra-02 SX1278 SCK
- D5 connected to LoRa Ra-02 SX1278 NSS
- D4 connected to KY-015 DHT11 S
- 3V3 connected to HX711 Weighing Sensor Module VCC, KY-015 DHT11 5V, and LoRa Ra-02 SX1278 3.3V
LoRa Ra-02 SX1278
- GND connected to ESP32 GND
- DI00 connected to ESP32 D26
- RST connected to ESP32 D14
- MOSI connected to ESP32 D23
- MISO connected to ESP32 D19
- SCK connected to ESP32 D18
- NSS connected to ESP32 D5
- 3.3V connected to ESP32 3V3
KY-015 DHT11
- 5V connected to ESP32 3V3
- S connected to ESP32 D4
- GND connected to ESP32 GND
HX711 Weighing Sensor Module
- DO/RX connected to ESP32 D33
- CK/TX connected to ESP32 D25
- GND connected to ESP32 GND
- VCC connected to ESP32 3V3
- A- connected to Load Cell A+
- A+ connected to Load Cell A-
- E- connected to Load Cell E-
- E+ connected to Load Cell E+
Load Cell - Red/white/black/green
- E+ connected to HX711 Weighing Sensor Module E+
- A- connected to HX711 Weighing Sensor Module A+
- E- connected to HX711 Weighing Sensor Module E-
- A+ connected to HX711 Weighing Sensor Module A-
Documented Code
No code has been provided for the microcontrollers in the circuit. The documentation of the code would typically include descriptions of the functions, initialization routines, main loop, and any interrupt service routines. It would also cover the setup of peripherals such as ADCs, communication interfaces (e.g., SPI for the LoRa module and the HX711), and any libraries used for sensor data acquisition (e.g., for the DHT11 sensor).