diff --git a/docs/blog/2024-08-MePosture/index.rst b/docs/blog/2024-08-MePosture/index.rst deleted file mode 100644 index f559ee4..0000000 --- a/docs/blog/2024-08-MePosture/index.rst +++ /dev/null @@ -1,71 +0,0 @@ -.. post:: 2024-08-19 - :tags: Wii, Balance Board, HX711, Load Cell, Raspberry Pi, ESP32, FARM-Stack, React, Redux, MongoDB, FastAPI, MongoDB, OpenAPI, Kiota - :language: English - -Mini-Project: MePosture -####################### - -**Let's tinker a gadget!** - -- Time estimate: One afternoon -- Cost estimate: Far below 50 Euro (Raspberry Pi and Monitor not included) -- Skill level: Intermediate hobby tinkerer - -WIP - Work-In-Progress! - - -Background -********** - -Recently I met a physician in the field of orthopaedics, sports medicine and performance diagnostics. I learned from him that a good posture is important for our health and well-being. - - -The Gadget -********** - -With a ... - -- **home-made Balance Board** (like a Wii Balance Board) with hardware used in digital scales, voltage amplifiers (HX711) and a microcontroller with built-in Bluetooth (ESP32-WROOM) -- **WebApp** (Full-Stack with FARM-Stack: FastAPI, React, MongoDB) to visualize the data and to provide a user interface for the user to interact with the gadget. In the DataBase historical health data can be stored and analyzed. - - -Resources -********* - -Just the links to the resources and some notes here. - -- `HX711 with a Four Wire Load Cell and Arduino | Step by Step Guide. `__ -- `HX711 library on GitHub `__ -- `Load Cell Mounts on Thingiverse `__ -- `Arduino Scale with HX711 and 50kg Bathroom Scale Load Cells | Step by Step Guide. `__ -- `Raspberry Pi Smart Scale | GIT TECH'D `__ -- `Mounting the 50kg Bathroom Scale Load Cells to a Board `__ -- `how to connect Wii Balance Board to Windows in 2024 `__ -- `Ebay: Digital Scale Set (4x Load Cell, 1x Amplifier) `__ -- `Ebay: Amplifier `__ - - -Sketches -******** - -Here some sketches: - -.. figure:: _figures/sketch_1.png - -.. figure:: _figures/sketch_2.png - - -Expert Dialogs -************** - -Here some GPT-4o chats: - -.. toctree:: - :maxdepth: 1 - :caption: Related GPT-4o chats - - _attachments/ChatGPT-ESP32_HX711_Bluetooth_Project.rst - _attachments/ChatGPT-ESP32_Load_Cell_Integration.rst - _attachments/ChatGPT-HX711_Circuit_Function.rst - _attachments/ChatGPT-Using_Wii_BalanceBoard_Raspberry_Pi.rst - diff --git a/docs/blog/2024-08-MePosture/_attachments/ChatGPT-ESP32_HX711_Bluetooth_Project.rst b/docs/blog/2024-08-WeBalance/_attachments/ChatGPT-ESP32_HX711_Bluetooth_Project.rst similarity index 100% rename from docs/blog/2024-08-MePosture/_attachments/ChatGPT-ESP32_HX711_Bluetooth_Project.rst rename to docs/blog/2024-08-WeBalance/_attachments/ChatGPT-ESP32_HX711_Bluetooth_Project.rst diff --git a/docs/blog/2024-08-MePosture/_attachments/ChatGPT-ESP32_Load_Cell_Integration.rst b/docs/blog/2024-08-WeBalance/_attachments/ChatGPT-ESP32_Load_Cell_Integration.rst similarity index 100% rename from docs/blog/2024-08-MePosture/_attachments/ChatGPT-ESP32_Load_Cell_Integration.rst rename to docs/blog/2024-08-WeBalance/_attachments/ChatGPT-ESP32_Load_Cell_Integration.rst diff --git a/docs/blog/2024-08-MePosture/_attachments/ChatGPT-HX711_Circuit_Function.rst b/docs/blog/2024-08-WeBalance/_attachments/ChatGPT-HX711_Circuit_Function.rst similarity index 100% rename from docs/blog/2024-08-MePosture/_attachments/ChatGPT-HX711_Circuit_Function.rst rename to docs/blog/2024-08-WeBalance/_attachments/ChatGPT-HX711_Circuit_Function.rst diff --git a/docs/blog/2024-08-MePosture/_attachments/ChatGPT-Using_Wii_BalanceBoard_Raspberry_Pi.rst b/docs/blog/2024-08-WeBalance/_attachments/ChatGPT-Using_Wii_BalanceBoard_Raspberry_Pi.rst similarity index 100% rename from docs/blog/2024-08-MePosture/_attachments/ChatGPT-Using_Wii_BalanceBoard_Raspberry_Pi.rst rename to docs/blog/2024-08-WeBalance/_attachments/ChatGPT-Using_Wii_BalanceBoard_Raspberry_Pi.rst diff --git a/docs/blog/2024-08-WeBalance/_figures/balance_board.jpg b/docs/blog/2024-08-WeBalance/_figures/balance_board.jpg new file mode 100644 index 0000000..506b8fc Binary files /dev/null and b/docs/blog/2024-08-WeBalance/_figures/balance_board.jpg differ diff --git a/docs/blog/2024-08-WeBalance/_figures/circuit_hx711_one_load_cell.jpg b/docs/blog/2024-08-WeBalance/_figures/circuit_hx711_one_load_cell.jpg new file mode 100644 index 0000000..4335d03 Binary files /dev/null and b/docs/blog/2024-08-WeBalance/_figures/circuit_hx711_one_load_cell.jpg differ diff --git a/docs/blog/2024-08-WeBalance/_figures/rpi_and_circuit.jpg b/docs/blog/2024-08-WeBalance/_figures/rpi_and_circuit.jpg new file mode 100644 index 0000000..cc563ee Binary files /dev/null and b/docs/blog/2024-08-WeBalance/_figures/rpi_and_circuit.jpg differ diff --git a/docs/blog/2024-08-MePosture/_figures/sketch_1.png b/docs/blog/2024-08-WeBalance/_figures/sketch_1.png similarity index 100% rename from docs/blog/2024-08-MePosture/_figures/sketch_1.png rename to docs/blog/2024-08-WeBalance/_figures/sketch_1.png diff --git a/docs/blog/2024-08-MePosture/_figures/sketch_2.png b/docs/blog/2024-08-WeBalance/_figures/sketch_2.png similarity index 100% rename from docs/blog/2024-08-MePosture/_figures/sketch_2.png rename to docs/blog/2024-08-WeBalance/_figures/sketch_2.png diff --git a/docs/blog/2024-08-WeBalance/index.rst b/docs/blog/2024-08-WeBalance/index.rst new file mode 100644 index 0000000..7fdf5a4 --- /dev/null +++ b/docs/blog/2024-08-WeBalance/index.rst @@ -0,0 +1,147 @@ +.. post:: 2024-08-19 + :tags: Wii, Balance Board, HX711, Load Cell, Raspberry Pi, ESP32, FARM-Stack, React, Redux, MongoDB, FastAPI, MongoDB, OpenAPI, Kiota + :language: English + + +Mini-Project: WeBalance +####################### + +**Let's tinker a gadget!** + +- Time estimate: One afternoon (net) +- Cost estimate: Far below 50 Euro (Raspberry Pi, Monitor, Keyboard, Mouse not included) +- Skill level: Intermediate hobby tinkerer + +WIP - Work-In-Progress! + + +Background +********** + +Recently I met a physician in the field of orthopaedics, sports medicine and performance diagnostics. I learned from him that a good posture is important for our health and well-being. So let's create some thing! + + +The Gadget +********** + +With a ... + +- **home-made Balance Board** (like a Wii Balance Board) with hardware used in digital scales, voltage amplifiers (HX711) +- a (little) oversized **microcontroller**, Raspberry PI 5 (RPI5), we can directly work on, so a full-blown computer. +- **WebApp** (Full-Stack with FARM-Stack: FastAPI, React, MongoDB) to visualize the data and to provide a user interface for the user to interact with the gadget. In the DataBase historical health data can be stored and analyzed. + + +BOM - Bill Of Material +********************** + +Production (and Development): + +- `1x Raspberry PI 5 (RPI5) `__ +- 1x SD-Card 32G +- 1x Power adapter 5V, enough current for powering RPI5 +- 1x USB-C cable for powering RPI5 +- 1x Breadboard 830 points +- `T-Cobbler for RPI `__ +- Enough Jumper wires male-male +- Enough Jumper wires male-female +- 1x `Ebay: Digital Scale Set (4x Load Cell 50kg each, 1x Amplifier HX711) `__ +- 3x `Ebay: Amplifier HX711 `__ +- 4x `Thingiverse| Half Bridge Load Sensor mount `__ + + +Development (in addition): + +- 1x `Adapter HDMI-D-plug to HDMI-A-Socket `__ +- 1x Monitor +- 1x Keyboard +- 1x Mouse + + +SBOM - Software Bill Of Material +******************************** + +Production (and Development): + +- `Raspberry Pi OS with desktop and recommended software (64-bit) Release date: July 4th 2024, Kernel version 6.6, Debian version: 12 (bookworm) `__ +- Python 3 12.5 +- hx711-multi 1.4.1 + + +Development (in addition): + +- Visual Studio Code 1.92.2 +- pipx 1.1.0 +- Poetry 1.8.3 + + +Resources +********* + +- `Arduino Scale with HX711 and 50kg Bathroom Scale Load Cells | Step by Step Guide | Connecting one load cell `__ +- `HX711 class to sample a 24-bit ADC (or multiple) with Python 3 on a Rasperry Pi Zero, 3 or 4 `__ +- `PipX statt Pip `__ + + +Sketches +******** + +Here some sketches: + +.. figure:: _figures/sketch_1.png + + Parts of the content is obsolete since RPI5 has been chosen and 4 HX711 are needed. + +.. figure:: _figures/sketch_2.png + + Parts of the content is obsolete since RPI5 has been chosen and 4 HX711 are needed. + + +Expert Dialogs +************** + +Here some GPT-4o chats: + +.. toctree:: + :maxdepth: 1 + :caption: Related GPT-4o chats + + _attachments/ChatGPT-ESP32_HX711_Bluetooth_Project.rst + _attachments/ChatGPT-ESP32_Load_Cell_Integration.rst + _attachments/ChatGPT-HX711_Circuit_Function.rst + _attachments/ChatGPT-Using_Wii_BalanceBoard_Raspberry_Pi.rst + + +Insights in Work-In-Progress +**************************** + +.. figure:: _figures/balance_board.jpg + + Balance board with top side made of glass waiting to get connected to the four HX711 + +.. figure:: _figures/rpi_and_circuit.jpg + + RPI connected to 4 HX711, Power, Monitor, Keyboard and Mouse with 1k Resistors waiting to get connected + +Software (Repository: https://github.com/basejumpa/WeBalance ) already acquires data. Here the continuous output :: + + --snip-- + + read duration: 0.969 seconds, rate: 10.3 Hz + raw ['1990.750', '-28956.286', '-1740.286', '-17075.444'] + wt ['1990.750', '-28956.286', '-1740.286', '-17075.444'] + + read duration: 0.968 seconds, rate: 10.3 Hz + raw ['1995.625', '-28946.571', '-1719.857', '-17096.286'] + wt ['1995.625', '-28946.571', '-1719.857', '-17096.286'] + + read duration: 0.978 seconds, rate: 10.2 Hz + raw ['1998.714', '-28930.429', '-1654.143', '-17004.875'] + wt ['1998.714', '-28930.429', '-1654.143', '-17004.875'] + + --snap-- + +**Next step:** connect each load cell to its own HX711 as shown here: + +.. figure:: _figures/circuit_hx711_one_load_cell.jpg + + Circuit one cell connected to one hx711. Origin: `Arduino Scale with HX711 and 50kg Bathroom Scale Load Cells | Step by Step Guide | Connecting one load cell `__