I've created a fan controller which monitor the speed of several Noctua fans (only one tacho pin connected), and it works fine with one set of fans connected to D5 (yellow wires).
But when adding another fan tacho to D7 (orange), I am getting spurious reading, in the range of many tens of thousands (for a 1200rpm fan). This second fan connected to D7 (orange) is powered via a PoE splitter, which I can toggle by enabling/disabled PoE power to that port.
My question is, looking at eh Noctua datasheet, should I have bonded the ground from the second fan (orange tacho) to the main board?
I'm happy to post the code next, but it's all tabs and I'll need to reformat it. I'm using internal pullup resistors, and interrupts to measure the falling edge. It works fine with the yellow connected tacho signal.
UPDATE 08-12-2022 added code below as suggested.




