I've been scratching my head all day as to why my tachometer code wasn't working, and I just realized that I could fix the issue by switching the pin (or interrupt value).
Basically, my configuration has D2 tied to interrupt INT1 and D3 tied to INT0.
Is this a normal thing to run into? Is it possible that I somehow swapped these assignments without realizing it? This is very confusing because I would have thought that these assignments would have been universal.
Are you reading the pin number from the board, or counting pins. Remember the pins start at D0. It sounds like you are counting pins starting at D1 instead of D0.
D3 as marked on the board -> INT0: Correct readings
D3 as marked on the board -> INT1: Incorrect/erratic readings
D2 as marked on the board -> INT0: Incorrect/erratic readings
D2 as marked on the board -> INT1: Correct readings
Trust me, I went over this 100 different ways to verify that I wasn't crazy. lol
Your wiring must be incorrect, but it is impossible to see the mistake from the photo. Post a hand drawn wiring diagram, with pins and connections clearly labeled.
How are the pins driven? Does the tach positively drive them to 0 or 5V or are they floating inputs and would be erratic unless there's some external or internal pullup-or-pull-down? Maybe:
Along with your hand drawn wiring diagram, please post all the code, using code tags, and describe or post a link to the electronics module connected to D2 and D3. Did you connect all the grounds?