Type of interrupt

I am trying to design speedometer using Arduino nano. The interrupt pin 2 will be pulled high internally. I would be using a reed switch connected between the interrupt pin and negative/ground. Every time the magnet passes the reed switch pin 2 will be momentarily pulled to ground.
What type of interrupt mode should be used Low, Change, Rising or Falling?

Falling. But beware of switch bounce.

1 Like

they usually bounce. using a Hall Effect Sensor will make your life easier


to your question

so it goes from HIGH to LOW, so it's FALLING

1 Like

+1 one to that. I've used this one with great success in a POV project.

If we assume there is no switch bounce( I will use hall sensor), if mode Change is used would there be double triggering?

Mode change triggers an interrupt on switch close and switch open.

The reed switch can also be triggered by vibration of the switch at it's resonant frequency. This happens on occasion with my anemometer.

1 Like

Interesting - never got that but that makes sense

Very much.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.