Show Posts
Pages: [1]
1  Using Arduino / Sensors / Re: SMC PSE530-M5 on: January 18, 2013, 04:09:36 pm
Higher Pressure = higher difference (up to ~15%), while i get the correct atmosphere pressure.
The other sensor is an external pressure meter (i have done it with 2 different with same values coming out ;-))

Here is my first code. Like i said: I have tested hours and hours with many different functions and code versions. this was my first aproach:

Code:
return mapfloat(v, 0.0f, 1023.0f,_sensorMin, _sensorMax);
where _sensorMin and _sensorMax are the configured values for the sensor.
Floatmap is this function for floats (equals map for integers):
Code:
float AnalogSensor::mapfloat(float x, float in_min, float in_max, float out_min, float out_max)
{
  return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
}

Today i found out, that the sensor gives
1V => 0bar
5V => 10bar
2  Using Arduino / Sensors / Re: SMC PSE530-M5 on: January 18, 2013, 03:32:14 pm
I tried to map my analog input value (0..1023) to the sensors min and max pressure values with the map() function.

I spent hours of testing with external pressure meter to get a solution. but my calculated values differs from the measured values. the difference first is small and get bigger with every millibar the sensor gets. In that hours i tested many code versions. thats why i didn't post any code.


3  Using Arduino / Sensors / Re: SMC PSE530-M5 on: January 18, 2013, 03:08:59 pm
map() was my first intention too. Thats my problem.

Now i know, that the sensors has output as follow:
1V -> 0bar
5V -> 10bar

Any ideas how to calculate it?
4  Using Arduino / Sensors / Re: SMC PSE530-M5 on: January 16, 2013, 05:53:24 pm
1 kPa per step is very good for us.

I will post my formular tomorrow, it is on my work pc.

How would you calculate the values?

Thanks so far!
5  Using Arduino / Sensors / Re: SMC PSE530-M5 on: January 16, 2013, 05:18:37 pm
Hi!

The datasheet: http://datasheet.octopart.com/PSE530-M5-SMC-datasheet-30258.pdf

From here i cant post my code. If you need it, i will post it tomorrow morning.

6  Using Arduino / Sensors / SMC PSE530-M5 on: January 16, 2013, 04:27:54 pm
Hi at all,

i am on that since yesterday and i have huge problems to get my goal.

We use some SMC PSE5530-M5 sensors for pressure measurement. Its connected correctly on an analog pin (A15).

I have to calculate pressure values (in bar or kpa or whatever) from ​​the analog values ​​(0 .. 1023) i get from analogRead.
My values ​​are different from measured values ​​significantly.

Can anyone help me out with a formular, a code snippet or other help for that problem?

Thanks!

minquist
Pages: [1]