Running main.py on boot (external power supply)

Discussion related to "under the hood" OpenMV topics.
gregjeffrey
Posts: 3
Joined: Wed Mar 21, 2018 9:31 am

Running main.py on boot (external power supply)

Postby gregjeffrey » Thu Apr 05, 2018 3:27 pm

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
User avatar
kwagyeman
Posts: 2113
Joined: Sun May 24, 2015 2:10 pm

Re: Running main.py on boot (external power supply)

Postby kwagyeman » Thu Apr 05, 2018 5:18 pm

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.
Nyamekye,
gregjeffrey
Posts: 3
Joined: Wed Mar 21, 2018 9:31 am

Re: Running main.py on boot (external power supply)

Postby gregjeffrey » Thu Apr 05, 2018 7:30 pm

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

Return to “Technical Discussion”

Who is online

Users browsing this forum: No registered users and 4 guests