Tutorial AutoRun

From Sketching with Hardware at LMU Wiki
Revision as of 09:37, 17 August 2020 by Skwhadmin (talk | contribs) (Created page with "= Run your MicroPyton code directly at Boot-up of ESP32/ESP8266 = In this part of the tutorial, we talk about the boot process and how to start your own code at boot-up time....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Run your MicroPyton code directly at Boot-up of ESP32/ESP8266

In this part of the tutorial, we talk about the boot process and how to start your own code at boot-up time. For this, we show how to use 'main.py' as entry point. We have an example how to use a Pin/switch to select whether to boot into your code or to not start a program.

We also look at how to use the uPyCraft IDE when autorun code, basically how to connect with Putty (or any terminal program) to remove main.py to be able to connect again with uPyCraft IDE.

Success criteria

  • you understand the boot process works (boot.py then main.py)
  • you have written some code and configured the ESP32 so that it is executed at boot time automatically
  • you have written a main.py that allows to select whether to boot into your code or not


Instructional Videos

How to Autorun MicroPython code

This shows how to use main.py as entry point to shart your MicroPython code. It looks at how to stop a running program with a terminal program (e.g. Putty). We introduce how to add a boot selector switch.

There is a video on Youtube (29:23) that shows the software: https://youtu.be/kzgUN_h1bqw