Running main.py on boot (external power supply)

Hi,

I’m trying to auto-run the main.py script on startup, and it works fine when plugging in the OpenMV cam to a USB port on my pc. However, when I try to turn on the board with an external power supply it doesn’t appear to be running the code. Is there a difference in how the board boots up given USB power vs an external power supply?

Thanks,
Greg

No, there’s no difference. Can you verify your script was saved to the camera correctly? You should see your script as mian.py on the camera’s file system.

Hi,

We solved the problem - it had to due with a hidden ._main.py file being saved on the board when someone tried to delete an old main.

Thanks,
Greg