Is it possible to use the pressure sensor to act as a weight sensor?
In my understanding, the pressure sensor works on the amount of pressure put it to it, if the pressure is coming from the weight of an object, will it produce an output that is almost the same with the weighing scale?
I am working on a project right now and it involves sensor programming on Raspberry pi.
If this is possible can you help me on python coding of the pressure sensor?
Thanks in advance.
You measure the force with your pressure sensor. Force is mass times acceleration. (). The gravitational acceleration on earth is ~ 9.80665 m/s². To get the mass of your object you need to calculate:
with a = 9.80665 m/s² and f is your sensor reading. Assuming that your sensor delivers values in Newtons (thanks Mark Perryman), then you have the mass in kg.