Raspberry Pi and ESP32 CAM-Based Weather Station with I2C Display and Sensor Integration
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit integrates a Raspberry Pi 2B, an ESP32 CAM, an FTDI Programmer, various sensors (DHT11, Rain Sensor, LDR), an ADS1115 ADC, and an OLED display. The Raspberry Pi serves as the central controller, interfacing with the sensors and display. The ESP32 CAM is used for additional processing and communication tasks. The FTDI Programmer is used for programming the ESP32 CAM.
Component List
Raspberry Pi 2B
- Description: A versatile single-board computer.
- Pins: 3v3, GPIO2, GPIO3, GPIO4, GND, GPIO17, GPIO27, GPIO22, 3V3, GPIO10, GPIO9, GPIO11, ID_SD, GPIO5, GPIO6, GPIO13, GPIO19, GPIO26, GPIO21, GPIO20, GPIO16, GPIO12, ID_SC, GPIO7, GPIO8, GPIO25, GPIO24, GPIO23, GPIO18, GPIO15, GPIO14, 5V
Connector 5V
- Description: A connector providing 5V power.
- Pins: GND, VCC
ESP32 CAM
- Description: A microcontroller with camera capabilities.
- Pins: 5V, GND, GPIO12, GPIO13, GPIO15, GPIO14, GPIO2, GPIO4, 3.3V, GPIO16, GPIO0, 3.3V / 5V / P_OUT, GPIO3 / RX, GPIO1 / TX
FTDI Programmer
- Description: A USB-to-serial adapter for programming microcontrollers.
- Pins: DTR, RX, TX, VCC, CTS, GND
Rain Sensor
- Description: A sensor to detect rain.
- Pins: AO, DO, GRD, VCC
LDR
- Description: A light-dependent resistor for measuring light intensity.
- Pins: A0, D0, GND, VCC
ADS1115
- Description: A 16-bit ADC for analog-to-digital conversion.
- Pins: VDD, GND, SCL, SDA, ADDR, ALRT, A0, A1, A2, A3
DHT11
- Description: A temperature and humidity sensor.
- Pins: DATA, GND, VCC
OLED 128x64 I2C Monochrome Display VDD-GND
- Description: A monochrome display with I2C interface.
- Pins: VDD, GND, SCK, SDA
Wiring Details
Raspberry Pi 2B
- 3v3: Connected to VCC of DHT11, OLED Display, ADS1115, and LDR.
- GPIO2: Connected to SDA of OLED Display and ADS1115.
- GPIO3: Connected to SCK of OLED Display and SCL of ADS1115.
- GPIO4: Connected to DATA of DHT11.
- GND: Connected to GND of ADS1115, ESP32 CAM, DHT11, OLED Display, LDR, and Rain Sensor.
- GPIO15: Connected to RX of FTDI Programmer and GPIO1 / TX of ESP32 CAM.
- GPIO14: Connected to TX of FTDI Programmer and GPIO3 / RX of ESP32 CAM.
- 5V: Connected to VCC of Rain Sensor.
Connector 5V
- GND: Connected to GND of ESP32 CAM.
- VCC: Connected to VCC of FTDI Programmer and 5V of ESP32 CAM.
ESP32 CAM
- 5V: Connected to VCC of FTDI Programmer and VCC of Connector 5V.
- GND: Connected to GND of Raspberry Pi, FTDI Programmer, and Connector 5V.
- GPIO1 / TX: Connected to RX of FTDI Programmer and GPIO15 of Raspberry Pi.
- GPIO3 / RX: Connected to TX of FTDI Programmer and GPIO14 of Raspberry Pi.
- GPIO0: Connected to GND of ESP32 CAM.
FTDI Programmer
- RX: Connected to GPIO1 / TX of ESP32 CAM and GPIO15 of Raspberry Pi.
- TX: Connected to GPIO3 / RX of ESP32 CAM and GPIO14 of Raspberry Pi.
- VCC: Connected to 5V of ESP32 CAM and VCC of Connector 5V.
- GND: Connected to GND of ESP32 CAM.
Rain Sensor
- AO: Connected to A1 of ADS1115.
- GRD: Connected to GND of Raspberry Pi.
- VCC: Connected to 5V of Raspberry Pi.
LDR
- A0: Connected to A0 of ADS1115.
- GND: Connected to GND of Raspberry Pi.
- VCC: Connected to 3v3 of Raspberry Pi.
ADS1115
- VDD: Connected to 3v3 of Raspberry Pi.
- GND: Connected to GND of Raspberry Pi.
- SCL: Connected to GPIO3 of Raspberry Pi.
- SDA: Connected to GPIO2 of Raspberry Pi.
- A0: Connected to A0 of LDR.
- A1: Connected to AO of Rain Sensor.
DHT11
- DATA: Connected to GPIO4 of Raspberry Pi.
- GND: Connected to GND of Raspberry Pi.
- VCC: Connected to 3v3 of Raspberry Pi.
OLED 128x64 I2C Monochrome Display VDD-GND
- VDD: Connected to 3v3 of Raspberry Pi.
- GND: Connected to GND of Raspberry Pi.
- SCK: Connected to GPIO3 of Raspberry Pi.
- SDA: Connected to GPIO2 of Raspberry Pi.
Documented Code
ESP32 CAM Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Additional Documentation
// No additional documentation provided.