Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the prospect of MicroPython technology and its application

2025-03-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces MicroPython technology and its application prospect to you. The content is very detailed. Interested friends can use it for reference. I hope it will be helpful to you.

1 what is the Micropython technology?

MicroPython implements the Python3 language very succinctly and efficiently. It contains a small part of the Python standard library and can run in single-chip computers and limited environments.

1.1 MicroPython development

George, a theoretical physicist at the University of Cambridge. Daming design, following the MIT license agreement, similar to Arduino, has its own parser, compiler, virtual machine and class library, etc., MicroPython is more powerful. At present, it supports 32-bit-based ARM processors, such as STM32F405, STM32f407, etc., that is to say, ARM processor STM32F405 can run Python language directly, and use Python language to control the single-chip microcomputer. Can run Python on the single-chip microcomputer, in fact, Python has been completely separated from the system, that is, you can develop single-chip microcomputer programs through the Python scripting language.

1.2 chips supported by MicroPython

Supported mcu series are: stm32f405, stm32f407, also support esp8266, and then will enhance the stability of stm32f103 and esp32, the chip will be extended to FPGA and A7.

1.3 MicroPython firmware

Firmware is a program written to EROM (erasable read-only memory) or EEPROM (electrically erasable programmable read-only memory). It refers to the device "driver" stored inside the device, through the firmware, the operating system can realize the operation of a specific machine according to the standard device driver, such as optical drive, burner, mobile phone and so on.

It mainly consists of the following:

Py/-- core python implementation, including compiler, runtime, and core libraries.

Mpy cross/-- is a Micropyhon cross-compiler used to convert scripts into precompiled bytecode.

The MSI version of ports/unix/-- that runs on unix.

Ports/stm32/-- runs on Micropyhon versions of Pyboard and similar stm32 boards (using st's cube-hal driver).

The smallest Micropython port for ports/minimal/--.

Tests/-- test framework and test scripts.

User documentation in docs/--sphinx format. The rendered HTML document can be found on http://docs.tpyboard.com.

Other components

Ports/bare-arm/-- is used for the minimum MicroPython version of ARM MCU. It is mainly used to control the code size.

Ports/teensy/-- runs on the MicroPython version of teensy 3.1 (preliminary but functional).

The MicroPython version of the ports/pic16bit/--16-bit PicPicMicrocontroller.

The Micropython version of ports/cc3200/-- that runs on the cc3200 of TI.

Ports/esp8266/-- runs on the MicroPython version of espressf's esp8266 soc.

Ports/esp32/-- runs on the MicroPython version of espressf's esp32 soc.

The version of MicroPython that ports/nrf/-- runs on nrf51 and nrf52 mcu.

Additional (non-core) modules implemented by extmod/-- in C #.

Various tools for tools/--

Example/-- several examples of Python scripts.

The latest version of Micropython is 1.94. TPY Board adds display screen, infrared and other common interface drivers to use these devices directly.

1.4 what is TPYBoard?

TPYBoard is a compact circuit board that can run MicroPython in bare metal, which provides the underlying Python operating system for controlling various single-chip microcomputer interfaces. It is a development board designed by radish to support MicroPython.

MicroPython includes advanced features such as interactive prompts, arbitrary precision integers, close, list parsing, generator, exception handling, and so on. Suitable for running on chips with only 256k code space and 16k RAM. MicroPython is designed to be as compatible with normal Python as possible, allowing you to easily transfer code from your desktop to a microcontroller or embedded system.

The current TPYBoard has

V10x-mainly the basic TPYBoard development board.

V201-Local area network communication, TPYBoard development board with LAN network port.

V202-wifi communication, TPYBoard development board that supports wifi module.

V702-TPYBoard development board for long distance communication and supporting SIM card.

2. What can MicroPython do?

Since MicroPython can control the single-chip microcomputer with Python language, what the single-chip microcomputer can do can basically reflect what it can do. Or let's take a look at what the monolithic machine is doing?

2.1 Intelligent instrument

Single-chip microcomputer has the advantages of small size, low power consumption, strong control function, flexible expansion, miniaturization and easy to use, so it is widely used in instruments, combined with different types of sensors. it can realize the measurement of physical quantities such as voltage, current, power, frequency, humidity, temperature, flow, speed, thickness, angle, length, hardness, element, pressure and so on. The use of single-chip microcomputer control makes the instrument digital, intelligent, miniaturized, and the function is more powerful than the use of electronic or digital circuits. For example, precision measuring equipment (voltmeter, power meter, oscilloscope, various analyzers).

2.2 Industrial control

Single-chip microcomputer has the advantages of small size, strong control function, low power consumption, strong adaptability to the environment, flexible expansion and convenient use. Single-chip microcomputer can be used to form various forms of control system, data acquisition system, communication system, signal detection system, wireless sensing system, measurement and control system, robot and other application control systems. For example, intelligent management of factory assembly line, intelligent control of elevators, various alarm systems, networking with computers to form a secondary control system, and so on. The detection of industrial trap has been substantially popularized and applied.

2.3 Home Appliances

Now household appliances are widely controlled by single-chip microcomputer, from rice cookers, washing machines, refrigerators, air conditioners, color televisions, other audio and video equipment, to electronic weighing equipment and white goods.

2.4 Network and Communication

Modern single-chip microcomputer generally has a communication interface, which can easily communicate with computers, which provides excellent material conditions for the application between computer networks and communication equipment. Today's communication equipment basically realizes the intelligent control of single-chip microcomputer, from mobile phones, telephones, small program-controlled exchanges, building automatic communication and call systems, train wireless communications, to mobile phones that can be seen everywhere in daily work. Trunking mobile communication, walkie-talkie, etc.

2.5 the field of medical equipment

Single-chip microcomputer is also widely used in medical equipment, such as medical ventilator, various analyzers, monitors, ultrasonic diagnostic equipment and hospital bed calling system and so on.

2.6 Modular system

Some special single-chip microprocessors are designed to achieve specific functions, so as to carry out modular applications in various circuits without requiring users to understand their internal structure. Such as music integrated single-chip microcomputer, seemingly simple function, miniaturized in a pure electronic chip (different from the principle of tape drive), it needs a complex principle similar to that of a computer. For example, music signals are stored in memory in digital form (similar to ROM), read out by microcontrollers and converted into analog music signals (similar to sound cards). In large-scale circuits, this modular application greatly reduces the size, simplifies the circuit, reduces the damage and error rate, and is convenient for replacement.

2.7 Automotive Electronics

Single chip microcomputer is widely used in automotive electronics, such as engine controller in automobile, intelligent electronic controller based on CAN bus, GPS navigation system, abs anti-lock braking system, braking system, tire pressure detection and so on.

2.8 other

Single-chip microcomputer has a wide range of applications in industry and commerce, finance, scientific research, education, electric power, communications, logistics, national defense, aerospace and other fields.

3. Application of MicroPython

Radish Electronics is committed to the popularization and promotion of MicroPython in China, and is a professional expert in MicroPython training and application. In addition to the TPYBoard development board series, radish electronics has made substantial progress and made good achievements in the field of youth programming and industrial applications of MicroPython.

3.1 TMS wireless trap prosecution system

The TMS trap testing system successfully applies MicroPython to the industrial field, and it is a real intelligent on-line monitoring system of the trap. The system uses piezoelectric vibration detection to realize real-time quantitative monitoring of valve leakage and accurately judge the leakage point and leakage state in the system. TMS trap wireless monitoring system can efficiently monitor and diagnose the working condition of steam trap to prevent energy loss caused by leakage.

TMS wireless trap prosecution system has been successfully installed in Mengniu Dairy, Qingdao Shuangxing, Wanda Baotong, Feihe Dairy, Zunyi Tobacco Factory, Guiding Tobacco Factory and other enterprises.

About MicroPython technology and application prospects what is shared here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report