But if the board loses power the program is gone next time I supply power
Are you sure? That is not how the arduino works. It retains the program until you replace it, whether it is powered or not.
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16