I'm trying to set up a flow meter on my Arduino and it's currently connected to D32. The pin is unable to be used for interrupts, but every solution to my problem I've found so far has been done using interrupts. Does anyone have experience measuring flow using a flow meter without interrupts? More specifically, using hall effect sensors without interrupts?
I am unable to move the pin because there are 4 modules that I need to implement this for and they are all soldered to the Arduino from D32-D35 (not my doing). The code is basically incrementing a counter variable each the time the hall effect sensor in the flow meter goes off. The counter/second variable is then converted in to Litres/min
Are there any free pins with pin change interrupts you would have used if it were up to you where your flow meter pins go? If yes, just short those wires with the D32-D35 pins. You then just use those PCI-capable pins and leave D32-D35 out of your code. Problem solved.