Want to use Counter/Timer in Arduino

Sorry, I've done all I can.

Did you try the LED change I suggested so you can visualize when the message timeout happens?

1 Like

Please try the last one for me ...

yes when the motors run the LED OFF and when the motors stop, the LED remains ON

But isn't this is what you want?!?

The LED is turned ON when messages haven't been received for 5-seconds. The LED being ON corresponds with ESCs being set to NEUTRAL.

If you send a command the LED is turned off. If you don't send a command within 5-seconds, the LED goes back on again.

You want, again: "not receive the signal from the radio-link transmitter section within 5 seconds then motors should stop working"

You have to keep sending at least one valid command within 5-sec after the last or the thing will stop.

I only want to implement in my code if I will give continuously constant signals to the motors then it should not stop and if a signal breaks or loss of communication then the motors should stop and again waiting for the signal so it continuous moves ...

That is simply another of many re-statements of the same feature that you have made. Nothing different, so you're just repeating yourself. Several different valid solutions to the problem as you have expressed it, have been offered and discussed. It seems like you just refuse to accept any solution that is offered and begin repeating your plea again, over and over...

it works like a charm ... thank you soo much for your help :slight_smile:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.