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
ATMEGA2560 Delay not work ok
Moderator: Benj
-
- Valued Contributor
- Posts: 688
- Joined: Fri Jun 06, 2014 3:53 pm
- Has thanked: 185 times
- Been thanked: 204 times
- Contact:
-
- 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
Thanks chipfryer27
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
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