MicroPython
2026 Edition. A comprehensive guide to MicroPython for microcontrollers. Learn how to run a full Python 3 interpreter on bare-metal hardware.
Episodes
The Python that Fits in 256K
3m 54sDiscover how MicroPython squeezes a full Python 3 interpreter into bare-metal microcontrollers. We explore its core identity, its differences from CPython, and how it manages to run in highly constrained environments.
The Hardware Bridge: The machine Module
3m 47sLearn how to control microcontroller peripherals directly from Python. We dive into the machine module, exploring how to interact with Pins, PWM, and raw memory.
Live Coding the MCU: REPL and mpremote
3m 39sRevolutionize your embedded development workflow. We cover the MicroPython REPL and the mpremote command line tool for automating serial connections and live execution.
Three Lines to WiFi: The network Module
3m 41sTransform a microcontroller into a connected IoT node. We explore the network module, detailing how to connect to WiFi as a station or host your own Access Point.
Surviving the Constraints: RAM and the GC
3m 25sMaster the art of writing memory-efficient Python. We discuss heap fragmentation, pre-allocating buffers, and manual garbage collection to keep your microcontroller running smoothly.
Compiled vs. Frozen: Deploying to Production
3m 47sLearn how to deploy massive applications without running out of RAM. We explore pre-compiled .mpy files and freezing bytecode directly into the microcontroller's flash memory.
Determinism in Python: Timers and Interrupts
3m 44sAchieve real-time behavior in MicroPython using hardware timers and interrupt service routines. We cover the strict rules of writing ISRs and avoiding memory allocation.