arXiv:2608.18160cs.PLcs.CL2026-08

Python正悄然进入嵌入式领域,助力物联网与机器人开发。

MicroPython and CircuitPython: Pythons Quiet Takeover of IoT and Robotics

  • 用MicroPython和CircuitPython让Python运行在微控制器上
  • 性能比C慢10-20倍但满足常见传感与联网需求
  • 教育场景推动普及,适合初学者与快速原型设计

Python已成为软件与数据科学的主流语言,但嵌入式系统长期依赖C/C++以应对性能与内存限制。MicroPython和CircuitPython通过将Python引入微控制器,降低了物联网与机器人开发的门槛。本文通过混合方法研究,分析了GitHub、Stack Overflow和Google Trends数据,整理了来自Hackster.io、Hackaday.io及Adafruit学习系统的案例,并在ESP32和Raspberry Pi Pico上对MicroPython、CircuitPython与Arduino C++进行了原生基准测试,涵盖GPIO、I2C、SPI、Wi-Fi及内存使用。结果显示,MicroPython支持超200款开发板,CircuitPython支持超400款;基准测试表明,其输入输出速度比C慢10-20倍,内存占用高4至6倍,但足以胜任常见传感器与网络任务。案例展示其成功应用于家庭自动化、机器人、可穿戴设备、农业及专业原型开发。教育成为主要驱动力。结论:Python并未取代C/C++,而是成为嵌入式系统中默认的原型设计与教学语言。未来硬件改进、工具优化与标准化将进一步推动这一趋势。文章为开发者、教育者与技术决策者提供基于证据的洞见。

原文摘要 · Abstract (English)

Background: Python has become the dominant language in software and data science, yet embedded systems have remained tied to C/C++ due to performance and memory constraints. MicroPython and CircuitPython are changing this by bringing Python to microcontrollers, lowering barriers for IoT and robotics development. Aim: This article examines whether these platforms are achieving a quiet takeover of embedded systems, focusing on ecosystem growth, practical applications, performance trade-offs, educational adoption, and prospects. Methods: A mixed-methods design was used, including quantitative analysis of GitHub, Stack Overflow, and Google Trends data; curation of case studies from Hackster.io, Hackaday.io, and the Adafruit Learning System; and original benchmarks on ESP32 and Raspberry Pi Pico comparing MicroPython, CircuitPython, and Arduino C++ across GPIO, I2C, SPI, Wi-Fi, and memory usage. Results: Metrics show sustained growth, with MicroPython supporting over 200 boards and CircuitPython over 400. Benchmarks reveal 10-20 times slower I/O and four to six times higher memory use than C, but performance remains adequate for common sensor and network tasks. Case studies demonstrate successful deployment in home automation, robotics, wearables, agriculture, and professional prototyping. Education emerges as a primary adoption driver. Conclusions: Python is not replacing C/C++; rather, it is becoming the default prototyping and educational language for embedded systems. Continued hardware improvements, better tooling, and standardization will likely deepen this trend. The article offers balanced, evidence-based insights for developers, educators, and technology decision-makers.

嵌入式Python物联网教育

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。