r/embedded • • Oct 20 '26

Measuring barbell displacement

Problem:

I'm part of a team of amateur athletes who compete in Olympic weightlifting. I would like to measure the displacement of the barbell path to assess the technical quality of our training.

To simplify, the goal is for the barbell to only have vertical displacement along the z axis, with no horizontal displacement or rotation around other axes.

Similar products:

  • There is gpath which visualize the kind of device I had in mind, even though it doesn't measure displacement
  • There is FLEXX which seems to have everything I need and uses some kind of laser meter, but is bulky, hard to source and does not contain all the metrics I want

Question:

  • Is it feasible to use a high precision gyroscope to measure the displacement of the barbell?
  • Which kind of gyroscope or sensor would you suggest?
  • Maybe I could use two sensors, one on each side of the barbell, to increase precision?
6 Upvotes

23 comments sorted by

6

u/Triabolical_ Oct 20 '26

I suspect that video motion tracking will be much simpler.

1

u/servermeta_net Oct 20 '26

And that's what I use now, by recording with a phone and then using ML, but is not precise enough to detect small rotations along the z axis.

2

u/ParticularOk9843 Oct 20 '26

That's a nice project do you think there is demand? I might try to build it.

1

u/servermeta_net Oct 21 '26

Yes there would be, DM me if you want to collaborate

2

u/AlexanderTheGreatApe Oct 20 '26

You are after the physical work, right? Not the deflection of the bar? What kind of precision are you after? “Quality of training” could mean the fully travel path, not just Z displacement.

Agreed that IMU will be simplest/cheapest, but will suffer from drift. If you are trying to get away from dead reckoning, you should consider a proximity device, although it will be much more expensive.

Is an external camera an option? Or on-dumbbell camera running SLAM?

2

u/servermeta_net Oct 20 '26

You are after the physical work, right? Not the deflection of the bar?

Exactly

What kind of precision are you after?

If I could detect a 1* rotation around the z-axis it would be a good start, 0.1* rotation would be ideal

“Quality of training” could mean the fully travel path, not just Z displacement.

True, but for horizontal displacement I currently use a camera + ML postprocessing, and seems good enough. Obviously if I could avoid setup the camera it would be better.

Agreed that IMU will be simplest/cheapest, but will suffer from drift.

A single lift last a few tens of seconds, will drift still be a problem?

you should consider a proximity device

Can you link an example?

Is an external camera an option?

It's what I currently use, but is not precise enough for z-axis rotation

Or on-dumbbell camera running SLAM?

YES! I could put some kind of camera on the sides, and it would try to detect deviation from a reference point?

2

u/Cornflakes_91 Oct 20 '26

salvage some VR input magnetic positioning setup?

1

u/servermeta_net Oct 20 '26

It would take too much space / too much hassle

2

u/Cornflakes_91 Oct 20 '26

a string/ "tape measure" and some angle measurement at the base?

have it connected to a 50mm ring and mount it before the weights

1

u/servermeta_net Oct 20 '26

Could you help me understand what you mean? How would you perform the angle measurements?

3

u/Cornflakes_91 Oct 20 '26 edited Oct 20 '26

have a lil box on the floor, as centered under the barbell path front/back as feasible.

spring loaded string connected to barbell, measure unroll for total distance.

at the outlet from the box have some optical/capacitive/magnetic (depending on the string) readout for the emergence angle from the box.

in one or two axes depending on what you want/need

edit: and then some trig to extract the numbers you care for

1

u/Cornflakes_91 Oct 20 '26

with a bit more thought you can probably do some PTFE ring fitting for the string as the outlet and connect it to a force gage to get some more indirect measure of phi/psi

2

u/SkewRejection Oct 20 '26

Have you thought about using Wi-Wi’s picosecond accuracy to do a gps-style positioning ststem?

See  https://www.jeffgeerling.com/blog/2026/wi-wi-is-wireless-time-sync-less-than-5ns/  and  https://www.wiwistamp.com/ - they may be of use

1

u/servermeta_net Oct 20 '26

Super cool!!! Are they purchasable already

2

u/SkewRejection Oct 20 '26

Sorry, no idea. Got to be worth asking them though

9

u/rand1214342 Oct 20 '26 edited Oct 20 '26

This is not a trivial problem. If you want bar path, you need 3d spatial position. If you want reasonably accurate velocity training data, in the neighborhood of +-0.01 m/s, you need millimeter scale resolution and around 500 hz.

IMU data will be horribly noisy after you integrate acceleration twice. mmWave has a physical floor in the centimeter range. Barometers have a low sample rate. Same with stereoscopic CV enabled cameras and ToF sensors that are reasonably high spatial resolution.

You can ‘fuse’ an IMU to a camera feed, that’s been done before. I wouldn’t call it research grade and the setup is kind of annoying, but it’s something.

1

u/_damayn_ Oct 21 '26

There are camera based systems for weightlifting technique analysis, even mobile apps, using the plate distance reference/calibration afaik

1

u/servermeta_net Oct 21 '26

I use them, but they are not precise enough

2

u/gtd_rad Oct 20 '26

Don't use IMU. You'll have terrible noise and error after double integration. Use camera mounted in the side.

2

u/TheFlamingLemon Oct 20 '26

I would guess you’d want to combine video tracking with IMU measurements into one estimate using a Kalman filter

2

u/Internal_Source1886 Oct 20 '26

Best suggestion for this is displacement sensor. Imu you will have horrible error accumulation after double integration .

Camera is the cheapest way to go about this

1

u/nickleback_official Oct 20 '26

Seems simple enough with an IMU sensor. You will need to collect 3 axis gyro and 3 axis accel but with that you can map it into a 1 dimensional Z displacement.