Hi all, I have just bought my Elegoo 2560 Mega Most Complete Starter Kit today, I got up to tutorial 5 (digital switching) and have found something a little strange.
Initially I couldn't get the program to work, I made quadruple certain it wasn't my wiring and gave up, I also changed the program so both switches should equal on, nothing. So I gave up, unplugged it... half an hour later I wouldn't be beat, plugged it in, and suddenly it works. So I then put the original program on again and it doesn't work.
The odd trick that I'm finding is that I have to hit the reset button a number of times before the board seems to run the program, does this sound right?
If I hit reset once, 'L' turns off, program doesn't work.
If I hit reset again, 'L' stays on, program doesn't work.
If I hit reset again, but 1 to 5 times in a row, 'L' flashes once, then stays on, and the program works.
Can anyone tell me what is happenening, or should be happening here?
The red led on the cpu is following the state of operation. press & HOLD reset until the red led blinks and seeif that isn't more consistent. A cpu board takes a few seconds to restart.
Those are the Rx and Tx indicator leds which are blinking with the serial loading of the code. Normal. These leds should not blink with the reset button, only with the Serial loading of code.
Try this modification the setup which should leave the L led off.
What pattern do you see on the L led when you press reset? Is it any different if you place a jumper in the reset header and connect to ground and then remove?
What do you see with reset if you remove the external circuitry and run your code?
Does it reset reliably with the reset button press and release. I think that the L led should light up when the reset button is pressed, flash quickly when released and the bootloader runs, and then blink once before the code turns it off.
The behaviour of your Mega with reset is not normal. The code should not be hanging.
Glad this showed up while googling, confirms my Elegoo Mega 2560 is also broken and there's no point in trying to troubleshoot anymore. Unfortunately, mine is 3 years old and so unlikely to be within warranty.