Software apps and online services
SmartCoach project it is idea for the intelligent training system based on NFC sensors mounted on T-Shirt and many kinds of smart training tools. Training statistics are send into web services where are displayed. Analyzing statistics user can create better personal training plan. SmartCoach can give for user many usable training statistics. Additionally user can share training statistics and equal results and training plan with friends.
The NFC reader and iot-gate could be mounted in many types of training tools. In presented projects "only" three types of devices was implemented:
1. rod - measurements during pull ups
2. exercise mat - measurements during push ups
3. barbell - measurements during squez
In SmartCoach project was used:
TRF7970A EVM ( like NFC reader ), CC3200 LaunchPad ( like iot-gate ) and monounted on T-Shirt RF430FRL152H ( like NFC sensor ). The NRC reader and iot-gate are connected together. Boards are supply form battery ( 3.6 Volt ). Communication between boards are realized via UART.
During exercises NFC reader counting NFC sensor usage ( every contact between NFC reader and NFC sensor is counted ).
When series of exercises is finished NFC reader waking up iot-gate and sending NFC chip ID and measurement. After recieving data iot-gate connecting into Access Point. Next iot-gate reading time from NTP server and sending data into Plot.ly server. Data are presended on bar plot and are available here: https://plot.ly/101/~nfc-SmartCoach/
The SmartCoach system is building from three components: TRF7970A EVM ( NFC reader – rod/mat/barbell ), CC3200 LaunchPad ( iot-gate - rod/mat/barbell ) and monounted on T-Shirt RF430FRL152H ( NFC sensors ).
The NFC reader and iot-gate must be connected together. Connections are described in hardware section. Both boards are supply from battery ( 3.6 Volt ).
Both projects ( NFC reader and iot-gate) was made in Texas Instruments IDE: Code Composer Studio verion 6.1. 1. Software was written in C language. Both projects are available in software section.
Project NFC reader based on Texas Instruments TRF7970A EVM start project example ( sloc300a ). Conception of project was shown on figure below.
In iot-gate project freeRTOS, framework SimpleLink and drivers for cc3200 are used. In thread system (file system.c ) the most important are two procedures DataUpdateTask and HibernateEnter. In procedure HibernateEnter hibernate mode is activated. In procedure DataUpdateTask : cc3200 microcontroler creating connection with Access Point ( function Connect2AccessPoint ), reading time from NTP server ( function GetSNTPTime ), reading statistic data from NFC reader ( function UartA1Read ) and sending data to PLOT.LY server ( function SetPlotLyData ). Conception of project was shown on figure below.
The smartCoach projects ( NFC reader and iot-gate) are availble in software section. User should download code and configure iot-gate parameters. In configure.h file user should set Access Point SSID name, password and should define transmission coding algorithm. Additionally in the same file user should set PLOT.LY account name and API key. ( parameter is available on plotly account in Settings tab.)
After all changes you should rebuild project (Project -> Build All). Binary file cc3200-wlan-station.bin will be created. Using CCS UniFlash application user should program CC3200 LaunchPad S-FLASH memory.
In default configuration iot-gate working in “rod mode”. If user want change smartCoach tool definition then should configure cc3200 LaunchPad inputs ( high state on P03 – rod, high state on P04 – mat, high state on P05 barbell ).
Described project is showing conception of bigger more advanced system.
In final version of SmartCoach system new hardware for NFC reader and iot-gate should be design ( RF7970A EVM NFC reader and CC3200 LaunchPad iot-gate connected in one small and useful device, smaller mounted on or in t-shirt NFC sensor ). Additionally more options in statistics presentation and analysis should be add. For example dedicated server application for SmartCoach users. Used in project NFC sensor ( mounted on t-shirt ) based on RF430FRL152H microcontroller. It is very interesting NFC/RFID FRAM battery-less transponder chip. Capabilities of project could be extended by implementing more advanced RF430FRL152H functions ( for example: measurements, data logging ).
Lukasz Krysiewicz, Poland