ATMEGA2560 Delay not work ok
Posted: Thu Feb 09, 2023 5:53 pm
Hi guys.
I have a problem with the delay of an arduino Mega2560.
Initially the program was doing it for an Arduino Nano and everything is correct and works fine.
Changing the destination no longer works well on the arduino Mega.
To do tests I have made a new program and I have only set one output to blink with 100ms ON and 100ms OFF.
The result is that it is 2sec ON and 2sec OFF and it is not a correct job because sometimes it is 2sec and other times 1.5sec, there is something very strange.
I think the clock is not working well or there is some problem.
Does anyone have a similar problem?
Thank you
I have a problem with the delay of an arduino Mega2560.
Initially the program was doing it for an Arduino Nano and everything is correct and works fine.
Changing the destination no longer works well on the arduino Mega.
To do tests I have made a new program and I have only set one output to blink with 100ms ON and 100ms OFF.
The result is that it is 2sec ON and 2sec OFF and it is not a correct job because sometimes it is 2sec and other times 1.5sec, there is something very strange.
I think the clock is not working well or there is some problem.
Does anyone have a similar problem?
Thank you