0

I'm trying to build the Keyestudio mecanum 4WD car for pico for a summer camp I run for high schoolers. I have no programming knowledge or background, and neither do the kids. I've been following the tutorials they provided on their wiki page: https://www.dropbox.com/sh/tit7yi7vhcev1yw/AACmUnWLQR2zTM841MCt50PLa?dl=0

I've gotten all the MicroPython codes into the Thonny IDE, and can run while it's connected, but I can't get it to run when it's simply turned on, unless I leave it running in the IDE and just unplug it. I've tried saving it as main.py, and that doesn't seem to work. What's more, I can't get it to run multiple codes (programs?) at once. For example, I'd like the line tracking to run, while also being able to use the IR remote. not sure if that's possible, but I'd like it to at least run the remote on start-up.

Many thanks! I've been reading everything I can, and would love to learn this on my own, but I'm on a time crunch as the camp starts in 2 weeks, and I'm way out of depth!

1 Answers1

0

Saving as main.py on the Pico should cause the program to run on startup. Test by just flashing the on board LED.

You would need to combine your multiple codes into either one program or one program that calls functions in other imports.

CoderMike
  • 7,102
  • 1
  • 11
  • 16