EZO-FLOW I2C help

EZO-FLO i2c how can i clear total volume?

First you should provide a bit more information like:

  • How are you accessing this device via nod-red?
  • Does the device have an API?
  • What command does the API have to reset the volume?
  • Or are you capturing it's volume in a flow and want to reset it there?
    are a few things that pop up in my head...


EZO-FLO is a board that works in uart or I2C it reads standard flow sensors. Ihave mine set for I2C mode and it reads the sensor fine. I just can't clear total volume.

[{"id":"7a5d6c8b.390014","type":"inject","z":"3850b8ad.92af08","name":"push1","topic":"","payload":"","payloadType":"num","repeat":"15","crontab":"","once":true,"onceDelay":0.1,"x":120,"y":60,"wires":[["f28ff1df.109b"]]},{"id":"f28ff1df.109b","type":"i2c out","z":"3850b8ad.92af08","name":"FlowCmnd","busno":"1","address":"104","command":"82","payload":"payload","payloadType":"msg","count":"1","x":310,"y":60,"wires":[["1c1d5381.de584c"]]},{"id":"1c1d5381.de584c","type":"delay","z":"3850b8ad.92af08","name":"delay3","pauseType":"delay","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":470,"y":60,"wires":[["b93a94af.9748d8"]]},{"id":"b93a94af.9748d8","type":"i2c in","z":"3850b8ad.92af08","name":"FlowData","busno":"1","address":"104","command":"","count":"8","x":660,"y":60,"wires":[["d57518e0.cfa5c8","e32b709.005009"]]},{"id":"d57518e0.cfa5c8","type":"function","z":"3850b8ad.92af08","name":"BuffToStr3","func":"msg.payload = (String.fromCharCode(msg.payload[1])) + (String.fromCharCode(msg.payload[2]))\n + (String.fromCharCode(msg.payload[3])) + (String.fromCharCode(msg.payload[4]))\n  + (String.fromCharCode(msg.payload[5])) + (String.fromCharCode(msg.payload[6]));\nreturn msg;","outputs":1,"noerr":0,"x":830,"y":60,"wires":[["466c2d1.4e8a4d4"]]},{"id":"466c2d1.4e8a4d4","type":"change","z":"3850b8ad.92af08","name":"StrToNum3","rules":[{"t":"set","p":"payload.Value","pt":"msg","to":"","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":830,"y":120,"wires":[["593bb110.f6cba","43e01725.bcd5b8"]]},{"id":"593bb110.f6cba","type":"ui_text","z":"3850b8ad.92af08","group":"8fb7e65e.a3b308","order":3,"width":0,"height":0,"name":"l/min","label":"l/min","format":"{{msg.payload}}","layout":"row-spread","x":1030,"y":120,"wires":[]},{"id":"43e01725.bcd5b8","type":"ui_gauge","z":"3850b8ad.92af08","name":"PumpFlow","group":"8fb7e65e.a3b308","order":1,"width":0,"height":0,"gtype":"gage","title":"Pump Flow","label":"l/min","format":"{{value}}","min":0,"max":"55","colors":["#0000a0","#00ff1c","#ff0f00"],"seg1":"10","seg2":"45","x":1050,"y":60,"wires":[]},{"id":"8fb7e65e.a3b308","type":"ui_group","z":"","name":"EZO Flo over I2C","tab":"e96e70f7.80833","order":3,"disp":false,"width":"6","collapse":false},{"id":"e96e70f7.80833","type":"ui_tab","z":"","name":"RPI4-NodeRed-AtlasSciI2C","icon":"dashboard","disabled":false,"hidden":false}]

Clear flow

[{"id":"e32b709.005009","type":"debug","z":"3850b8ad.92af08","name":"RawBuff","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":520,"y":520,"wires":[]},{"id":"9012c09b.d6ea1","type":"inject","z":"3850b8ad.92af08","name":"Clear","topic":"","payload":"","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":520,"wires":[["f28ff1df.109b","180ad6ab.712879"]]},{"id":"180ad6ab.712879","type":"i2c out","z":"3850b8ad.92af08","name":"Clear","busno":"1","address":"104","command":"13","payload":"Clear","payloadType":"msg","count":"7","x":290,"y":520,"wires":[["e32b709.005009"]]}]

So what do you need to send to the device to clear it?

the device needs to get "clear"

Does case matter??

the documentation says "Clear". I have tried all combinations. i have seen the same question asked several times on this forum. As far as i can see it has never been solved.

I got it! it's all in the setup for I2C Node. I will upload node shortly.

1 Like

[{"id":"d59fbef0.37463","type":"debug","z":"3850b8ad.92af08","name":"Clear","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":510,"y":480,"wires":},{"id":"c3e9519f.ad85b","type":"inject","z":"3850b8ad.92af08","name":"Clear","topic":"","payload":"Clear","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":480,"wires":[["1f015213.d06b8e"]]},{"id":"1f015213.d06b8e","type":"i2c out","z":"3850b8ad.92af08","name":"Clear","busno":"1","address":"104","command":"67","payload":"[108,101,97,114]","payloadType":"bin","count":"6","x":310,"y":480,"wires":[["d59fbef0.37463"]]}]

2 Likes

Awesome. Sorry I got your email too late to help you.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.