Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

ESP32-Based Weather Station with SD Card Logging and I2C Display

View and Edit Project In Cirkit DesignerImage of ESP32-Based Weather Station with SD Card Logging and I2C Display

Circuit Documentation

Summary

This circuit is designed to interface an ESP32 microcontroller with various sensors and modules, including a Micro SD Card Module, Wind Direction Sensor, RTC DS3231, Wind Vane, 16x2 I2C LCD, and a UART TTL to RS485 Two-way Converter. The circuit also includes a 12V power supply and connectors for power distribution. The ESP32 handles data acquisition, storage, and communication with the connected peripherals.

Component List

Micro SD Card Module

Wind Direction Sensor

Esp32 on Baseboard

UART TTL to RS485 Two-way Converter

RTC DS3231

Wind Vane

16x2 I2C LCD

12V Power Supply

2.1mm Male Connector

2.1mm Barrel Jack with Terminal Block

Wiring Details

Micro SD Card Module

Wind Direction Sensor

Esp32 on Baseboard

UART TTL to RS485 Two-way Converter

RTC DS3231

Wind Vane

16x2 I2C LCD

12V Power Supply

2.1mm Male Connector

2.1mm Barrel Jack with Terminal Block

Documented Code

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}
/*
Note:
GPIO Pin Assignments:
- 21 and 22: I2C bus for RTC module (0x68) and 16x2 LCD (0x27)
- 16 and 17: UART to RS485 module (RX, TX respectively)
- 4: NPNR output windspeed
- 19, 23, 18, 5: SD card module (MISO, MOSI, SCK, CS respectively)
- 21 and 22: EEPROM (0x57)
*/

This documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and documented code.