Skip to content

EDC20: Code repository for the auto_navigation_car based on stm32. Contributed by the team A_star(champion team of the 20th Tsinghua University Electronic Design Competition)

License

Notifications You must be signed in to change notification settings

hukz18/stm32-auto_navigation_car

 
 

Repository files navigation

stm32-auto_navigation_car

Code repository for the auto_navigation_car based on stm32. Contributed by the team A_star(champion team of the 20th Tsinghua University Electronic Design Competition)

Basically our car can navigate itself arcoss a virtual city obeying some "traffic rules". Given multiple starting points and ending points(Passengers) and their corresponding awards(Prize money) at the same time, the car can calculate the 'best route' like a taxi. Our design can do this task with great effiency and speed, and has distinguished itself from other 95 teams from Tsinghua university by winning the championship.

Failed to load the image

map of the city is like: Failed to load the image

For the detailed rule of the EDC20 game, See :
Detailed Rules (Chinese)

For the chinese report of our team, see:
Report (Chinese)

EDC20_Team_A_star_controlling_part

This is the controlling board source code for the EDC20, THU championship team A_star, mainly implemented by ChenHuayu.For the Strategy part please see: Strategy Board

This part includes Sensor Data Acquiring, filtering and Fusion, a Four-stage PID controlling strategy, Usart commuciation with the Strategy borad, and bluetooth communication with smartphone and laptop, etc. The controlling board allows the car to be controlled by both computer, smartphone and the strategyboard, and has 3 different modes(hardware PID debug mode, strategy debug mode and competition mode). The state of the car can be monitered with a RGBled and your smartphone(based on APPs that can be commonly found on the internet, links provided later).

The hardware used is a stm32rct6 board(and another stm32rct6 board for strategy part).

Failed to load the image

Folder Details

The detailed contents about the files is as follows:

  • /BALANCE contains the impletation of filtering, debug, PID controlling, etc.
  • /HARDWARE contains hardware drivers and basic data processing implementation.
  • /OBJ conatins some Compiled files.
  • /STM32F10x_FWLib conatins the offical hardware library of stm32 board,which we use a lot in our project.
  • /SYSTEM contains some most basic functions,like delay function or usart communication implementation.
  • /USER contain the main logic function. (Note that because of some problems, the obj files in the OBJ folder are not complete. Feel free to empty the OBJ folder and compile the code yourself.)

Notice

The structure of the code is based on the miniBalance project with an open_source permission, and our Communication Coding makes it easy for the car to communicate with the APP 'MiniBalance', which can be downloaded here:
MiniBalance App

Author

Chen Huayu
chenhuay17@mails.tsinghua.edu.cn
18811397006

Team members

  • Chen Huayu (Captain)
  • Liang Wenhao
  • Urkax
  • Wu Ziyi

For brief introduction of the team, see:
Team Introduction (Chinese)

Failed to load the image Failed to load the image

About

EDC20: Code repository for the auto_navigation_car based on stm32. Contributed by the team A_star(champion team of the 20th Tsinghua University Electronic Design Competition)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 97.4%
  • Makefile 1.1%
  • Objective-C 0.6%
  • Assembly 0.5%
  • C++ 0.3%
  • HTML 0.1%