I have code I have written and saved as a sketch. It will control lights all over my model railroad. I do not want to have to reload the program to the Uno every time I turn the railroad layout on. I would like the Uno to start running the sketch when the railroad is powered up without loading the sketch from a computer. I see where you can save data to the EEPROM, but I want to save the sketch onboard the Uno, not data. Can this be done?
Yes, this is how it always works. When you upload the sketch to the Uno it's saved in the non-volatile flash memory. So you don't need to do anything special. Just use the Uno as usual.
I just tried it and it did work as you said. I thought it needed to be re-loaded every time you powered the board up. Happy to see you don't. Thanks.
Please just run a simple experiment. Then you'll understand that there is no need to upload every time you power up the Uno.
(deleted)
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.