0
\$\begingroup\$

I am working with Omron Pressure sensor D6F-PH . When i try to read the pressure value i am unable to get a stable value. I tried averaging but even that doesn't help. Could somebody suggest me a trick/ techniques to help in my situation.

asked Dec 12, 2015 at 11:18
\$\endgroup\$
12
  • \$\begingroup\$ Use a decent power supply to power the device and make sure you have capacitor decouplers on the power supply lines into the device. Read the DS - there are some comments about ground and frame ground that may apply to your set-up. \$\endgroup\$ Commented Dec 12, 2015 at 11:23
  • \$\begingroup\$ Supply is perfectly okay. I need a programming tweak. As it is a flow/pressure sensor hence it keep fluctuating its value. \$\endgroup\$ Commented Dec 12, 2015 at 11:27
  • 1
    \$\begingroup\$ Well, without knowing what the data looks like this is difficult to answer. \$\endgroup\$ Commented Dec 12, 2015 at 11:29
  • \$\begingroup\$ No, add a picture showing the data and also what you'd expect to see. Nobody can answer this properly without good data. \$\endgroup\$ Commented Dec 12, 2015 at 11:43
  • \$\begingroup\$ Showing an array of data will be fine. The largest, the better. \$\endgroup\$ Commented Dec 12, 2015 at 12:02

1 Answer 1

3
\$\begingroup\$

The first thing to do is look carefully at the electronics around the sensor, particularly its power feed. Make sure the ground is solid and well connected back to where the measurement is being done, and that the supply is clean.

I'd put maybe two ferrite chip inductors in series with the supply, and 20 µF or so to ground after each. That should smooth out ripples from switching noise and the like. If the supply voltage is not well regulated, then use a bit higher unregulated supply voltage, add the ferrite chip inductors and caps, but have that feed into a LDO which then feeds the transducer.

Once you have the electrical side clean, the rest is firmware. You said you "averaged" the values, which implies a naive box filter. Sample the signal as fast as your micro can handle, then apply maybe two poles of

FILT <-- FILT + FF(NEW - FILT)

Each of these is the digital equivalent of a R-C low pass filter. Figure out what step response you really need, and adjust the filters accordingly. This has been discussed many times here before. For example, I go into detail on such filters at https://electronics.stackexchange.com/a/30384/4512.

answered Dec 12, 2015 at 13:07
\$\endgroup\$
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.