Pages: [1]   Go Down
Author Topic: OMEGA low flow meter wiring  (Read 520 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I plan to use this sensor for a project. I needed a low flow sensor able not to break with high pressure (for safety it should withstand up to 500PSI, although during normal use it should be below 150PSI).

http://www.omega.com/Manuals/manualpdf/M5171.pdf

I read in the datasheet above that the output is "Output NPN Sinking Open Collector @ 20 mA, Max"
and

"The output signal is a square wave signal, whose frequency varies linearly with flow rate. An external pull-up resistor (user-supplied) is required to insure that the open collector will sink less than 20 mA."

Can I wire this sensor as in the attached image, or am I missing something?

Thank you
Med


* flow sensor to mega.jpg (753.69 KB, 1755x1254 - viewed 36 times.)
« Last Edit: May 05, 2013, 08:06:23 pm by medkhai » Logged

Offline Offline
Edison Member
*
Karma: 57
Posts: 2078
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is that a 10k resistor ?
I think 10k or 4k7 is just fine. 10k is in the datasheet.

That datasheet is a lot confusing. The person who wrote that must hve been drunk.
Connect Arduino GND pin to sensor (-) / 0VDC / ground.
Connect Arduino 5V pin to sensor V+
Connect Arduino input pin (preferably a digital input pin) to sensor OUTPUT.

Connect the resistor from the OUTPUT to V+ (5V).

The output is a square wave, so you don't need an analog input. You can use the analog input as a digital input of course.

Did you understand this sentence : "Output NPN Sinking Open Collector @ 20 mA, Max" ?
NPN = NPN transistor inside
Sinking = if active the output is pulled to ground.
Open Collector = if not active the ouput is floating.
20 mA max = the maximum, so a nice value would be roughly 1mA.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you for your reply.
So I modified the connections as attached.

- The digital pin I think should be an interrupt PIN right? Like pin 3 on the arduino.

- Changed the resistor value to 4.7KOhm to limit current to 1mA
- and moved it as pullup between +5V and OUTPUT

Thank you for point out the mistakes to me :-)
Med



* flow sensor to mega2_bb.jpg (553.48 KB, 1329x1410 - viewed 28 times.)
Logged

Offline Offline
Edison Member
*
Karma: 57
Posts: 2078
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Looking good.

But now the sketch.
You need a frequency counter or something like that.
Logged

Pages: [1]   Go Up
Jump to: