ESP32 and MPU-6050 Setup


Absolutely. Here’s a schematic connection plan for your MPU-6050 6 DOF Sensor Module and L298N around the existing ESP32-S3 terminal breakout in your project.
Schematic connection plan

Table


BlockFromToNotes
IMU powerMPU-6050 6 DOF Sensor Module VCC3V33.3 V supply
IMU groundMPU-6050 6 DOF Sensor Module GNDGNDCommon ground
I2C dataMPU-6050 6 DOF Sensor Module SDAGPIO8I2C SDA
I2C clockMPU-6050 6 DOF Sensor Module SCLGPIO9I2C SCL
Motor input A1L298N IN1GPIO4Direction control
Motor input A2L298N IN2GPIO5Direction control
Motor input B1L298N IN3GPIO6Direction control
Motor input B2L298N IN4GPIO7Direction control
Motor enable AL298N ENAGPIO10PWM speed control
Motor enable BL298N ENBGPIO11PWM speed control
Motor driver groundL298N GNDGNDMust share ground with ESP32
Recommended schematic grouping

Table


GroupContents
MCU interfaceGPIO4, GPIO5, GPIO6, GPIO7, GPIO8, GPIO9, GPIO10, GPIO11
Sensor blockMPU-6050 6 DOF Sensor Module, 3V3, GND
Motor driver blockL298N, GND
Net naming plan

Table


Net nameConnection
I2C_SDAGPIO8 to MPU-6050 6 DOF Sensor Module SDA
I2C_SCLGPIO9 to MPU-6050 6 DOF Sensor Module SCL
MOTOR_IN1GPIO4 to L298N IN1
MOTOR_IN2GPIO5 to L298N IN2
MOTOR_IN3GPIO6 to L298N IN3
MOTOR_IN4GPIO7 to L298N IN4
MOTOR_ENAGPIO10 to L298N ENA
MOTOR_ENBGPIO11 to L298N ENB
3V33V3 to MPU-6050 6 DOF Sensor Module VCC
GNDGND shared by ESP32, MPU-6050 6 DOF Sensor Module, and L298N
What to draw in the schematic
  • Put the MPU-6050 6 DOF Sensor Module on one side of the ESP32 terminal block.
  • Put the L298N on the other side.
  • Use labeled nets instead of long crossing wires for:
    • I2C_SDA
    • I2C_SCL
    • MOTOR_IN1
    • MOTOR_IN2
    • MOTOR_IN3
    • MOTOR_IN4
    • MOTOR_ENA
    • MOTOR_ENB
  • Tie all grounds to the same GND net.
  • Feed the sensor from 3V3.
Important missing items to include next
Your current plan covers only the logic/control wiring. A complete motor schematic will usually also need:
  • motor power input for the L298N
  • motor outputs from the L298N to the motors
  • confirmation of the logic voltage compatibility of the L298N
If you want, I can next turn this into a complete schematic block list with:
  1. sensor block
  2. motor driver block
  3. motor power block
  4. recommended net labels and signal directions
make it 21 pins both sides
I can help define that, but I can’t directly change this current published part from here because you don’t have edit access to it, and the right move is to work in your own copy instead. When a user doesn’t have edit access, the recommended flow is to use a new project or a fork/clone link with a pre-filled prompt
Also, one important constraint: for a part project, the terminal count must match the datasheet exactly, and for parts with more than 20 pins, the symbol should usually be split into sub-symbols rather than arbitrarily changing the count. The guidance explicitly says never guess pin numbers, match pin count exactly, and use sub-symbol grouping for complex parts
So if by “make it 21 pins both sides” you mean:
  • visual layout only: 21 terminals on the left and 21 on the right, for a 42-terminal symbol
  • actual part definition: change the part so it has 42 total terminals
those are very different.
For a complex IC-style part, the recommended grouping is:
  • exact datasheet pin count
  • dedicated power sub-symbol
  • other pins grouped by function
  • about 5–15 pins per sub-symbol for readability
If you want, use this fork link to make your own editable copy of the current part and continue there:
If you want, I can next help you with one of these:
  • define the exact 21-left / 21-right pin list
  • recommend a better sub-symbol split for this ESP32-S3-DEVKITC-1
  • help you build a clean terminal grouping plan before you fork
Assign 21 pins
Use 2x11 header
Put power on ends
Group UART and JTAG

U0RXD/GPIO44
MTDI/GPIO41
GPIO15
GPIO4
MTCK/GPIO39
GPIO10
5V0
GPIO14
GPIO48
GPIO38
USB_D-/GPIO19
U0TXD/GPIO43
GPIO46
RST
GPIO16
GPIO11
GPIO13
3V3
3V3
GPIO3
MTMS/GPIO42
GPIO7
GPIO12
GPIO36
GPIO47
GPIO6
GPIO2
GPIO5
GPIO1
GPIO35
GPIO21
GPIO37
GPIO45
GPIO18
GPIO0
GPIO17
GND
GPIO8
GND
GPIO9
USB_D+/GPIO20
MTDO/GPIO40
GND
GND
Name
Pin #
Type
Section
Pin Group
Orientation
Order
Sub-symbol
Terminal Type
3V3
J1_1
Unspecified
unspecified
3V3
J1_2
Unspecified
unspecified
RST
J1_3
Unspecified
unspecified
GPIO4
J1_4
Unspecified
unspecified
GPIO5
J1_5
Unspecified
unspecified
GPIO6
J1_6
Unspecified
unspecified
GPIO7
J1_7
Unspecified
unspecified
GPIO15
J1_8
Unspecified
unspecified
GPIO16
J1_9
Unspecified
unspecified
GPIO17
J1_10
Unspecified
unspecified
GPIO18
J1_11
Unspecified
unspecified
GPIO8
J1_12
Unspecified
unspecified
GPIO3
J1_13
Unspecified
unspecified
GPIO46
J1_14
Unspecified
unspecified
GPIO9
J1_15
Unspecified
unspecified
GPIO10
J1_16
Unspecified
unspecified
GPIO11
J1_17
Unspecified
unspecified
GPIO12
J1_18
Unspecified
unspecified
GPIO13
J1_19
Unspecified
unspecified
GPIO14
J1_20
Unspecified
unspecified
5V0
J1_21
Unspecified
unspecified
GND
J1_22
Unspecified
unspecified
GND
J3_1
Unspecified
unspecified

ESP32-S3 28mm