Does Arduino start automatically

Hi lads
I have a sketch saved on my Arduino and i want to power it by battery. Will my sketch run automatically when i add power?
Thanks

yes

Thanks alanth

In particular on start up the bootloader runs and waits for up to 1 second to see if its being
programmed with a new sketch, and if not it runs the existing one. This happens on power-up
or reset being pressed.

MarkT:
In particular on start up the bootloader runs and waits for up to 1 second to see if its being
programmed with a new sketch, and if not it runs the existing one. This happens on power-up
or reset being pressed.

If you install optiboot it doesn't wait on power-on, only on reset.

yes, the arduino will run your program when powered by battery,
although, like when you boot up a p.c,
and it takes a few minutes,
the arduino will take about a 2 second delay.
hope this helped

flubbersaurus:
yes, the arduino will run your program when powered by battery,
although, like when you boot up a p.c,
and it takes a few minutes,
the arduino will take about a 2 second delay.
hope this helped

I guess you didn't read or understand the prior reply?

If you install optiboot (bootloader, as used in the standard Uno board) it doesn't wait on power-on, only on reset.

retrolefty:

flubbersaurus:
yes, the arduino will run your program when powered by battery,
although, like when you boot up a p.c,
and it takes a few minutes,
the arduino will take about a 2 second delay.
hope this helped

I guess you didn't read or understand the prior reply?

If you install optiboot (bootloader, as used in the standard Uno board) it doesn't wait on power-on, only on reset.

yes i did understand it, but factory arduino's don't have optiboot.
also the person who started this topic obviously did'nt have optiboot, as he hardly knew if it had a delay or not, dont mean to be rude, sorry if i did offend you,
just replying to justify my earlier reply to this topic