【Badminton Training Monitor Project】-- Additional function test of badminton training monitoring module
[Copy link]
In the [Badminton Training Monitor Project] - Main Function Implementation , I have completed the data collection, training, implementation and testing of the LSM6DSOX application in badminton racket swing recognition using the development board.
Then I spent a few days designing an independent small module equipped with LSM6DSOX . This module is mainly equipped with STM32F103 main control ( I used the chip I had on hand ) , LSM6DSOX , seven RGB LED lights, TF card, TEA6002 lithium battery charging and discharging IC and the indispensable TYPE -C interface. I made a short article about the specific design process, which can be learned in [Badminton Training Monitor Project] - Hardware Part of Badminton Training Monitor .
After that, I began to conceive the code structure and functions of the entire module. Suddenly, I felt that limiting it to a badminton racket training recorder was a bit limiting. After a few days of writing bugs and playing with it, this was proven to be the case.
The functions that the module can currently implement are:
- All functions of LSM6DSOX can work
- RGB can display different effects according to the different states of LSM6DSOX
- The switch can be set to mode function by single click, double click, long press, etc.
- The F atfs file system has been transplanted , and the TF card can perform basic operations on various files
- Type -C can charge the battery and also perform USB communication
- USB communication currently uses vcp , the virtual serial port communicates with the computer
The above functions can be combined arbitrarily to complete many LSM6DSOX related applications.
For example, you can load the configured register setting information from the TF card, use the LED light to display the various states of the module, or directly use the USB to output the module status. You can also save the data directly in the TF card. The video below is the deployment test of fall detection ( FSM lsm6dsox_freefall_detection ) and direction recognition ( MLC lsm6dsox_six_d_position ):
The above functions can be combined into many applications. Here we can see the power of LSM6DSOX ~~~
Then, in order to install and protect the PCB, a mini shell was designed, through which the light can pass using SLA .
The actual picture looks like this
The next thing is to import the badminton swing motion recognition parameters that have been tested with the development board into the module, install them on the badminton racket, and submit my competition results after comprehensive testing.
|