Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Project Documentation

ESP32-Based Modular Environmental Sensing System with I2C Multiplexing

Image of ESP32-Based Modular Environmental Sensing System with I2C Multiplexing

Circuit Documentation

Summary

The circuit in question appears to be designed for sensor data acquisition and processing, utilizing an ESP32 microcontroller as the central processing unit. The ESP32 is interfaced with a variety of sensors and modules, including a gas sensor (MQ-5), a temperature and humidity sensor (DHT11), and an I2C multiplexer (Adafruit TCA9548A). The I2C multiplexer allows for multiple I2C devices to be connected to the ESP32, which only has one set of I2C pins. The circuit also includes multiple 5-pin relimate connectors, which are likely used for connecting the sensors and modules to the ESP32 through the I2C multiplexer.

Component List

ESP32 (30 pin)

  • Description: A microcontroller with Wi-Fi and Bluetooth capabilities, featuring a variety of GPIO pins for interfacing with sensors and peripherals.
  • 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 TCA9548A

  • Description: An I2C multiplexer that allows for multiple I2C devices to be connected to a single I2C bus.
  • Pins: 2SDA, 2SCL, 3SDA, 3SCL, 4SDA, 4SCL, 5SDA, 5SCL, 6SDA, 6SCL, 7SDA, 7SCL, VCC, GND, INPUTSDA, INPUTSCL, RESET, A0, A1, A2, 0SDA, 0SCL, 1SDA, 1SCL

5 pin relimate connector

  • Description: A connector used for making detachable connections between components in the circuit.
  • Pins: vcc, GND, SDA, SCL, ADDR

DHT11

  • Description: A basic, ultra low-cost digital temperature and humidity sensor.
  • Pins: 5V, S, GND

MQ-5

  • Description: A gas sensor used for detecting various gases including LPG, natural gas, and coal gas.
  • Pins: VCC, GND, Digi Out, Analog out

Wiring Details

ESP32 (30 pin)

  • D32 connected to MQ-5 Analog out
  • GND connected to GND of all components
  • D22 (I2C SCL) connected to Adafruit TCA9548A INPUTSCL
  • D21 (I2C SDA) connected to Adafruit TCA9548A INPUTSDA
  • D4 connected to DHT11 S
  • 3V3 connected to VCC of all components

Adafruit TCA9548A

  • INPUTSDA connected to ESP32 D21
  • INPUTSCL connected to ESP32 D22
  • GND connected to GND of all components
  • VCC connected to 3V3 of ESP32
  • A0, A1, A2 connected to GND (address pins for configuration)
  • 2SDA, 2SCL connected to corresponding SDA, SCL of a 5 pin relimate connector
  • 3SDA, 3SCL connected to corresponding SDA, SCL of a 5 pin relimate connector
  • 4SDA, 4SCL connected to corresponding SDA, SCL of a 5 pin relimate connector
  • 5SDA, 5SCL connected to corresponding SDA, SCL of a 5 pin relimate connector
  • 6SDA, 6SCL connected to corresponding SDA, SCL of a 5 pin relimate connector
  • 7SDA, 7SCL connected to corresponding SDA, SCL of a 5 pin relimate connector
  • 0SDA, 0SCL connected to corresponding SDA, SCL of a 5 pin relimate connector
  • 1SDA, 1SCL connected to corresponding SDA, SCL of a 5 pin relimate connector

5 pin relimate connector

  • Multiple instances, each connected to various I2C channels of the Adafruit TCA9548A
  • GND connected to GND of all components
  • VCC connected to 3V3 of ESP32

DHT11

  • 5V connected to 3V3 of ESP32
  • S connected to ESP32 D4
  • GND connected to GND of all components

MQ-5

  • VCC connected to 3V3 of ESP32
  • GND connected to GND of all components
  • Analog out connected to ESP32 D32

Documented Code

No code was provided for the microcontrollers in the circuit. Therefore, this section is left blank until the relevant code is made available.