Skip to content

use openpose for checking whether person is doing several step-excercises, use loadcell for checking total count a person stepped up and down the step-box

License

Notifications You must be signed in to change notification settings

taening/21Y6M-1Stairfor1Person

Repository files navigation

1Stairfor1Person

The purpose of this project is

1. Requirments

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

2. Installation

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

Please check follow. LINK1 LINK2

pip install mediapipe

3. HardWare

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


4. SoftWare

Concept Diagram


5. Demonstration

Procedure

1. Use openpose for checking whether person is doing several step-excercises:

* 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

About

use openpose for checking whether person is doing several step-excercises, use loadcell for checking total count a person stepped up and down the step-box

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published