LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to change Voltage to Pressure or Pascal (Pressure) in Labview

I thought you meant air pressure. What you have to do, then, is to construct a platform which will exert all of its weight (pressure) directly and evenly on your force sensor (if it rests on anything else because it's unbalanced, etc., then all bets are off). But you still have to be able to read your sensor with a known force (measured with some other instrument) to calibrate it.

 

Then tweak my second sentence and beyond to read: "Then exert force A on your platform, take your measurement with your sensor, repeat for force B, force C, etc., until you have exceeded your anticipated range or the sensor shows no further response with increasing force. For your setup, this should be pretty quick, so take a lot of points all along the range. One thing you do know from the company literature is that there is likely to be a curved region and a straight region in your calibration curve (maybe a curved region at the end)."

 

Pressure is simply force divided by the area it is exerted on, as pjr1121 said. As for your feet, they will obviously exert different amounts of force at different spots, so you'd better have a lot of sensors or you will just have a bathroom scale.

 

By the way, are you SimpleSam or HEAP08? IMHO, it's not particularly polite to change your name in the middle of a thread (and multi-monikers can give people pause thinking about your motivations for doing so).

 

Cameron

 

To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.

To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):

LabVIEW Unit 1 - Getting Started</ a>
Learn to Use LabVIEW with MyDAQ</ a>
0 Kudos
Message 21 of 45
(1,441 Views)

@HEAPO8 wrote:

well lets say my weight is 12 stone... I step on the mat and that gives out 5V. How do I get the force from that? I hope i am not frustrating you guys? Lol


If you have positioned it correctly, the average force is 12 stone divided by the area of your pressure sensor (or, by extension, the average force on the mat is 12 stone divided by its area). The only relevance of your 5V reading is that it can be used as one point in your calibration.

 

Cameron

 

To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.

To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):

LabVIEW Unit 1 - Getting Started</ a>
Learn to Use LabVIEW with MyDAQ</ a>
0 Kudos
Message 22 of 45
(1,439 Views)

Force = Mass*acceleration (newtons = kg * 9.8 m/s^2).  so start with a set of known weights (say from a lab).  Each weight will give you a voltage reading which you record.  You will want to use at least 10 different weights.  The more you use, the more accurate your calibration curve.

0 Kudos
Message 23 of 45
(1,436 Views)

Right got my recorded data! The force have been converted to Newtons and I am guessing that it Force against Voltage for the Curve?Is this posible to do so in Labview straight away? If so could you guide me through which VI to use and how to do it. Thanks for your help guys

 

 

ps camerond sorry about the different names- I forgot the password to my other email accountSmiley Frustrated)

0 Kudos
Message 24 of 45
(1,422 Views)

You don't need any special vi's just go in the numeric pallete and use basic math operations.

 

remember, F=ma  so 10kg * 9.8m/s^2 = 98Newtons, easy.

0 Kudos
Message 25 of 45
(1,418 Views)

It is easy to you, but not to me! I have my readings (see below)

 

1. 4.90N= 2V

 

2. 2.45N= 0.9V

 

4. 19.61N= 2.75V

 

5. 9.8= 2.35V

 

Am I meant to plot this in a calibration graph? The graphs that I have on my code can show Voltage against time- I want to change that to force against time

0 Kudos
Message 26 of 45
(1,415 Views)

You have 5 numbers, which is a good start.  Since the curves show in the manual a non-linear, I would recommend collecting more.

 

Use these numbers to construct a calibration curve.  Plot them in excel, and fit a polynomial curve to them (a polynomial of high enough degree can fit anything).  There are probably other equations which will fit with fewer coefficients but I'll keep this generic for now.  This will give you an equation to convert voltage to force for your sensor.  Now you can calculate the Force for any voltage reading given by your sensor with reasonable accuracy.  

 

To improve the accuracy, you should masure a lot of data points accross the full detection range available.

0 Kudos
Message 27 of 45
(1,411 Views)

What's your experimental setup look like? Can you attach a picture? Your data look like you have a major problem, since the graph is not even monotonic.

 

Cameron

To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.

To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):

LabVIEW Unit 1 - Getting Started</ a>
Learn to Use LabVIEW with MyDAQ</ a>
0 Kudos
Message 28 of 45
(1,407 Views)

Right okay I have done that now. The Polynomial I got is Y=0.0001x2 + 0.0923x+1.1667. Now gow do I put this in Labview (fingers crossed lol)

 

(ps camerond i am not using that menor sensors in my array, so it is very very basic experiment. It is not going to be an accurate foot mat by any stretch of the imagination..!)

0 Kudos
Message 29 of 45
(1,402 Views)

What I mean is that it looks like your mat which is carrying the weight is not supported only on your sensor - one or more corners is sitting on the floor (bench, table). Probably also shifting around between each reading. This would make your readings totally invalid. If you cannot get a reading which increases (or decreases, one or the other, not both at different points) with weight, then your setup is useless.

 

Cameron

 

To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.

To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):

LabVIEW Unit 1 - Getting Started</ a>
Learn to Use LabVIEW with MyDAQ</ a>
0 Kudos
Message 30 of 45
(1,399 Views)