I'm working with this code to detect off-time of the pulse, but it is only working for 0.76 seconds and lower time, it is not working for the higher time e.g. 0.95 seconds. Can anyone please help me that how can I do it for higher off-time too. I tried replacing "unsigned long" to "float" data type but still same problem. Also I want the Arduino to generate a pulse when this duration becomes greater than 0.9 sec and no pulse is detected. HElp in this regard will be highly appreciated.
Thank you so much. It worked. can u please help in the second matter too? i.e. how to generate a pulse when a particular duration passes and no external pulse is detected?
Ohh okay okay. The issue is also resolved. Thank you for your help. Actually I m new to any forum and new to programming too therefore there are such mistakes. I'll take care of this next time Thank you.