adwnis123
Full Member level 4
Hello,
I use an Arduino nano. In the digital input 2, I send rectangular pulses, which means I have only two levels: 0 Volts and 5 Volts. I want to measure the duration of a pulse from the time the pulse rises to the time it falls. Of course, Arduino nano cannot support nanosecond accuracy, so I would like to measure the ON (5 Volts) level of the pulse in microseconds level accuracy. How do I realize this? Is there any example code I could follow in order to make this feasible?
I use an Arduino nano. In the digital input 2, I send rectangular pulses, which means I have only two levels: 0 Volts and 5 Volts. I want to measure the duration of a pulse from the time the pulse rises to the time it falls. Of course, Arduino nano cannot support nanosecond accuracy, so I would like to measure the ON (5 Volts) level of the pulse in microseconds level accuracy. How do I realize this? Is there any example code I could follow in order to make this feasible?