Page 1 of 1

ATMEGA2560 Delay not work ok

Posted: Thu Feb 09, 2023 5:53 pm
by tello
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

Re: ATMEGA2560 Delay not work ok

Posted: Thu Feb 09, 2023 6:37 pm
by chipfryer27
Hi

Can you post your program with the problem?

Regards

Re: ATMEGA2560 Delay not work ok

Posted: Fri Feb 10, 2023 8:37 am
by tello
Thanks chipfryer27 :D :D :D
My friend Eduardo last night helped me see that I didn't have the fuses configured correctly and that's why the oscillator didn't work correctly.
I have loaded the bootloader again and used the USB port to load the program and now it works correctly.

But I have a new problem, my friend Eduardo doesn't use Flowcode and he doesn't know how to help me.

I open a new thread so as not to confuse with this problem solved.

Thank you again