Development board pin assignment

1. Interface introduction:

The following is the interface diagram of the STM32 expansion board

The external interfaces on the expansion board are:

Power input interface, SWD interface, serial port interface, OLED, type-C communication interface, PWM servo interface, function buttons, electromagnetic tracking interface, four-way line patrol interface, CCD camera interface, PS2 handle interface, pin header interface, ultrasonic module

2. Physical picture

  1. Infrared obstacle avoidance module
  2. RGB searchlight
  3. Ultrasonic module interface: used to connect external ultrasonic module
  4. Electromagnetic tracking interface: used to connect external electromagnetic line tracking sensors
  5. X3 radar interface: used to connect external YDLIDAR X3 radar
  6. Serial port 2 interface: can be used to connect external k210 vision module
  7. Linear CCD camera interface: used for external linear CCD camera
  8. Pins derived from STM32f103ZET6.

  1. PS2 controller receiver interface: used to connect external PS2 controller receiver

  2. Fingerprint module interface: used for external fingerprint module

  3. Voice interaction module interface: used to connect external voice interaction module

  4. T-shaped DC 7.4V power input interface: used as the main power input of the expansion board, connected to the DC 7.4V power supply or 7.4V battery.

  5. MPU6050 interface: used to connect external MPU6050 module

  6. Serial port 1 interface: used to debug the serial port

  7. SWD interface: used for microcontroller debugging

  8. Bluetooth module interface: used for external Bluetooth module

  9. OLED screen interface: external 0.91-inch OLED LCD screen

  10. Buzzer: Onboard active buzzer.

  11. Buttons KEY1, KEY2, KEY3: user function buttons, which can be programmed to achieve customized functions. Button RESET: Onboard microcontroller reset button.

  12. STM32-USB device interface: can realize STM32 USB function

  13. Charging interface: can charge external batteries

  14. On/off button: The main on/off button of the expansion board

  15. PWM servo voltage switching: Change the position of the jumper cap to select 7.4V or 5V voltage to power the PWM servo.

  16. PWM servo interface: It can connect to 7.4V or 5V voltage PWM servo. You need to select the corresponding voltage in 23 according to the servo voltage.

  17. RGB light strip interface: connect RGB light strip

  18. Type-C data interface: Programming for microcontroller

  19. (3.3/5V) output interface: output 3.3V/5V voltage to the outside

    1. Four-way tracking module interface: used for external four-way tracking module
    2. Motor interface: for external 310 motor

3. Schematic diagram

There are corresponding pin silkscreens on the expansion board, and you can directly connect them according to the silkscreens.

4. Pin index

1. RGB light

Schematic identifierControl pinSpecific meaning
RRGB-RPE2Right RGB light, control red
RRGB-GPE3Right RGB light, control green
RRGB-BPE4Right RGB light, control blue
LRGB-RPG1Left RGB light, control red
LRGB-GPE7Left RGB light, control green
LRGB-BPG2Left RGB light, control blue

2. Buzzer

Schematic identifierControl pinSpecific meaning
BuzzerPG12Control active buzzer sound

3. Button

Schematic identifierControl pinSpecific meaning
KEY1PG3Key 1
KEY2PG4Key 2
KEY3PG5Button 3

4. CCD camera

Schematic identifierControl pinSpecific meaning
CCD-SIPF4CCD camera signal acquisition terminal
CCD-CLKPF5CCD camera control clock terminal
CCD-AOPF6CCD gray value output terminal

5. Motor

Schematic identifierControl pinSpecific meaning
M1APC6M1 motor phase A
M1BPC7M1 motor B phase
M2APC8M2 motor phase A
M2BPC9M2 motor B phase
M3APE9M3 motor phase A
M3BPE11M3 motor phase B
M4APE13M4 motor phase A
M4BPE14M4 motor phase B

6. Serial port

Schematic identifierControl pinSpecific meaning
USART1_TXPA9Serial port 1 output
USART1_RXPA10Serial port 1 receiving end
USART2_TXPD5Serial port 2 output
USART2_RXPD6Serial port 2 receiving end
USART3_TXPD8Serial port 3 output
USART3_RXPD9Serial port 3 receiving end
USART4_TXPC10Serial port 4 receiving end
USART1_RXPC11Serial port 4 output
USART5_TXPC12Serial port 5 receiving end
USART1_RXPD2Serial port 5 output

7. Ultrasonic module

Schematic identifierControl pinSpecific meaning
TRIGPF11Ultrasonic module control terminal
ECHOPF12Ultrasonic module receiving end

8. Electromagnetic tracking module

Schematic identifierControl pinSpecific meaning
ADC-L1PC0Electromagnetic tracking module output
ADC-L2PC1Electromagnetic tracking module output
ADC-L3PC2Electromagnetic tracking module output
ADC-L4PC3Electromagnetic tracking module output

9. Four-way tracking module

Schematic identifierControl pinSpecific meaning
X1PF13Four-channel tracking signal output terminal
X2PF14Four tracking 21 signal output terminals
X3PF15Four-channel tracking 3-channel signal output terminal
X4PG0Four-channel tracking 4-channel signal output terminal

10. PS2 controller

Schematic identifierControl pinSpecific meaning
PS2-CSPA4PS controller receiver
PS2-SCKPA5PS controller receiver
PS2-MISOPA6PS controller receiver
PS2-MOSIPA7PS controller receiver

11. OLED module

Schematic identifierControl pinSpecific meaning
I2C1_SCLPB6Clock line
I2C1_SDAPB7Data line

12. PWM steering gear

Schematic identifierControl pinSpecific meaning
S1PB0PWM servo interface
S2PB1PWM servo interface
S3PD14PWM servo interface
S4PD15PWM servo interface

13. Gyroscope

Schematic identifierControl pinSpecific meaning
ADOPE1Empty pin
INTPE0Empty pin
I2C1_SCLPB6Clock line
I2C1_SDAPB7Data line

14. Infrared remote control

Schematic identifierControl pinSpecific meaning
HS0038BPG11Signal output