[MicroPython]比Arudino强大比Raspberry Pi简单
[复制链接]
本帖最后由 ddllxxrr 于 2016-4-15 19:43 编辑
网上看到老外介绍MicroPython的文章
在网上看到是英文的,坑坑洼洼反译过来觉得不错的文章对Micropython有着很好的介绍,甚至看了一目了然:
原文:
University of Cambridge theoretical physicist Damien George has built a tiny microcontroller that is more powerful than Arduino and far simpler than the Raspberry Pi. Just funded on Kickstarter, the £24 board runs an adapted version of Python known as Micro Python and will allow users to simply paste lines of text code onto the board to make it work. "The board has a USB port which allows you to easily connect it to a PC. You don't need any software to program it: it behaves like a USB flash drive, and you just copy a Python text file to it and it runs," George explains. Other features of the board, which runs on Windows, Mac and Linux, include a micro SD card slot, two buttons, 4 LEDs, 30 input/output pins for interfacing with sensors, a real-time clock, an accelerometer for sensing angles, and output lines to control servo motors used in robotics. The idea for a simple Python microcontroller came to George while he was building a walking robot. "I needed something very small, but powerful -- something with a lot of input and output lines that was able to precisely control motors for the robot's joints," he says. Since Python is a widely-used programming language for both beginners and experts, he decided to shrink it down so that it could run on a low-powered chip with limited memory. "Unlike the Raspberry Pi, the Micro Python board allows you easy access to the bare-metal of the hardware, which means you can do time-critical operations without worrying about an operating system getting in your way," George says.
The USB feature of the board allows it to be configured as a human interface device, so you can hook up any type of object or sensor and turn it into a mouse, keyboard or game-pad that controls your computer. A few lines of Python code could read the accelerometer and make the LEDs blink depending on the angle of the board. The board also directly powers and controls four motors. "You can use two of them to make a pan and tilt mechanism, for example, to aim a webcam. Or you could make a wheeled robot with two continuous rotation servos, and one tilt servo for its head," says George. The project has raised about £40,000 more than its original goal so far, with time left on Kickstarter. George will use the money to make the board Wi-Fi- and Ethernet-ready and plans to ship roughly 2,000 units, which will be produced in the UK, to backers in March 2014.
[color=rgba(31, 31, 31, 0.85098)]The next step is to release the software under the MIT open-source license, meaning anyone can modify and use the code. "I hope that Micro Python will be running on lots of different hardware, taking advantage of all the existing sensors and actuators to be used in a variety of new ways ," George says.
我的翻译,只是大概方便阅读,大家别拍我哈: 剑桥大学的理论物理学家达米安乔治已经建立了一个小的微控制器,是更强大的比Arduino和远比Raspberry Pi简单。只是在Kickstarter的资助,£24板运行适应版本的Python称微Python将允许用户只需粘贴文本的代码行上使它工作。
“板子有一个USB端口允许您轻松地连接到PC,你不需要任何软件程序:它的行为像一个USB闪存驱动器,你复制一个Python文本文件并运行,”乔治说。该板的其他功能,可以运行在windows,苹果和linux,包括一个微型SD卡插槽,2个按钮,4个发光二极管,30个输入/输出引脚的接口与传感器,实时时钟,传感器的角度,和用在机器人输出线控制伺服电机。
乔治在他建立一个机器人有了一个简单的Python单片机的想法。”我需要的东西非常小,但强大-与大量的输入和输出线,这是能够精确地控制电机的机器人关节的东西,“他说。
因为Python是为初学者和专家的广泛使用的编程语言,他决定把它瘦身下来,它可以运行在一个低功率芯片有限内存。”与Raspberry Pi相比,微Python板可以让你更容易地访问硬件的裸机,这意味着你可以做时间关键操作无需担心操作系统挡了你的路,”乔治说。
板的USB功能允许它被配置为人机接口设备,所以你可以把任何类型的对象或传感器和把它变成一个鼠标、键盘或游戏垫,控制了你的电脑。几行Python代码可以读取加速度使发光二极管闪烁取决于开发板的角度。该板还直接加电和控制四个电机。”例如,你可以用它们来制造一个平移和倾斜的机构,以瞄准一个摄像头。或者你可以用两个连续旋转伺服使轮式机器人,和一个倾斜伺服的头”乔治说。
该项目已筹集了约40000£。超过原先的目标,到目前为止,在Kickstarter上剩余时间。布什将用这笔钱使董事会的Wi-Fi和以太网准备和计划出货大约2000台,这将在英国生产的,在3月2014日的支持者。
下一步是在麻省理工开放源代码许可下发布软件,这意味着任何人都可以修改和使用代码。”我希望微Python会在不同硬件平台运行,利用一切现有的传感器和执行器可用于各种新的方式,”乔治说。
|