Connect a water flow sensor --> will M591 P7 work in Laser mode?
-
@paulg4h yes, you're right. There is again an error! Soory for that!
You have to reset the sum too!var.counter var.sum if var.counter < 10 set var.sum = {var.sum + "newValue"} set var.counter = var.counter + 1 else if {var.sum / var.counter} < 20 NO FLOW var.counter = 0 var.sum = 0
-
@paulg4h said in Connect a water flow sensor --> will M591 P7 work in Laser mode?:
How could I use the rpm more reliable to detect water flow, even in DWC the Sensors Fan RPM are shown and jumps between 0 and something between 190 and 210 all the time.
That doesn't sound right. I suspect it is because the RPM is much lower than for a typical fan. If RRF doesn't receive any tacho pulses for a certain period of time, it assumes the fan has stopped and gives a zero reading.
I just checked the code: it requires at least 32 tacho pulses over a period not exceeding 3 seconds. It assumes 2 tacho pulses per revolution. So the minimum speed to get a stable reading is 16/3 revs/sec = 320 rpm.
I'll make a note to allow a wider range in RRF 3.4.
-
@dc42 said in Connect a water flow sensor --> will M591 P7 work in Laser mode?:
16/3 revs/sec = 320 rpm.
Many thank's!
-
@paulg4h If you can open the sensor, you can try to insert more magnets. Eventually you can reach the desired rpm. But i'm not sure if there is space and if the hall detects proper signal-edges with more magnets...
-
@cosmowave I use your script above with some slightly modification and now it works so far
var counter=0 var sum=0 while true G4 S2 if job.duration = null ; No job ignore sensor reading else ; Check Water Flow if var.counter < 10 set var.sum = {var.sum + fans[0].rpm} set var.counter = var.counter + 1 else if {var.sum / var.counter} < 50 ; NO FLOW var.counter = 0 var.sum = 0 M25 M118 S"No Water flow!" ; Check water temperature if sensors.analog[0].lastReading > 35 M25 M118 S"Water to hot!"
-
The Release 3.3 of RRF includes a fix to recognize pulse sensors until 160 rpm instead of 320 rpm minimum
https://github.com/Duet3D/RepRapFirmware/wiki/Changelog-RRF-3.x-Beta-&-RC#reprapfirmware-33-post-rc3Many thank's!
-
@paulg4h said in Connect a water flow sensor --> will M591 P7 work in Laser mode?:
The Release 3.3 of RRF includes a fix to recognize pulse sensors until 160 rpm instead of 320 rpm minimum
https://github.com/Duet3D/RepRapFirmware/wiki/Changelog-RRF-3.x-Beta-&-RC#reprapfirmware-33-post-rc3Many thank's!
@paulg4h You can download preview firmware including that change from https://www.dropbox.com/sh/xfsvscbaab0dtzl/AACCcSeiTNINZL-xbs6IhC4Ja?dl=0. Ignore the .map files.
-
@paulg4h is this now working properly for you using firmware 3.3 ?
-
Many thank's I updated today and now the RPM of the flow sensor is working perfectly without the variables!
-
@dc42
Is it possible to allow even lower rpm readings? My flowsensor gives 35rpm at minimum...