Can a common Microcontroller Development Board run Python?

Ordinary development boards are definitely not working.

There are currently attempts to develop microcontroller development board computer programs in python language on the market, but it is not suitable for most products. Why?

Simple, it adds to the cost of hardware.

Although Python is a kind of advanced programming language that is easy to learn and use, it is necessary to have some understanding of hardware circuits to develop applications by using Python on a microcontroller development board.

Being able to use python is bound to be more complex in product functions and needs to go up to the Linux level.

The following is an approximate inventory. In order for the microcontroller development board to support Python development, the following conditions need to be met:

1. Processor Performance and Memory

Python interpreters and libraries require sufficient processor performance and storage capacity to function properly.

Therefore, microcontroller development boards need to use high performance and large enough memory space, such as ARMCortex-M series processors or similar processors.

2. Operating System Support

In order to run Python on a microcontroller development board, the corresponding operating system support is required.

For example, some monolithic processors can use the Linux operating system and install Python interpreters and libraries on this basis.

3. Python Interpreters and Libraries

In order to support Python language development, it is necessary to have a Python interpreter and library suitable for MCU.

For example, MicroPython is a Python interpreter designed for microcontrollers, which is suitable for some high-end microcontroller development boards.

Learn MicroPython:

4. Appropriate toolchain and development environment

The development of the Python application programs by the microcontroller development board needs to support the corresponding tool chain, development environment, or integrated development environment (IDE).

For example, you can use MicroPython to write Python code and use the MicroPython firmware burning tool to burn the code onto a microcontroller development board.

5. Appropriate Interface and Peripheral Support

SCM needs to provide a proper interface and peripheral support for communication and interaction with other devices.

For example, a microcontroller development board needs to support interfaces such as serial communication, I2C bus, and SPI bus, and peripherals such as sensors, LEDs, and LCDs.

6. Hardware Security

Because Python is an interpretative language, the microcontroller development board needs to have enough hardware security features to protect the system from malicious code.

For example, a microcontroller development board needs to provide security functions such as a hardware encryption module and memory protection.

7. Good community support

Microcontroller development board support for Python development requires good community support in order to obtain resources such as documentation, code examples, software tools, and technical support.

For example, the MicroPython community provides a large number of documents, code examples, and technical support to help developers get started and develop Python applications quickly.

Python’s performance is slower than other programming languages, such as C/C++, in terms of program execution efficiency, so perhaps C and assembly are the best choices in applications that require high performance.

For product real-time, it is undoubtedly better to get closer to the underlying language. For example, assembly, C language is the mainstream.

Leave a Comment

Your email address will not be published. Required fields are marked *

en_USEnglish
Scroll to Top