MicroPython is based on ANSIC, and its syntax is basically the same as Python3. It has an independent parser, compiler, virtual machine and class library. Currently it supports 32-bit based ARM processors, such as STM32F401, STM32F405, and STM32F407.
MicroPython is Python that can run on a microcontroller. That is to say, you can develop microcontroller programs through the Python scripting language. It is open source under the MIT license, and authorized persons have the rights to copy, modify, distribute and sublicense. Designed by George Damien, a theoretical physicist at the University of Cambridge. Similar to Arduino, but MicroPython is more powerful. Its syntax is basically the same as Python3, and it has its own parser, compiler, virtual machine and class library. Currently it supports 32-bit based ARM processors, such as STM32F405, STM32f407, etc., which means that the ARM processor STM32F405 can directly run the Python language and use the Python language to control the microcontroller.
Micropython Development Board
Micropython has attracted the attention of many people from the moment it was born, and corresponding development boards have also come into being.
pyboard official version
Currently, there are many supported development boards, such as the official pyboard, which already has two versions: pybv10 and pybv11. This version is also called the initial version of micropython, using stm32f405 as the mcu, 1024KiB flash ROM and 192KiB RAM, with a TF card slot. The official website is www.micropython.org.
tpyboard domestic version
Tpyboard is almost the earliest dedicated development board that supports micropython in China. The official website is www.tpyboard.com. It is understood that there are basic version V0X, wifi version V202, lan version V201 and GPRS and GPS version V70X. At the same time, the website also released relatively complete Chinese documentation for tpyboard and micropython (http://docs.tpyboard.com/zh/latest/)
openmv
With the development of micropython, some special development boards have appeared, such as openmv, a development board with a camera that supports micropython. This development board uses the STM32f7 series of MCUs, which has stronger image processing capabilities. You can use a few python codes A controllable camera can be completed.
lopy
lopy is a development board based on micropyhton that supports three wireless modes: LoRa, WiFi and Bluetooth. It can be used for micro wireless gateways, alarms, and robot control. Etc., supports arduino IDE, Pymakr IDE (can't find what software it is), and supports Microsoft Azure cloud services.
What micropython can do
Since micropython uses Python language to control the microcontroller, what the microcontroller can do can basically reflect what it can do.
Let’s take a look at what the microcontroller can do?
Currently, microcontrollers have penetrated into every field of our lives. It is almost difficult to find any field without traces of microcontrollers. Missile navigation devices, control of various instruments on aircraft, computer network communication and data transmission, real-time control and data processing of industrial automation processes, widely used smart IC cards, security systems for civilian luxury cars, video recorders, The control of cameras, fully automatic washing machines, program-controlled toys, electronic pets, etc. are all inseparable from microcontrollers. Not to mention robots, smart instruments, medical equipment and various smart machines in the field of automatic control. Therefore, the learning, development and application of microcontrollers will create a group of scientists and engineers in computer applications and intelligent control.
MCUs are widely used in the fields of instrumentation, household appliances, medical equipment, aerospace, intelligent management and process control of special equipment, and can be roughly divided into the following categories:
INTELLIGENT INSTRUMENTS
MCU has the advantages of small size, low power consumption, strong control function, flexible expansion, miniaturization and ease of use. It is widely used in instruments and meters. Different types of sensors can measure physical quantities such as voltage, current, power, frequency, humidity, temperature, flow, speed, thickness, angle, length, hardness, elements, pressure, etc. The use of microcontroller control makes instruments digital, intelligent, and miniaturized, and its functions are more powerful than those using electronic or digital circuits.
For example, precision measuring equipment (voltmeter, power meter, oscilloscope, various analyzers).
Industrial Control
The single-chip microcomputer has the advantages of small size, strong control function, low power consumption, strong environmental adaptability, flexible expansion and easy use. It can be constructed with a single-chip microcomputer. Various forms of 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 elevator control, various alarm systems, and computer networking to form a secondary control system, etc.
household appliances
Nowadays, 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, etc.
Network and Communications
Modern microcontrollers generally have communication interfaces, which can easily communicate with computers, providing excellent material conditions for applications in computer networks and communication equipment. Today’s communication equipment basically realizes the intelligence of microcontrollers. Control, from mobile phones, telephones, small program-controlled switches, building automatic communication calling systems, train wireless communications, to mobile phones, trunked mobile communications, radio walkie-talkies, etc. that can be seen everywhere in daily work.
Medical equipment field
MCUs are also widely used in medical equipment, such as medical ventilators, various analyzers, monitors, ultrasonic diagnostic equipment and hospital beds Calling system and so on.
Modular system
Some special-purpose microcontrollers are designed to implement specific functions, allowing for modular application in various circuits without requiring users to understand them. internal structure. For example, a music integrated microcontroller has a seemingly simple function that is miniaturized in a pure electronic chip (different from the principle of a tape drive), which requires complex computer-like principles. For example: the music signal is stored in the memory in digital form (similar to a ROM), read out by the microcontroller, and converted into an analog music electrical signal (similar to a sound card). In large circuits, this modular application greatly reduces the size, simplifies the circuit, reduces damage and error rates, and facilitates replacement.
Automotive Electronics
MCUs are widely used in automotive electronics, such as engine controllers in cars, automotive engine intelligent electronic controllers based on CAN bus, and GPS Navigation system, ABS anti-lock braking system, braking system, tire pressure detection, etc.
In addition, microcontrollers are widely used in the fields of industry and commerce, finance, scientific research, education, electric power, communications, logistics, defense, aerospace and other fields.
The above is the detailed content of What MicroPython can do. For more information, please follow other related articles on the PHP Chinese website!

This article explains how to use Beautiful Soup, a Python library, to parse HTML. It details common methods like find(), find_all(), select(), and get_text() for data extraction, handling of diverse HTML structures and errors, and alternatives (Sel

Solution to permission issues when viewing Python version in Linux terminal When you try to view Python version in Linux terminal, enter python...

Serialization and deserialization of Python objects are key aspects of any non-trivial program. If you save something to a Python file, you do object serialization and deserialization if you read the configuration file, or if you respond to an HTTP request. In a sense, serialization and deserialization are the most boring things in the world. Who cares about all these formats and protocols? You want to persist or stream some Python objects and retrieve them in full at a later time. This is a great way to see the world on a conceptual level. However, on a practical level, the serialization scheme, format or protocol you choose may determine the speed, security, freedom of maintenance status, and other aspects of the program

Python's statistics module provides powerful data statistical analysis capabilities to help us quickly understand the overall characteristics of data, such as biostatistics and business analysis. Instead of looking at data points one by one, just look at statistics such as mean or variance to discover trends and features in the original data that may be ignored, and compare large datasets more easily and effectively. This tutorial will explain how to calculate the mean and measure the degree of dispersion of the dataset. Unless otherwise stated, all functions in this module support the calculation of the mean() function instead of simply summing the average. Floating point numbers can also be used. import random import statistics from fracti

This article compares TensorFlow and PyTorch for deep learning. It details the steps involved: data preparation, model building, training, evaluation, and deployment. Key differences between the frameworks, particularly regarding computational grap

This tutorial builds upon the previous introduction to Beautiful Soup, focusing on DOM manipulation beyond simple tree navigation. We'll explore efficient search methods and techniques for modifying HTML structure. One common DOM search method is ex

The article discusses popular Python libraries like NumPy, Pandas, Matplotlib, Scikit-learn, TensorFlow, Django, Flask, and Requests, detailing their uses in scientific computing, data analysis, visualization, machine learning, web development, and H

This article guides Python developers on building command-line interfaces (CLIs). It details using libraries like typer, click, and argparse, emphasizing input/output handling, and promoting user-friendly design patterns for improved CLI usability.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

SublimeText3 Chinese version
Chinese version, very easy to use

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft