Do I need a buck converter for an STM32 self-balancing car? What voltage to what? Battery output is 7.4V; I can't solder—how do I handle the buck module? Thanks for the help, guys

It depends on your motor’s rated drive voltage. If it’s 5V, design a DCDC module that steps down the two-cell lithium battery to a 5V output before the motor driver input, and then feed that 5V to the motor driver module. As for the DCDC IC, beginners can try something like the TPS5430 or TPS5450, depending on your current requirements.

Don’t rush to buy modules—your hardware already solves most of the problem. I looked at your diagram: this driver board has an onboard 5V buck converter.

The board has a power inductor, U1, two 220µF/25V electrolytic capacitors, and the white connector’s silkscreen also shows 5V and GND. So your first step isn’t buying anything—it’s measuring with a multimeter:

  1. Connect the battery and turn the switch on;
  2. Set the multimeter to DC mode, black probe on GND, red probe on the 5V pin;
  3. Check whether it’s around 5.0V; if so, connect a 100Ω resistor or directly connect the STM32 board and see whether the voltage drops.

If it measures a stable 5V and can handle the load, you don’t need to buy a buck module. On this type of integrated board, the onboard 5V is usually designed for encoders; whether it can power an MCU+OLED depends on actual testing—if it can’t handle it, then consider an external supply.

If you do need an external supply, a 7.4V-to-5V, 1A module is enough. Calculate the load: STM32 board 50mA, MPU6050 4mA, OLED 30mA, two encoders 40mA, Bluetooth 40mA—under 200mA total, so a 1A module is using less than 20%.

Why 5V and not 3.3V? Because STM32 dev boards usually have an onboard AMS1117; give it 5V and it converts to 3.3V itself. If you feed it 3.3V directly, you’d have to bypass the onboard regulator, which is more of a hassle.

Not knowing how to solder doesn’t matter at all—these are all solderless:

  • Driver board: screw terminals + JST connectors, just plug in and tighten;
  • STM32-to-driver-board communication: jumper wires;
  • Power: RC UBEC 5V 3A, comes with wires and a connector, the easiest option; or an LM2596 with terminal blocks.

For the order, I suggest: first connect the battery, switch, driver board, and motor circuit, and turn the wheel by hand to check forward/reverse; then connect the encoder and use serial printing to check the counts; finally connect the MPU6050 and tune PID. Don’t connect everything at once—if something goes wrong, you won’t be able to isolate it.

One more question: what’s your motor’s rated voltage? If it’s a 6V N20, driving it directly at 7.4V is overvoltage—great torque but a lot of heat. If that concerns you, choose a 12V motor or limit the duty cycle in software.

Looking at your driver board, it seems there’s already a 5V step-down DCDC converter (U1 and that 6R8 inductor).
You can measure whether the 5V header pins have any voltage output.

Send over the board materials so we can take a look.