Easyest way for a arduno interrupt to call a funtion? Answered
Hi, I am trying to build a arduino speedometer for my go kart. I need a function that is called everytime a pin goes from low to high using a reed switch.
The curcumfrence of the wheel is about 1m.
The absoltue maximum this kart will be able to go is about 100km/h (28m/s).
So the arduino pin will need to be able to be read 28 times every second.
What is th best way to make the arduino call a function on a pin that needs to be read at least 28 times per second?