This project is used to test function on evaluation board. All the code will be migrated to new hardware in my SmartCar.
HW: STM32F103ZET6
IDE: STM32CubeIDE
LIB: HAL
+LL
Pin name | Pin Function | Used to | Used to |
---|---|---|---|
PB0 | TIM3_CH3 | PWM output | contorl motor |
PB1 | TIM3_CH4 | PWM output | control servo |
PA2 | TIM2_CH3 | PWM Input Capture | measure motor rotation speed (not recommond) |
PE9 PE11 |
TIM1_CH1 TIM1_CH2 |
Encoder | measure motor rotation speed(recommond) direction acceleration |
PB6 PB7 |
I2C1_SCL I2C1_SDA |
IIC Communicate | IMU data |