Problems with uploading my code

Hello!

I have this weird problem with my project. To make long things short, I can't turn on the robot without keeping the USB port plugged in and connected to my laptop, which will automatically run the program, no matter which app I run on it. On the other hand, if I don't plug in the USB, the robot will never start doing anything.

I suspect the code is not uploaded on the flash memory. Do you thing there is another cause? Functions which I don't appeal? Missing pieces? Programs which I forgot to download?

Thank you very much for your help!

P.S. The site from which I bought the kit is: 25+ Kituri Roboti pentru Incepatori si Avansati - Robofun.ro (The site is in romanian, I hope this is not a big issue)

P.S.S: The code is: https://www.robofun.ro/docs/flexybot-mare-4motoareobstacole.ino

andrei1234:
I suspect the code is not uploaded on the flash memory.

If the code is not uploaded on the flash memory then the microcontroller doesn't run the code. It can never run code that is only on your computer.

If it works when connected to USB, the code is uploaded.

How do you power the Arduino if it's not connected to the laptop?

sterretje:
How do you power the Arduino if it's not connected to the laptop?

Battery pack?

.