In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
MicroPython technology and application definition is what, many novices are not very clear about this, in order to help you solve this problem, the following small series will explain in detail for everyone, there are people who need this can learn, I hope you can gain something.
MicroPython is a very compact and efficient implementation of Python 3, containing a small portion of the Python standard library, running on single-chip computers and in restricted environments.
1.1 MicroPython Development
By theoretical physicist George W. Damming design, following MIT license agreement, similar to Arduino, with its own parser, compiler, virtual machine and class library, MicroPython is more powerful. At present, it supports ARM processors based on 32-bit, such as STM32F405, STM32f407, etc., that is to say, the ARM processor STM32F405 can directly run Python language, and use Python language to control the microcontroller. Python can be run on the microcontroller, in fact Python has been completely out of the system, that is, you can develop microcontroller programs through Python scripting language.
1.2 MicroPython supported chips
The supported MCUs are: STM32F405, STM32F407, ESP8266, STM32F103 and ESP32 will be enhanced next, and the chip will be extended to FPGAs and A7.
1.3 MicroPython firmware
Firmware is programs written into EROM (Erasable Read-Only Memory) or EEPROM(Electrically Erasable Programmable Read-Only Memory). It refers to the device "driver" stored inside the device. Through firmware, the operating system can realize the operation action of a specific machine according to the standard device driver, such as optical drive, recorder or mobile phone, etc.
It consists essentially of:
py/--Core Python implementation, including compiler, runtime, and core libraries.
mpy cross/--Micropyhon cross-compiler for converting scripts to precompiled bytecode.
ports/unix/--version of MSI running on unix.
ports/stm32/--Version of Micropyhon running on Pyboard and similar stm32 boards (using st's cube-hal driver).
ports/minimal/--The smallest Micropython port.
tests/--Test frameworks and test scripts.
docs/--user documentation in sphinx format. The rendered HTML document can be found at http://docs.tpyboard.com.
other components
ports/bare-arm/--Minimum MicroPython version for ARM MCUs. Mainly used to control code size.
ports/teensy/--MicroPython version running on teensy 3.1 (preliminary but functional).
ports/pic MicroPython version of 16bit/--16 bit pic microcontroller.
ports/cc3200/--Version of Micropython running on TI's cc3200.
ports/esp8266/--A version of MicroPython running on esp8266 soc of espresso.
ports/esp32/--MicroPython version running on esp32 soc of espresso.
ports/nrf/--Version of MicroPython running on nrf51 and nrf52 mcu.
extmod/--Additional (non-core) modules implemented in C.
tools/--Various tools
example/--Several Python script examples.
The latest version of Micropython is 1.94. TPYBoard adds common interface drivers such as display screen and infrared, which can be used directly.
1.4 What is TPYBoard?
The TPYBoard is a compact circuit board capable of running MicroPython bare-metal, providing the underlying Python operating system for controlling various MCU interfaces. Is radish design support Micropython development board, the first piece of independent utility model patents and trademarks, can run MicroPython MCU.
MicroPython includes advanced features such as interactive hints, arbitrary precision integers, closings, list parsing, generators, exception handling, and more. It is suitable for running on chips with only 256k code space and 16k RAM. MicroPython is designed to be as compatible as possible with regular Python, allowing you to easily transfer code from your desktop to a microcontroller or embedded system.
Current TPYBoard Yes
V10x-Mainly basic TPYBoard development board.
V201-local area network communication, TPYBoard development board with LAN port.
V202-WiFi communication, TPYBoard development board supporting WiFi module.
V702-TPYBoard development board for telecommunication, SIM card support.
2 What MicroPython Can Do
Since MicroPython is a Python language that can control a microcontroller, what a microcontroller can do basically reflects what it can do. Or let's see what a microcontroller can do together?
At present, SCM penetrates into all fields of our life, and it is almost difficult to find which field has no trace of SCM. Missile navigation device, control of various instruments on aircraft, computer network communication and data transmission, real-time control and data processing of industrial automation process, widely used various intelligent IC cards, safety guarantee system of civil luxury cars, video recorder, video camera, automatic washing machine control, as well as program-controlled toys, electronic pets, etc., all of which cannot be separated from single-chip microcomputer. Not to mention robots, smart meters, medical devices and all kinds of intelligent machinery in the field of automatic control. Therefore, the study, development and application of single-chip microcomputer will bring up a group of scientists and engineers with computer application and intelligent control. SCM is widely used in instrumentation, household appliances, medical equipment, aerospace, special equipment intelligent management and process control and other fields, can be roughly divided into the following categories:
2.1 Intelligent instruments
SCM has the advantages of small size, low power consumption, strong control function, flexible expansion, miniaturization and convenient use. It is widely used in instruments and meters. Combined with different types of sensors, it can measure physical quantities such as voltage, current, power, frequency, humidity, temperature, flow, speed, thickness, angle, length, hardness, element and pressure. The instrument is digitized, intelligent and miniaturized by using SCM control, and its function is more powerful than that of electronic or digital circuit. Such as precision measuring equipment (voltmeter, power meter, oscilloscope, various analyzers).
2.2 Industrial control
Single chip microcomputer has the advantages of small volume, strong control function, low power consumption, strong environmental adaptability, flexible expansion and convenient use. Single chip microcomputer can be used to form various control systems, data acquisition systems, communication systems, signal detection systems, wireless sensing systems, measurement and control systems, robots and other application control systems. For example, intelligent management of factory assembly lines, intelligent control of elevators, various alarm systems, and computer networking to form a secondary control system. In the industrial trap detection has been to the substantive promotion of the application.
2.3 Household appliances
The current household appliances are widely controlled by single-chip microcomputer, from rice cookers, washing machines, refrigerators, air conditioners, color TVs, other audio and video equipment, to electronic weighing equipment and white goods.
2.4, networking and communications
Modern MCU generally has a communication interface, can be very convenient to communicate with the computer data, for the application between computer networks and communication equipment provides excellent material conditions, now the communication equipment is basically realized MCU intelligent control, from mobile phones, telephones, small program-controlled exchanges, building automatic communication call system, train wireless communication, and then to daily work everywhere mobile phones, trunking mobile communication, radio interphones and so on.
2.5 Medical equipment field
SCM is also widely used in medical equipment, such as medical ventilators, various analyzers, monitors, ultrasonic diagnostic equipment and bed call systems, etc.
2.6 Modular systems
Some dedicated microcontrollers are designed to achieve specific functions, so that modular applications in various circuits do not require users to understand their internal structure. Such as music integrated microcontroller, seemingly simple functions, miniature in pure electronic chips (different from the principle of tape drive), it requires complex computer-like principles. For example, music signals are stored in digital form in memory (similar to ROM), read out by the microcontroller, and converted into analog music electrical signals (similar to sound cards). In large circuits, this modular application greatly reduces the size, simplifies the circuit, reduces the damage, error rate, and is easy to replace.
2.7 Automotive electronics
SCM is widely used in automotive electronics, such as engine controller in automobiles, intelligent electronic controller of automobile engine based on CAN bus, GPS navigation system, ABS anti-lock system, brake system, tire pressure detection, etc.
2.8 Other
SCM in industry and commerce, finance, scientific research, education, power, communications, logistics and defense aerospace and other fields have a very wide range of uses.
In education, Python language features have also been substantially promoted in youth programming education.
Did reading the above help you? If you still want to have further understanding of related knowledge or read more related articles, please pay attention to the industry information channel, thank you for your support.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.