The purpose of this project is
Code is written in JavaScript and Python3.6 requires:
- Library
- Flask 1.1.1+
- pyOpenSSL 1.1.1a+
- HX711 1.1.2.3+
- RPI.GPIO 0.7.0+
- mediapipe 0.8.5+
- HardWare
- Raspbarry PI 3+
- LoadCell
- HX711
- WebCam
Flask
pip install flask
pyOpenSSL
pip install pyOpenSSL
HX711
pip install HX711
RPI.GPIO
It can be installed on Raspberry PI only!
pip install RPI.GPIO
OpenPose
pip install mediapipe
Control Part
- Two HX711 are used using parallel connection
* HX711 for left side:
GPIO.setmode(GPIO.BCM)
uses (dout_pin = 5, pd_sck_pin = 6, gain_channel_A = 64, select_channel = 'A')
* HX711 for right side:
GPIO.setmode(GPIO.BCM)
uses (dout_pin = 23, pd_sck_pin = 24, gain_channel_A = 64, select_channel = 'A')
Sensing Part
- Each loadcell can measure up to 50kg
- Circuit: Full bridge circuit of loadcell
Whole Part
Concept Diagram
Procedure
* Openpose code runs in javascript * OpenPose source code is from https://google.github.io/mediapipe/solutions/pose.html
2. Use loadcells for checking total count a person stepped up and down the step-box checking difference of weights measured
* source code of running load cells runs in raspberry using flask server * when a user clicks stop button in webpage, ajax sends request using POST method to flask server and flask server stops counting and response with total count of how many times user stepped up and down (one step up-down counted as one)
WebPage Configuration