Above you see a solenoid being used as a digital scale. The magnetic field from the coil in the base levitates the platform above, where a load to be measured is place. This floating platform has a permanent magnet in it, hovering above a hall effect sensor in the base. As the distance between that magnet and the sensor changes, the measurable magnetic field changes as well. The hall effect sensor is linear so the measured value can easily be correlated with a weight. In the video after the break [Vsergeev] demonstrates the device using test weights to show off its 0.5 gram resolution. He thinks that with a few hardware improvements he could easily achieve 0.1g accuracy.