Squats Counter Using TensorFlow Lite and Tiny Motion Trainer

by manasmw333 in Circuits > Arduino

1335 Views, 9 Favorites, 0 Comments

Squats Counter Using TensorFlow Lite and Tiny Motion Trainer

Squats.gif

This 'Arduino Nano 33 BLE Sense' based Squats counter can count the number of Squats performed by an individual using the Accelerometer readings and TinyML based Machine learning model.

Supplies

Hardware:

  1. Arduino Nano 33 BLE Sense
  2. USB to Micro USB Type B Cable

Software:

  1. Arduino IDE
  2. Tensorflow Lite

Demonstration

Look.gif

The Squats counter can detect squats by measuring the accelerometer readings and prints them on the Serial monitor.

The device is to be attached to the individual's thigh and can be powered using a power bank or a battery.

Things Used in This Project:

kit.jpg

I am using this complementary Google IO kit from Sparkfun which includes the Arduino Nano 33 BLE Sense which is capable of running TinyML projects with ease.

Getting Things Ready

pair.png

1. Upload the tf4micro-motion-kit code to the Arduino Nano 33 BLE Sense

2. After uploading the code, open the (Tiny Motion Trainer Experiment) by Google and pair the Bluetooth device with the laptop.

Select the Appropriate Settings for Training the Model

settings.png

Capture the Data Required to Train Your Model

capture data.png

Train Your Model

Training model.gif

Test Your Model

Tinyml test.gif

Download the Arduino Code and Upload It to the Arduino BLE Sense Board

download.png

Test the Model by Using the Serial Monitor

Test serial.gif

Final Touch

Look.gif

Update the code as per your requirements or use mine: BLE_Sense_Arduino_Code

Place the device on your thigh using a Hook and Loop fastener (Velcro tape)

Done!

serial.gif
Squats.gif