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

Self-Balancing Scooter with MPU-6050 and STM32 Nucleo

View and Edit Project In Cirkit DesignerImage of Self-Balancing Scooter with MPU-6050 and STM32 Nucleo

Self-Balancing Scooter Circuit Documentation

Summary

This document provides a detailed overview of the self-balancing scooter circuit. The circuit uses an MPU-6050 sensor to control two DC motors via a STM32 Nucleo F303RE microcontroller. The motors are driven by BDC PWM DC motor controllers. The circuit also includes various LEDs, a potentiometer, a load cell, and a HX711 bridge sensor interface for additional functionalities.

Component List

  1. MPU-6050

    • Description: 6-axis motion tracking device
    • Pins: VCC, GND, SCL, SDA, XDA, XCL, AD0, INT
  2. Step down Module

    • Description: Converts higher voltage to 5V output
    • Pins: 24v IN+, GND, 12v IN+, 5v OUT+, 5v OUT-
  3. Potentiometer

    • Description: Variable resistor
    • Pins: GND, Output, VCC
  4. HX711 - Bridge Sensor Interface

    • Description: Load cell amplifier
    • Pins: E+, E-, A-, A+, B-, B+, GND - GROUND, DATA (OUT), SCK - CLOCK (IN), 3.3/3.5V Supply
  5. LED: Two Pin (red)

    • Description: Red LED
    • Pins: cathode, anode
  6. LED: Two Pin (green)

    • Description: Green LED
    • Pins: cathode, anode
  7. LED: Two Pin (yellow)

    • Description: Yellow LED
    • Pins: cathode, anode
  8. LED: Two Pin (blue)

    • Description: Blue LED
    • Pins: cathode, anode
  9. BDC PWM DC MOTOR CONTROLLER 10A 6-90V

    • Description: Motor controller
    • Pins: + power, - power, + motor, - motor, GND, 0-5V, 5V
  10. Resistor

    • Description: 200 Ohms resistor
    • Pins: pin1, pin2
  11. Load Cell - Red/white/black/green

    • Description: Load cell sensor
    • Pins: E+, A-, E-, A+
  12. STM32 Nucleo F303RE

    • Description: Microcontroller board
    • Pins: PC8, PC9, PC6, PB8, PC5, U5V, NC, PA12, PA11, PB12, PB11, GND, PB2, PB1, PB15, PB14, PB13, AGND, PC4, PB9, AVDD, PA5, PA6, PA7, PB6, PC7, PA9, PA8, PB10, PB4, PB5, PB3, PA10, PA2, PA3, D15, D14, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0, IOREF, RESET, +3V3, +5V, VIN, A0, A1, A2, A3, A4, A5, PC11, PD2, E5V, PA0, PA1, PA4, PB0, PC1, PC0, PC3, PC2, VBAT, PF1, PF0, PC15, PC14, PC13, PB7, PA15, PA14, PA13, nC, BOOT0, VDD, PC12, PC19
  13. 3 Position Switch

    • Description: Switch with three positions
    • Pins: 23, 11, 24, 12
  14. Rocker Switch

    • Description: On/Off switch
    • Pins: 1, 2
  15. Pushbutton

    • Description: Momentary pushbutton
    • Pins: Pin 2, Pin 1, Pin 3, Pin 4
  16. 250W 12V ELECTRIC MOTOR BRUSH MOTOR DC

    • Description: DC motor
    • Pins: POSITIF, NEGATIF
  17. 12v5ah Battery

    • Description: 12V battery
    • Pins: 12v +, 12v -

Wiring Details

MPU-6050

Step down Module

Potentiometer

HX711 - Bridge Sensor Interface

LED: Two Pin (red)

LED: Two Pin (green)

LED: Two Pin (yellow)

LED: Two Pin (blue)

BDC PWM DC MOTOR CONTROLLER 10A 6-90V (Instance 1)

BDC PWM DC MOTOR CONTROLLER 10A 6-90V (Instance 2)

3 Position Switch

Rocker Switch

Pushbutton