Hi all,
I'm a noob in programming arduino.
I have to attach a dynamo to my arduino Nano and estimate the velocity of a wheel. All the circuitry is done.
The input of my arduino now is a square signal. I have to detect the zero-crossing for every edge of the input signal and generate an interrupt per each zero-crossing.
How can I achieve this? Can you explain me ho to write the sketch to do it?
Thanks!