Arduino used to read signal from a Bitspower BP-FS-CLBKMBK flow sensor?
so i'm building watercooled computer , need 5v signal run relay when there flow in system , 0v signal when there no flow in system. have pretty no experience arduino coding have idea capable of. have arduino uno.
flowsensor = flowmeter.
right have current pinout between flowmeter , arduino:
+ on flowmeter 5v on arduino
- on flowmeter grd on arduino
# on flowmeter (signal) d2 on arduino
so me , friend have had experience coding arduino before helped me test little bit. not @ still better me.
we tried coding timer starts every time flowmeter reads "0", , when flowmeter reads "1" restarts timer (clock). thought long there flow running through flowmeter happen timer restarts on every rotation wheel in flowmeter does. first time wheel in flowmeter passes on sensor, flowmester reads "1" arduino starts sending out 5v on "out" pin. long flowmeter send out "0" less 3sec arduino continues send out 5v on "out" pin. when flowmeter reads "0" longer 3sec stops sending out 5v "out" pin.
but concluded flowmeter stops right on sensor in flowmeter , therefore sends "1" continuously arduino if there no flow moving through flowmeter anymore. result in timer never starts , arduino think there flow flowmeter , send out 5v when there no flow in system.
what thought might solve problem writing code instead of doing thing when arduino "1" or "0" flowmeter ("0" after 3sec), count time between changes "0" "1" "0" "1"... (and forth). in our minds result in long flowmeter changes between "1" , "0"... (and forth) faster 3sec arduino send out 5v. , when flowmeter stops sending changing values timer not restart , after 3sec arduino stop sending out 5v signal.
now, function @ doable write code in arduino? , if so, i'll appreciate can reach function i'm after.
flowsensor = flowmeter.
right have current pinout between flowmeter , arduino:
+ on flowmeter 5v on arduino
- on flowmeter grd on arduino
# on flowmeter (signal) d2 on arduino
so me , friend have had experience coding arduino before helped me test little bit. not @ still better me.
we tried coding timer starts every time flowmeter reads "0", , when flowmeter reads "1" restarts timer (clock). thought long there flow running through flowmeter happen timer restarts on every rotation wheel in flowmeter does. first time wheel in flowmeter passes on sensor, flowmester reads "1" arduino starts sending out 5v on "out" pin. long flowmeter send out "0" less 3sec arduino continues send out 5v on "out" pin. when flowmeter reads "0" longer 3sec stops sending out 5v "out" pin.
but concluded flowmeter stops right on sensor in flowmeter , therefore sends "1" continuously arduino if there no flow moving through flowmeter anymore. result in timer never starts , arduino think there flow flowmeter , send out 5v when there no flow in system.
what thought might solve problem writing code instead of doing thing when arduino "1" or "0" flowmeter ("0" after 3sec), count time between changes "0" "1" "0" "1"... (and forth). in our minds result in long flowmeter changes between "1" , "0"... (and forth) faster 3sec arduino send out 5v. , when flowmeter stops sending changing values timer not restart , after 3sec arduino stop sending out 5v signal.
now, function @ doable write code in arduino? , if so, i'll appreciate can reach function i'm after.
take @ "state change detection" example in examples folder ( in file menu, examples, digital) of ide. using concept, transitions (not levels) , act on them. you can on rising edge and/or falling edge.
Arduino Forum > Using Arduino > Project Guidance > Arduino used to read signal from a Bitspower BP-FS-CLBKMBK flow sensor?
arduino
Comments
Post a Comment