STM32 wildfire open source balance car (four) external equipment build_MPU6050 interrupt configuration and motor configuration

Wildfire open source balance bike official website section

https://www.firebbs.cn/forum.php?mod=forumdisplay&fid=129&page=1

Reference

No

Reference video (this group leader is good)

https://www.bilibili.com/video/BV1j7411z7uX

Hardware platform

Development Platform

KEIL5, STM32F103X main control, SWD download for the program (any downloader will do, you can download it, and you can download it with a serial port)

Development (1) 

The main pin of the video UP is different from ours, so we need to modify it. We use PD2

Let's do the motor again

Placement IO

Configure lower motor limiting function 7200 full speed, -7200 reverse full speed

Control the motor forward and reverse (note the two motors, because -7200 (motor reverse rotation) appears, you need to make another ABS absolute value function)

Directly use UP main 

Motor configuration is complete

Guess you like

Origin blog.csdn.net/jwdeng1995/article/details/108176813