Will Arduino execute code automatically

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
brandontod97
 
Posts: 11
Joined: Thu Nov 19, 2015 2:46 pm

Will Arduino execute code automatically

Post by brandontod97 »

I'm working on project with an arduino micro.

My Question:
Once I upload my code to the arduino, if power is lost, when power is supplied again will the arduino auto execute the last uploaded code?

I don't want to have to plug it into a computer every time power is lost to re-upload code.

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Will Arduino execute code automatically

Post by adafruit_support_bill »

Yes. The processor will come up in the bootloader. If there is no upload started within a few seconds, it will resume running the last program uploaded.

User avatar
brandontod97
 
Posts: 11
Joined: Thu Nov 19, 2015 2:46 pm

Re: Will Arduino execute code automatically

Post by brandontod97 »

Thanks !!!

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”