Today we made the ODKI-VBT repository public on GitHub: github.com/ODKI-tech/ODKI-VBT ↗.
ODKI-VBT is a velocity-based training (VBT) sensor. It clips magnetically to a barbell and sends bar velocity, displacement and reps to a phone app over Bluetooth. Velocity-based training looks at how fast a lift moves, not only how much weight is on the bar, and uses that to judge effort and fatigue during a session.
Why publish it
We wanted a bar-speed number whose method anyone can check, so you don't have to take it on trust. If you can read how the number is produced, you can judge for yourself when to rely on it and when to question it.
What is in the repository
- Firmware. Arduino C++ for the Seeed XIAO nRF52840 Sense, a small board that already has the microcontroller, a 6-axis IMU (accelerometer and gyroscope), Bluetooth and battery charging on it.
- Hardware. The bill of materials, a two-part 3D-printed enclosure that holds three magnets, and step-by-step assembly instructions.
- Bluetooth protocol. The specification of every packet the sensor sends and accepts, so other people can write their own apps.
- Documentation. A chapter-by-chapter description of what each source file does and how reps are detected.
- The Android app and the firmware update package: the app checks the repository for a newer firmware and installs it over Bluetooth.
How it works, in short
The sensor combines the accelerometer and the gyroscope to work out which way is up. That lets it separate the real movement of the bar from gravity. It then integrates the vertical acceleration into velocity. Integration drifts over time, so the sensor uses the short natural pauses in a set to measure that drift and remove it from the reps it has just recorded. You don't have to press anything between reps.
The full description is in Firmware/DOCUMENTATION.md ↗.
Building one
You need to be comfortable with soldering and with handling a LiPo battery safely. The assembly guide ↗ says so at the start, and it means it: this is not a first electronics project. If that is new to you, get help from someone who has done it before.
What it is not, yet
The sensor has not been validated against a reference instrument, so we make no claims about its accuracy. Comparing it with a reference encoder is a separate piece of work, and until it is done there are no accuracy figures to give.
Licence
The firmware is published under the GNU GPL v3.0 with the Commons Clause. You can read, build and modify it for yourself. Selling it is not allowed without our permission. The licence file in the repository has the exact terms.
Who is behind it
ODKI was founded by Lodovico Cortelazzo, who brings together a background in athletics and in engineering. The Who's behind ODKI ↗ page has more.
If you build one, find a bug or have a question, open an issue on the repository. That is where the work happens.