SmartStrike System

by MaciejMitura in Circuits > Raspberry Pi

46 Views, 0 Favorites, 0 Comments

SmartStrike System

448120452_374922865177795_6467392392640360872_n.jpg

Smart System that will help you progress in martial arts

Supplies

ProjectOne schema_schem.png
Reverse Engineer Final Database.png
  • Raspberry Pi 4
  • Breadboard
  • Extra power supply (3.3V & 5.1V)
  • 3x RP-S40-ST
  • 1x Ultrasonic sensor
  • 1x RFID sensor
  • 1x Bluetooth audio amplifier & old audio speaker
  • 1x MPU 6050 sensor
  • 2x buttons
  • 1x OLED 128x64 display
  • tons of cables (male-male, male-female, short, long, ....)
  • Boxing gloves (for this project, 1 is enough but feel free to make more of those if you want a better experience)
  • Boxing pad(s) -> again, 1 is enough but feel free to expand as you want

  • -------------- -------------- --------------
  • write your code -> For components you can use a lot of libraries. Frontend you design as desired. Use socketio for realtime communication between your device and the website. Make sure you have a functioning Database where your data can be inserted into.
  • You can find my testfile for running all the components here aswell as the fritzing scheme to see how i've connected everything.

Test Your Components

448166335_318840204613769_4095663227010325657_n.jpg
441458816_1686247325451484_8350818175318542459_n.jpg
448268450_869290288573346_8216482921377270609_n.jpg
438171566_383072360789018_293529384735738219_n.jpg

Connect all sensors & actuators to your Pi. Make sure they're working correctly. Make them class objects and define some basic functions. What I've done was first, was connecting them all separately and test them with their corresponding code to make sure that each individual component is working as it should.

Connect Everything Together

448162982_829644809072118_3556044004208144711_n.jpg
448140605_1365683904103135_7856221356568524074_n.jpg

Once everything works fine on it's own, connect everything into 1 big device. In this step I also added the easier parts such as the joystick that reads the joystick position.

Expand As Needed

447883508_427103170194806_7174950852731544790_n.jpg
441923988_1206898533629249_2229549464546244319_n.jpg

Since I'm working with a boxing glove and boxing pads, I needed extra long cables to connect everything and be able to move freely. If you want to make a small, portable device then you probably could skill this step.


*I've used some ethernet cables to have the individual cables organized - it cost me some sweat, tears and... even blood. So watch out what you're doing - make sure you work safely*

Insert the Sensors in the Gloves/pads

448176497_2244361459237064_199335753160999042_n.jpg
447846224_1224259491894164_438260883900665779_n.jpg
448618635_1493172807966498_174822845192718269_n.jpg

Once everything works fine, insert your sensors that will measure your data inside the gloves/pads. Make sure they are inserted really good and won't fallout when using the gloves.

Put Everything in a Case Where It's Safe

448151291_1698576827579297_7185462208882677174_n.jpg

As a last step, put your raspberry pi with all the unneeded cables and components inside a case so they don't get damaged and are somehow organized.

To Make Your Device Fully Standalone:

To make your device fully standalone, make sure of the following:

  • You have apache2 installed and configured correctly, so that it starts a server on your index.html file
  • Work in a venv for your backend
  • Make 2 buttons on your Pi that will power it on and shut it down when needed
  • Foresee some music and images (if you want o use these) on your raspberry pi
  • Put an extender in your case so that all your devices are connected to it


You're Finished. Now You Have a Training Device

448120452_374922865177795_6467392392640360872_n.jpg