Hi. I would like to ask if it is possible to connect multiple sensors in a single pin in an arduino, given that I will only be using it one at a time. I have an arduino nano and I am planning on using 4 flow sensors. I just found out that it uses hall effect, thus the need for interrupts so that it can immediatly detect the change in signal. But the uno/nano only has 2 interrupt pins so I plan on paralleling 2 sensors in one pin, similar to the drawing attached. A signal diode will be placed between the pin and sensors so that the signal of one sensor wont go to the other, hoping that the voltage drop wont affect the signal too much. Is it possible? Thank you very much in advance.
Try this sketch and study the coding.
I love the usage of arrays and structs. The sketch is scanning three input pin with update rate of 100hz and act on changes. You may have to modify to four pin very easy.
Don´t hesitate to ask in case of questions.