Python is a programming language that has risen rapidly and is very hot in recent years. The first programming language, which differs from our national universities, is often the C language, and Python becomes the entry-level programming language for foreign science. At the same time, with the development of science and technology, large data with high capacity, high speed and diversity has become the theme of today's times. With the rapid development of mobile internet, cloud computing and big data, Python presents great opportunities for developers.
Why is python growing and being sought after at home?
Python has also been discovered and sought after in the country in recent years, mainly with the development of the Internet to this stage has important relations. Python's openness, simplicity, and bonding are in line with the current stage of development for big data analysis, visualization, various platform program collaboration has produced a rapid promotion role. It has been five or six years since the release of the Python3, and it has been a long time since the announcement of the opposition to slowly accepted and liked, but it may also have a considerable relationship with national conditions and development needs. In short, more and more people are starting to use Python.
What can I do with python?
Python syntax is concise and does not require compilation. In a word, "life is too short, I use Python" to explain everything, high efficiency is the characteristics of Python. Powerful data structure. The Python development environment, which is installed by default, already comes with many advanced data types, such as lists, tuples, dictionaries, collections, queues, and so on, that you can use to manipulate these data types without further programming. Using these data types makes it very easy to implement abstract mathematical concepts. Force indentation, which naturally makes your code look organized. Plug-in complete, can complete most of the program design tasks.
comparison of several mainstream Python development boards
The following formally enters our subject. With the growing popularity and popularity of the Python language, the boards of some microcontrollers dedicated to the Python language have been presented to the public. A python that can be run on a microcontroller also known as Micropython,micro Python is a simple and fast implementation of the Python 3 programming language, specifically optimized for running on a microcontroller. It is based on Ansic, the syntax is basically consistent with Pyton 3, has its own parser, compilers, virtual machines and class libraries, and the following are some common development boards supported by Micropython:
1, Pyboard
Pyboard is the official Development Board of Micropython, but this board is relatively rare, the price is more expensive. Fortunately Micropython supports a variety of development boards, and we can run Micropython well on other boards.
2, Pymagic
Pymagic is a hardware platform based on stm32f405, software based on Micropython. The pymagic supports PYTHON3 syntax and allows easy control of the hardware via Python.
3, Raspberry Pi
The Raspberry Pi Foundation offers an arm-based release of Debian and Arch Linux for public download. It is also planned to provide support for Python as the primary programming language, supporting Java, BBC Basic (through RISC OS images or Linux "Brandy BASIC" clones), C and Perl programming languages.
4, Tpyboard
Tpyboard is a microcontroller board developed by the domestic Turnipsmart company to comply with Micropython's MIT protocol, which adds SWD interface on the basis of maintaining all the original hardware features. Easy to burn write Tpyboard firmware (compatible with Micropython firmware). It runs Micro python, a lean and fast implementation of the Python language that optimizes Python to run on a microcontroller. With the regular Python 3.0, you can run your next DIY project effortlessly.
Tpyboard Hardware features (compatible with micro Python hardware):
· Stm32f405rg MCU.
168 MHz cortex-m4 CPU with 32-bit hardware floating point.
1 MiB Flash storage, 192 KiB RAM.
· USB port, support serial port, universal storage, HID protocol.
· SD card slot.
· MMA76603 Axis Accelerometer.
4 LEDs, 1 reset button, 1 Universal button.
3.3v0.3a on-board LDO that can be powered from a USB port or an external battery.
• Real-time clock.
• 30 Universal IO ports, 28 of which support 5V input and output.
• 2 SPI interface, 2 can interface, 2 I²c interface, 5 Usart interface.
• 14 x 12-bit ADC Pins.
• 2 DAC pins.
• 1 SWD interfaces (new).
PCB Specifications:
• Dimensions: 64mm X 54mm.
• Weight: 17g.
So how does it compare with the traditional microcontroller board?
As its creator says: Micropython's board is more powerful and easy to program than Arduino, and does not require a compiler on your PC side. Compared to the Raspberry Pi, the Micro Python board is cheaper, smaller and simpler (you can make one yourself, or even modify the design to suit your needs), and it consumes less energy. Most of the other boards are programmed with C, C is a lower-level language, and it is not easy to program correctly. Python, on the other hand, is a very advanced language, which means that using the same things, Python and C will use simpler and less code than they do.
Python meets embedded: Several main python development boards at a glance!