As part of a new project I’m working on, I need to replace a spring with other means of force application, for that I need to measure how

3D Printing, Electronics, Arduino, Raspberry Pi, Computers and anything DIY, basically
As part of a new project I’m working on, I need to replace a spring with other means of force application, for that I need to measure how