Two flow meters

Hello friends . Can two flow meters be connected simultaneously to Cayenne? Someone could help me please

It should not be a problem.
What connection is used to Cayenne?

I am using the usb connection. It only worked for me with a sensor :frowning: , help pls

I’ll write you a code if you wait for tomorrow.

Yes, of course . thank you very much . :smiley:

The sensors are connected to pins 2 and 3.

Two Flow sensors.txt (2.8 KB)


Hello tad.dvor

Can you write similar code but in Python for Raspberry?
Thank you!

thank you very much :slight_smile: . … To connect more than two, should I perform the same procedure?

This sensor uses interrupts.
For Arduino UNO can have a maximum of two sensors.
For Arduino MEGA you can have more.

1 Like

ok, But the code arduino is similar?

Sorry, I do not know how to program in Python.

I think that yes, but I would to try it.

I’ll try it when I have the arduino mega, thanks for the advice :slight_smile:

1 Like

hi tad.dvor

I modified something the code that you sent me, specifically the part where the amount of flow is counted. Can you review it please . (I express the volume in liters)

I also checked the widget counter and I have a 480ml error approximately. (To check I took a liter of water and passed it through the sensor and simultaneously checking what the “volume in liters” widget marked)

regards :slight_smile:

codetwoflowmeters.txt (3.1 KB)

I will look at it.

1 Like