compensate weight due to acceleration (loadcells) I'm trying to make a weighing scale that works in a lift. I'm using load cells to measure the weight, let's say it's F. Then I use that weight F and g which i know is 9,81 m/s^2 to calculate the mass of the object like this.
F = m*g &lt;=&gt; m = F/g

This works when the lift is in rest (or when moving with constant speed) but when it accelerates the weight F increases and because of that the mass also increases. Is there a way to compensate this weight(/extra force) due to acceleration?
The force due to acceleration is: F = m*a
So to calculate the weight while accelerating the formula is:
F = mg + ma or F = m(g + a)
Note, of course, that a can be positive or negative depending on whether the elevator is accelerating or decelerating.
The trick here is to know what &quot;a&quot; is.  The best approach is probably to get an accelerometer and use its reading in your calculations.
By the way, the mass is always a constant here.  It does not change, in Newtonian Physics at least, due to acceleration.