ESP32-Based Multi-Sensor Data Logger with MPU-6050 and I2C Multiplexing
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit integrates an ESP32 Devkit V1 microcontroller with multiple MPU-6050 sensors through an Adafruit TCA9548A I2C multiplexer. The ESP32 serves as the central processing unit, interfacing with the MPU-6050 sensors to collect motion data. The TCA9548A allows multiple MPU-6050 sensors to communicate with the ESP32 over the same I2C bus without address conflicts. Power is distributed to the components via a common Vcc net, and all components share a common ground.
Component List
ESP32 Devkit V1
- Description: A microcontroller development board based on the ESP32 chip, featuring Wi-Fi and Bluetooth connectivity.
- Pins: 3V3, GND, D15, D2, D4, RX2, TX2, D5, D18, D19, D21, RX0, TX0, D22, D23, EN, VP, VN, D34, D35, D32, D33, D25, D26, D27, D14, D12, D13, VIN
MPU-6050
- Description: A motion tracking device that combines a 3-axis gyroscope and a 3-axis accelerometer.
- Pins: VCC, GND, SCL, SDA, XDA, XCL, AD0, INT
Adafruit TCA9548A
- Description: An I2C multiplexer that allows multiple devices with the same address to be connected to a single microcontroller.
- 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
Vcc
- Description: A power supply net representing the positive voltage supply.
- Pins: Vcc
GND
- Description: A ground net representing the common ground connection.
- Pins: GND
Wiring Details
ESP32 Devkit V1
- 3V3 connected to Vcc net
- GND connected to GND net
- D21 (SDA) connected to Adafruit TCA9548A INPUTSDA
- D22 (SCL) connected to Adafruit TCA9548A INPUTSCL
MPU-6050 (Multiple Instances)
- VCC connected to Vcc net
- GND connected to GND net
- SCL connected to corresponding SCL channel on Adafruit TCA9548A
- SDA connected to corresponding SDA channel on Adafruit TCA9548A
Adafruit TCA9548A
- VCC connected to Vcc net
- GND connected to GND net
- INPUTSDA connected to ESP32 Devkit V1 D21 (SDA)
- INPUTSCL connected to ESP32 Devkit V1 D22 (SCL)
- 2SDA, 3SDA, 0SDA, 1SDA connected to corresponding SDA pins on MPU-6050 sensors
- 2SCL, 3SCL, 0SCL, 1SCL connected to corresponding SCL pins on MPU-6050 sensors
Documented Code
No code has been provided for the microcontrollers in the circuit. The documentation of the code would typically include details such as initialization of peripherals, configuration of I2C interfaces, data handling, and communication protocols. Since no code is available, this section cannot be completed.