Two flow meters


#1

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


#2

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


#3

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


#4

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


#5

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


#6

The sensors are connected to pins 2 and 3.

Two Flow sensors.txt (2.8 KB)


#7

Hello tad.dvor

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


#8

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


#9

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


#10

ok, But the code arduino is similar?


#11

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


#12

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


#13

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


#14

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)


#15

I will look at it.