Mega with external PSU needed serial monitor to start

Hi, my project with a Mega is just about finished, so I tried to power it in stand-alone mode. No go, it wouldn’t start until I connected the serial monitor via USB. Searching here, I found a post (in Swedish) from a decade ago, where there was a suggestion to add a 10µF “elco” to Reset & Gnd. 10µF wasn’t enough: 47µF works fine!

For info, I use a 12V/5A external supply, into a 7809 regulator with its output into the VIN of the Mega. I have 4, 100mm 7-segment displays connected via 12V driver ICs (no multiplexing), plus an MP3 module, & another Uno (VIN to VIN) for giving pulses to the Mega. It’s maybe a lot, but nothing gets hot :slight_smile:

Please post your sketch here, using code tags when you do

Do you by any chance have a line of code in setup() checking for the value of Serial ?

Do you have capacitors on the input and output side of the 7809? They are usually needed for stability. A 0.33µF to 0.47µF (330-470nF) on the input, 0.1µF (100nF) on the output.

A 47µF seems awfully high to suppress reset on connection to serial.

Nothing silly, like while (!Serial) in setup().

A Mega can safely run from 12volt on Vin or the DC socket (no 7809 needed).
Assuming the 12volt supply is 'clean' and no large current is drawn from any pin of the Mega.
Leo..

When I started playing with Arduinos, I found out about the power business here:

< How do I power my Arduino? >

They suggest 9V.

Regards,

R

Are you going to post your sketch ?

Hi, this is at least my 3rd project where I forgot those caps on the regulator! Maybe I should RTFM!

The 47µF works when a 10µF doesn’t This is the first time I’ve had to do that.

There is no need of serial for the stand-alone version. I know that sketches restart when the serial monitor starts up. Not the problem here.

Regards,

R

Hi, no, not necessary. I spent yesterday getting the last few bugs out, & after fixing the POR problem, it runs as I want.

Regards,

R