Anyone know how to let Arduino count the time when the pin is high and stop when pin is low?
Anyone know how to let Arduino count the time when the pin is high and stop when pin is low?
Yes.
There is a pulseIn() function that works well for timing pins that have externally-applied signals, but that does not seem to apply to your case, based on your other post.
Thanks PaulS
Yup, I dont think the function do work for me. But thanks for letting me know more function and reply for this post.
Regards
zheng koon