ATMEGA2560 Delay not work ok

An area to discuss AVR and Arduino specific problems and examples

Moderator: Benj

Post Reply
tello
Posts: 94
Joined: Wed Jan 16, 2013 11:37 am
Has thanked: 56 times
Been thanked: 16 times
Contact:

ATMEGA2560 Delay not work ok

Post 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

chipfryer27
Valued Contributor
Valued Contributor
Posts: 666
Joined: Fri Jun 06, 2014 3:53 pm
Has thanked: 184 times
Been thanked: 203 times
Contact:

Re: ATMEGA2560 Delay not work ok

Post by chipfryer27 »

Hi

Can you post your program with the problem?

Regards

tello
Posts: 94
Joined: Wed Jan 16, 2013 11:37 am
Has thanked: 56 times
Been thanked: 16 times
Contact:

Re: ATMEGA2560 Delay not work ok

Post 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

Post Reply