# EZO-FLOW I2C help

**URL:** <https://discourse.nodered.org/t/ezo-flow-i2c-help/35118>\
**Category:** Dashboard\
**Created:** [31 October 2020 11:19 UTC](https://discourse.nodered.org/t/ezo-flow-i2c-help/35118 "2020-10-31T11:19:49Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![RGebel](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rgebel/32/18002_2.png) [@RGebel](https://discourse.nodered.org/u/RGebel)\
**Post date:** [31 October 2020 11:19 UTC](https://discourse.nodered.org/t/ezo-flow-i2c-help/35118/1 "2020-10-31T11:19:50Z")

</div>

EZO-FLO i2c how can i clear total volume?

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [31 October 2020 12:29 UTC](https://discourse.nodered.org/t/ezo-flow-i2c-help/35118/2 "2020-10-31T12:29:36Z")

</div>

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...

---

<div class="post-metadata">

**Author:** ![RGebel](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rgebel/32/18002_2.png) [@RGebel](https://discourse.nodered.org/u/RGebel)\
**Post date:** [31 October 2020 12:45 UTC](https://discourse.nodered.org/t/ezo-flow-i2c-help/35118/3 "2020-10-31T12:45:34Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/1/f136575c79d98adae3953345ae6551554dc65bd8.jpeg)  
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.

```auto
[{"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

```auto
[{"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"]]}]

```

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [31 October 2020 18:35 UTC](https://discourse.nodered.org/t/ezo-flow-i2c-help/35118/4 "2020-10-31T18:35:37Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![RGebel](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rgebel/32/18002_2.png) [@RGebel](https://discourse.nodered.org/u/RGebel)\
**Post date:** [31 October 2020 18:43 UTC](https://discourse.nodered.org/t/ezo-flow-i2c-help/35118/5 "2020-10-31T18:43:08Z")

</div>

the device needs to get "clear"

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [31 October 2020 18:44 UTC](https://discourse.nodered.org/t/ezo-flow-i2c-help/35118/6 "2020-10-31T18:44:05Z")

</div>

Does case matter??

---

<div class="post-metadata">

**Author:** ![RGebel](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rgebel/32/18002_2.png) [@RGebel](https://discourse.nodered.org/u/RGebel)\
**Post date:** [31 October 2020 18:53 UTC](https://discourse.nodered.org/t/ezo-flow-i2c-help/35118/7 "2020-10-31T18:53:28Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![RGebel](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rgebel/32/18002_2.png) [@RGebel](https://discourse.nodered.org/u/RGebel)\
**Post date:** [31 October 2020 20:18 UTC](https://discourse.nodered.org/t/ezo-flow-i2c-help/35118/8 "2020-10-31T20:18:39Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![RGebel](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rgebel/32/18002_2.png) [@RGebel](https://discourse.nodered.org/u/RGebel)\
**Post date:** [2 November 2020 22:31 UTC](https://discourse.nodered.org/t/ezo-flow-i2c-help/35118/9 "2020-11-02T22:31:42Z")

</div>

[{"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"]]}]

---

<div class="post-metadata">

**Author:** ![SonoraTechnical](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sonoratechnical/32/20033_2.png) [@SonoraTechnical](https://discourse.nodered.org/u/SonoraTechnical)\
**Post date:** [5 November 2020 00:03 UTC](https://discourse.nodered.org/t/ezo-flow-i2c-help/35118/10 "2020-11-05T00:03:30Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [19 November 2020 00:03 UTC](https://discourse.nodered.org/t/ezo-flow-i2c-help/35118/11 "2020-11-19T00:03:34Z")

</div>

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