What Python Can Do with Microcontrollers
summary
MicroPython runs a real Python‑like interpreter on tiny chips and demonstrates a full interpreter fitting into as little as 16 KB on a BBC micro:bit and overall memory reductions of about 1000x versus CPython through techniques like removing reference counts, pointer tagging for small ints, and keeping code in flash. Examples include a working LED blink via REPL on an ESP8266 (Wi‑Fi MCU), sensor/controller loops with deep‑sleep battery modes, interrupt handlers, ampy/REPL tooling for file upload, and 50 ms control‑loop suitability for real‑time tasks.
AI-written summary · about
chapters (17)
- 0:00Introduction to talk
- 1:49What are microcontrollers
- 2:56Python on microcontrollers
- 4:51Why use Python
- 6:34MicroPython optimizations
- 15:42Performance considerations
- 18:49Programming style differences
- 21:58Development workflow
- 24:04Device interaction types
- 27:15Basic electronics knowledge
- 28:40Memory-efficient coding
- 30:05Writing device drivers
- 31:08Hardware interrupts
- 32:52Power management
- 34:17Debugging challenges
- 35:22Summary and conclusion
- 35:45Q&A session
