ESP32-Based Temperature Monitoring System with OLED Display and LoRa Communication
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit integrates various components including an ESP32 microcontroller, a 0.96" OLED display, an Adafruit MAX31865 RTD Sensor Breakout, a LORA_RA02 module, multiple pushbuttons, and a PT100 RTD sensor. The ESP32 serves as the central processing unit, interfacing with the OLED display for visual output, the MAX31865 for temperature sensing, and the LORA module for wireless communication. Pushbuttons provide user input, and the PT100 sensor is used for precise temperature measurements.
Component List
ESP32 (30 pin)
- Description: A microcontroller with Wi-Fi and Bluetooth capabilities.
- 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
0.96" OLED
- Description: A small display for visual output.
- Pins: GND, VDD, SCK, SDA
Adafruit MAX31865 RTD Sensor Breakout
- Description: A breakout board for reading temperature from an RTD sensor.
- Pins: VIN, GND, 3.3V, SCLK, SDO, SDI, CS, DRDY, FORCE+, RTDIN+, RTDIN-, FORCE-
LORA_RA02
- Description: A LoRa module for long-range communication.
- Pins: A/G, GND, 3V3, RST, IO_0, IO_1, IO-2, IO_3, NSS, MOSI, MISO, SCK, IO_5, IO_4
Pushbutton
- Description: A simple pushbutton for user input.
- Pins: Pin 3 (out), Pin 4 (out), Pin 1 (in), Pin 2 (in)
PT100
- Description: A platinum resistance thermometer (RTD) for precise temperature measurement.
- Pins: -, +
Wiring Details
ESP32 (30 pin)
- D14 connected to Pushbutton (Pin 1 in)
- D12 connected to Pushbutton (Pin 1 in)
- D13 connected to Pushbutton (Pin 1 in)
- GND connected to Pushbutton (Pin 3 out), LORA_RA02 (GND), Adafruit MAX31865 RTD Sensor Breakout (GND), 0.96" OLED (GND)
- Vin connected to Adafruit MAX31865 RTD Sensor Breakout (VIN)
- D23 connected to LORA_RA02 (MOSI), Adafruit MAX31865 RTD Sensor Breakout (SDI)
- D22 connected to 0.96" OLED (SCK)
- D21 connected to 0.96" OLED (SDA)
- D19 connected to LORA_RA02 (MISO), Adafruit MAX31865 RTD Sensor Breakout (SDO)
- D18 connected to LORA_RA02 (SCK), Adafruit MAX31865 RTD Sensor Breakout (SCLK)
- D5 connected to Adafruit MAX31865 RTD Sensor Breakout (CS)
- TX2 connected to LORA_RA02 (IO_0)
- RX2 connected to LORA_RA02 (NSS)
- D4 connected to LORA_RA02 (RST)
- 3V3 connected to LORA_RA02 (3V3), 0.96" OLED (VDD), Adafruit MAX31865 RTD Sensor Breakout (3.3V)
0.96" OLED
- GND connected to ESP32 (GND)
- VDD connected to ESP32 (3V3)
- SCK connected to ESP32 (D22)
- SDA connected to ESP32 (D21)
Adafruit MAX31865 RTD Sensor Breakout
- VIN connected to ESP32 (Vin)
- GND connected to ESP32 (GND)
- 3.3V connected to ESP32 (3V3)
- SCLK connected to ESP32 (D18)
- SDO connected to ESP32 (D19)
- SDI connected to ESP32 (D23)
- CS connected to ESP32 (D5)
- FORCE+ connected to PT100 (-)
- RTDIN+ connected to PT100 (-)
- RTDIN- connected to PT100 (+)
LORA_RA02
- GND connected to ESP32 (GND)
- 3V3 connected to ESP32 (3V3)
- RST connected to ESP32 (D4)
- IO_0 connected to ESP32 (TX2)
- NSS connected to ESP32 (RX2)
- MOSI connected to ESP32 (D23)
- MISO connected to ESP32 (D19)
- SCK connected to ESP32 (D18)
Pushbutton
- Pin 1 (in) connected to ESP32 (D14, D12, D13)
- Pin 3 (out) connected to ESP32 (GND)
PT100
- (-) connected to Adafruit MAX31865 RTD Sensor Breakout (FORCE+, RTDIN+)
- (+) connected to Adafruit MAX31865 RTD Sensor Breakout (RTDIN-)
Documented Code
No code has been provided for the microcontrollers in the circuit. If code is available, it should be documented here with explanations for each function and routine, including setup and loop functions for microcontrollers like the ESP32.