Hi there - My son and I created a little program for his mBot and clicked upload to Arduino. When we did that the program ran (it was the Happy Birthday song code in your training manual). However, we can’t figure out how to have the mBot do it again without hitting “Upload to Arduino” again. Are we missing something? And if we create a second program, how do we pull up the first one on the mBot?
Uploading program to mBot question
Andreas
#2
The program will run immediately after you power on the bot. Unless you let it terminate, it will run permanently. For example, put the song code into a forever loop and it will play forever.
The program will stay in memory until you replace it. Even if you turn off power.
ajohnson11
#3
Thank you Andreas. How do I get the robot to run that program when I unplug it from the USB cable?
Andreas
#4
In Arduino mode, it starts immediately after you upload it, and also after you turn on the robot.
There is a small white button near the USB port labeled “reset”. If you push that button it will run whatever program is in memory again.