黑基网 首页 教程 编程开发 查看内容

MicroPython pyboard,小而强大的电子开发板,发烧友必备之选!

2018-1-30 15:33| 投稿: xiaotiger |来自: 互联网

摘要: pyboard是一个运行MicroPython的小巧而强大的电子开发板。它通过USB连接到您的PC,为您提供一个USB闪存驱动器来保存您的Python脚本,以及一个用于即时编程的串行Python提示符(REPL)。需要一个微型USB电缆,并将与W ...

pyboard是一个运行MicroPython的小巧而强大的电子开发板。它通过USB连接到您的PC,为您提供一个USB闪存驱动器来保存您的Python脚本,以及一个用于即时编程的串行Python提示符(REPL)。需要一个微型USB电缆,并将与Windows,Mac和Linux一起使用。

这是原来的pyboard,比pyboard Lite更强大。 MicroPython是对Python(3.4版本)编程语言的完整重写,因此它适合并在微控制器上运行。它包含许多优化,以便高效运行并使用很少的RAM。

MicroPython在pyboard上运行裸机,基本上给你一个Python操作系统。内置的pyb模块包含控制板上可用外设的功能和类,如UART,I2C,SPI,ADC和DAC。

有三种主要的方法来控制pyboard:

REPL:通过USB连接到电脑,电路板显示为USB虚拟通讯端口(CDC VCP),您可以使用任何串行程序连接并获取Python REPL提示。这允许您立即键入并执行Python命令,就像在PC上运行Python一样。您也可以将REPL重定向到黑板上的任何UART。

远程脚本:您可以通过发送ctrl-A从REPL更改为原始REPL模式,然后在原始REPL模式下,可以将任意Python脚本发送到板上,以便立即执行。 Python脚本是可用的,这使得使用这种模式非常简单:你只需运行python pyboard.py script_to_run.py,这将在pyboard上执行script_to_run.py,返回任何输出。

来自文件:pyboard有一个小的内置文件系统,位于微控制器闪存的一部分。如果你想扩展可用的存储空间,它也有一个SD卡插槽。当您将pyboard连接到PC时,它将显示为USB闪存设备,您可以通过这种方式访问(挂载)内部文件系统和SD卡。如果您将Python脚本复制到文件系统并将其命名为main.py,那么板子将在启动时执行该脚本。这样您就可以在不连接到PC的情况下运行脚本。

硬件的主要特点:

  • STM32F405RG微控制器

  • 具有硬件浮点的168 MHz Cortex M4 CPU

  • 1024KiB闪存ROM和192KiB RAM

  • 用于电源和串行通信的Micro USB连接器

  • Micro SD卡插槽,支持标准和高容量的SD卡

  • 3轴加速度计(MMA7660)

  • 带备用电池备份的实时时钟

  • 左边缘和右边缘的24个GPIO和底层的5个GPIO,以及底部的LED和开关GPIO

  • 3个12位模拟数字转换器,16个引脚,4个模拟接地屏蔽

  • 2个12位数模转换器(DAC),可在引脚X5和X6上使用

  • 4个LED(红色,绿色,黄色和蓝色)

  • 1个重置和1个用户开关

  • 板上3.3V LDO电压调节器,能够提供高达300mA,输入电压范围3.6V至10V

  • ROM中的DFU引导加载程序,可以轻松升级固件

庆新年,MicroPython pyboard开发板可以免费申请了,感兴趣的发烧友,请关注微信公众号xinzixun321,回复micro,参与新年狂欢活动!!

, groupId: 6516128729347916296, itemId: 6516128729347916296, type: 2, subInfo: { isOriginal: true, source: 芯科技, time: 2018-01-28 23:47:26 }, tagInfo: { tags: [], groupId: 6516128729347916296, itemId: 6516128729347916296, repin: 0, }, has_extern_link: 0 }, commentInfo: { groupId: 6516128729347916296, itemId: 6516128729347916296, comments_count: 22, ban_comment: 0 }, mediaInfo: { uid: 6338701677, name: 芯科技, avatar: //p1.pstatp.com/large/ef500173950450d750c, openUrl: /c/user/6338701677/, follow: false }, pgcInfo: {"media_info":{"open_url":"/c/user/6338701677/","avatar_url":"https://p1.pstatp.com/large/ef500173950450d750c","media_id":6947689114,"name":"芯科技","user_verified":false},"articles":[{"item_id":"6516128729347916296","url":"/item/6516128729347916296","title":"MicroPython pyboard,小而强大的电子开发板,发烧友必备之选!"},{"item_id":"6515663463866450435","url":"/item/6515663463866450435","title":"NanoPC-T3 Plus,全新八核64-Bit工业级卡片电脑,稳定压倒一切!"},{"item_id":"6515582563916972552","url":"/item/6515582563916972552","title":"安徽庐江的雪下的可真大,道路都堵了"},{"item_id":"6514901446570279431","url":"/item/6514901446570279431","title":"上海“下雪”史:一般不下雪,下起雪来不一般"}]}, feedInfo: { url: /api/pc/feed/, category: __all__, initList: [{"comments_count":37,"media_avatar_url":"//p3.pstatp.com/large/150e00013ac4fcfea656","is_feed_ad":false,"is_diversion_page":false,"title":"一个月能入门Python吗?月薪25K的大佬给我整理了函数和模块资料","single_mode":true,"gallary_image_count":31,"middle_mode":true,"has_video":false,"video_duration_str":null,"source_url":"/group/6515240810475160068/","source":"python学院","more_mode":null,"article_genre":"article","has_gallery":false,"video_play_count":25,"image_url":"//p9.pstatp.com/list/190x124/5b5000056f27d5720d52","group_id":"6515240810475160068","is_related":true,"media_url":"/c/user/54009688093/"},{"comments_count":167,"media_avatar_url":"//p10.pstatp.com/large/438f00004eac8bb7ece8","is_feed_ad":false,"is_diversion_page":false,"title":"卸载吧!电脑还用PDF阅读器,格式转化大师?只要一款就够了!","single_mode":true,"gallary_image_count":13,"middle_mode":false,"has_video":false,"video_duration_str":null,"source_url":"/group/6516090106531545613/","source":"阿根Excel","more_mode":null,"article_genre":"article","has_gallery":false,"video_play_count":44,"image_url":"//p9.pstatp.com/list/190x124/5b5c0001b5b55c76caf9","group_id":"6516090106531545613","is_related":true,"media_url":"/c/user/70815695983/"},{"comments_count":213,"media_avatar_url":"//p5a.pstatp.com/large/46de0003f2ea89d6708f","is_feed_ad":false,"is_diversion_page":false,"title":"多掌握一些电脑操作技巧,工作起来少求人!","single_mode":true,"gallary_image_count":15,"middle_mode":false,"has_video":false,"video_duration_str":null,"source_url":"/group/6513785676608045575/","source":"高效能人士加油站","more_mode":null,"article_genre":"article","has_gallery":false,"video_play_count":81,"image_url":"//p3.pstatp.com/list/190x124/50a9000146c2c23e9801","group_id":"6513785676608045575","is_related":true,"media_url":"/c/user/75943401271/"},{"comments_count":7,"media_avatar_url":"//p1.pstatp.com/large/16ab0015ac854237311b","is_feed_ad":false,"is_diversion_page":false,"title":"Python操作MySQL数据库的三种方法","single_mode":true,"gallary_image_count":16,"middle_mode":false,"has_video":false,"video_duration_str":null,"source_url":"/group/6516473434988347912/","source":"python空白","more_mode":null,"article_genre":"article","has_gallery":false,"video_play_count":1,"image_url":"//p3.pstatp.com/list/190x124/5e730000133113590266","group_id":"6516473434988347912","is_related":true,"media_url":"/c/user/56929627307/"},{"comments_count":41,"media_avatar_url":"//p5a.pstatp.com/large/438f000271c88f3cfc82","is_feed_ad":false,"is_diversion_page":false,"title":"固态硬盘放久了无法格式化分区,无法初始化?问题原来如此","single_mode":true,"gallary_image_count":4,"middle_mode":false,"has_video":false,"video_duration_str":null,"source_url":"/group/6516468347687666179/","source":"楼台","more_mode":null,"article_genre":"article","has_gallery":false,"video_play_count":29,"image_url":"//p1.pstatp.com/list/190x124/5e7100048ebeb0e2e65d","group_id":"6516468347687666179","is_related":true,"media_url":"/c/user/3800943649/"},{"comments_count":5,"media_avatar_url":"//p10.pstatp.com/large/3642001a852e99a55c67","is_feed_ad":false,"is_diversion_page":false,"title":"中美超级计算机之争,中国的无芯之痛","single_mode":true,"gallary_image_count":5,"middle_mode":true,"has_video":false,"video_duration_str":null,"source_url":"/group/6515546022628819463/","source":"知储侠","more_mode":null,"article_genre":"article","has_gallery":false,"video_play_count":0,"image_url":"//p1.pstatp.com/list/190x124/5b520003d78632dc4aab","group_id":"6515546022628819463","is_related":true,"media_url":"/c/user/50812868091/"},{"comments_count":204,"media_avatar_url":"//p8.pstatp.com/large/2c5d000c9a54eea7366c","is_feed_ad":false,"is_diversion_page":false,"title":"财务人员必备的 10 个Excel快捷键!提高工作效率,告别加班!","single_mode":true,"gallary_image_count":18,"middle_mode":false,"has_video":false,"video_duration_str":null,"source_url":"/group/6514139627136221699/","source":"快学会计","more_mode":null,"article_genre":"article","has_gallery":false,"video_play_count":0,"image_url":"//p3.pstatp.com/list/190x124/5b460003138a512ede99","group_id":"6514139627136221699","is_related":true,"media_url":"/c/user/50503371694/"},{"comments_count":25,"media_avatar_url":"//p3.pstatp.com/large/46ed00036bc611c143cf","is_feed_ad":false,"is_diversion_page":false,"title":"Excel函数公式:如此漂亮的动图,你会制作吗","single_mode":true,"gallary_image_count":6,"middle_mode":true,"has_video":false,"video_duration_str":null,"source_url":"/group/6516127151987622408/","source":"Excel函数公式","more_mode":null,"article_genre":"article","has_gallery":false,"video_play_count":9,"image_url":"//p1.pstatp.com/list/190x124/5e6f0000816fda54a8bd","group_id":"6516127151987622408","is_related":true,"media_url":"/c/user/59000799736/"},{"comments_count":11,"media_avatar_url":"//p1.pstatp.com/large/401b00045c76ac488642","is_feed_ad":false,"is_diversion_page":false,"title":"如何将Word中数据转换为excel表格","single_mode":true,"gallary_image_count":8,"middle_mode":false,"has_video":false,"video_duration_str":null,"source_url":"/group/6516467643275280909/","source":"求学若渴","more_mode":null,"article_genre":"article","has_gallery":false,"video_play_count":8,"image_url":"//p9.pstatp.com/list/190x124/5b5b0005c44a79cc2077","group_id":"6516467643275280909","is_related":true,"media_url":"/c/user/72635470935/"},{"comments_count":34,"media_avatar_url":"//p3.pstatp.com/large/53f70004687197db7d78","is_feed_ad":false,"is_diversion_page":false,"title":"价值二十万的技巧,让100块的功放喇叭瞬间赶超万元音质水准!","single_mode":true,"gallary_image_count":6,"middle_mode":true,"has_video":false,"video_duration_str":null,"source_url":"/group/6515250643039420931/","source":"听音耳语者","more_mode":null,"article_genre":"article","has_gallery":false,"video_play_count":33,"image_url":"//p3.pstatp.com/list/190x124/5b51000527b5a35d187a","group_id":"6515250643039420931","is_related":true,"media_url":"/c/user/19201689734/"},{"comments_count":54,"media_avatar_url":"//p5a.pstatp.com/large/46de0003f2ea89d6708f","is_feed_ad":false,"is_diversion_page":false,"title":"这3个下载神器,任何一个都比迅雷好用,果断收藏!","single_mode":true,"gallary_image_count":3,"middle_mode":false,"has_video":false,"video_duration_str":null,"source_url":"/group/6513787346922504717/","source":"高效能人士加油站","more_mode":null,"article_genre":"article","has_gallery":false,"video_play_count":82,"image_url":"//p1.pstatp.com/list/190x124/4e7d00000bbd21da1f3a","group_id":"6513787346922504717","is_related":true,"media_url":"/c/user/75943401271/"},{"comments_count":13,"media_avatar_url":"//p8.pstatp.com/large/4aed0001cf2e44842ded","is_feed_ad":false,"is_diversion_page":false,"title":"一起来看看 redis 集群搭建:redis-cluster","single_mode":true,"gallary_image_count":20,"middle_mode":false,"has_video":false,"video_duration_str":null,"source_url":"/group/6516465210679624199/","source":"JAVA小生","more_mode":null,"article_genre":"article","has_gallery":false,"video_play_count":3,"image_url":"//p3.pstatp.com/list/190x124/5e700003b88cefdf63d5","group_id":"6516465210679624199","is_related":true,"media_url":"/c/user/61576980894/"},{"comments_count":249,"media_avatar_url":"//p3.pstatp.com/large/40370001f68f33f62260","is_feed_ad":false,"is_diversion_page":false,"title":"vivo旗舰机曝光,骁龙845,10GB+512GB内存组合,你猜猜价格多少","single_mode":true,"gallary_image_count":3,"middle_mode":false,"has_video":false,"video_duration_str":null,"source_url":"/group/6516495886124581379/","source":"科技八叔","more_mode":null,"article_genre":"article","has_gallery":false,"video_play_count":217,"image_url":"//p1.pstatp.com/list/190x124/5e7000041bd229bc4ad9","group_id":"6516495886124581379","is_related":true,"media_url":"/c/user/73121207816/"},{"comments_count":213,"media_avatar_url":"//p1.pstatp.com/large/16ab0000c69444edcb31","is_feed_ad":false,"is_diversion_page":false,"title":"除了百度,其实还有很多不为人知的搜索引擎","single_mode":true,"gallary_image_count":4,"middle_mode":false,"has_video":false,"video_duration_str":null,"source_url":"/group/6515380907723981319/","source":"木子淇","more_mode":null,"article_genre":"article","has_gallery":false,"video_play_count":194,"image_url":"//p1.pstatp.com/list/190x124/5b5200036e126e906fdf","group_id":"6515380907723981319","is_related":true,"media_url":"/c/user/50517704788/"},{"comments_count":54,"media_avatar_url":"//p3.pstatp.com/large/5678000401259d9253f9","is_feed_ad":false,"is_diversion_page":false,"title":"用python写一个员工管理系统 牛刀小试","single_mode":true,"gallary_image_count":6,"middle_mode":true,"has_video":false,"video_duration_str":null,"source_url":"/group/6516117387786322435/","source":"java老菜鸟一个","more_mode":null,"article_genre":"article","has_gallery":false,"video_play_count":60,"image_url":"//p1.pstatp.com/list/190x124/5b5a00028a09d5987824","group_id":"6516117387786322435","is_related":true,"media_url":"/c/user/84476727022/"},{"comments_count":11,"media_avatar_url":"//p1.pstatp.com/large/509f0004adfc8780e10c","is_feed_ad":false,"is_diversion_page":false,"title":"再谈TCP报文中seq和ack,借助wireshark绘制流程图","single_mode":true,"gallary_image_count":5,"middle_mode":false,"has_video":false,"video_duration_str":null,"source_url":"/group/6516480197775065614/","source":"生先生谈IT","more_mode":null,"article_genre":"article","has_gallery":false,"video_play_count":3,"image_url":"//p9.pstatp.com/list/190x124/5b5b0005f5dfb0b8ed99","group_id":"6516480197775065614","is_related":true,"media_url":"/c/user/82477572975/"},{"comments_count":36,"media_avatar_url":"//p4.pstatp.com/large///p3.pstatp.com/thumb/56900005813c8edb6037","is_feed_ad":false,"is_diversion_page":false,"title":"电脑硬盘坏道修复,没你想的那么复杂","single_mode":true,"gallary_image_count":5,"middle_mode":false,"has_video":false,"video_duration_str":null,"source_url":"/group/6516438271608750600/","source":"启航工作室","more_mode":null,"article_genre":"article","has_gallery":false,"video_play_count":24,"image_url":"//p1.pstatp.com/list/190x124/5b590005a8ef120ddf06","group_id":"6516438271608750600","is_related":true,"media_url":"/c/user/59258730065/"},{"comments_count":0,"is_related":true,"is_feed_ad":false,"is_diversion_page":false,"title":"Python中用BeautifulSoup解析中文网页里的中文都是乱码,怎么回事?","single_mode":true,"gallary_image_count":1,"middle_mode":false,"has_video":false,"video_duration_str":null,"source_url":"/group/6515184067103686920/","source":"悟空问答","more_mode":null,"article_genre":"article","has_gallery":false,"video_play_count":0,"image_url":"//p1.pstatp.com/list/190x124/55170009337101be33f5","group_id":"6515184067103686920"},{"comments_count":14,"media_avatar_url":"//p3.pstatp.com/large/470c0004f7aad2b6f682","is_feed_ad":false,"is_diversion_page":false,"title":"Python3 如何读取10G大文件,你会吗?","single_mode":true,"gallary_image_count":3,"middle_mode":false,"has_video":false,"video_duration_str":null,"source_url":"/group/6516458376975630852/","source":"从零开始学习Python","more_mode":null,"article_genre":"article","has_gallery":false,"video_play_count":7,"image_url":"//p3.pstatp.com/list/190x124/5e700003baa6aafbebae","group_id":"6516458376975630852","is_related":true,"media_url":"/c/user/6438756870/"},{"comments_count":29,"media_avatar_url":"//p4.pstatp.com/large/46c500052acb6fa38178","is_feed_ad":false,"is_diversion_page":false,"title":"U盘由于没有正确使用导致损坏,原来可以这样急救尝试修复使用","single_mode":true,"gallary_image_count":6,"middle_mode":false,"has_video":false,"video_duration_str":null,"source_url":"/group/6516328147523207693/","source":"王文新","more_mode":null,"article_genre":"article","has_gallery":false,"video_play_count":37,"image_url":"//p3.pstatp.com/list/190x124/509600033731be06643f","group_id":"6516328147523207693","is_related":true,"media_url":"/c/user/5931095751/"}] }, shareInfo: { shareUrl: https://m.toutiao.com/item/6516128729347916296/, abstract: 它通过USB连接到您的PC,为您提供一个USB闪存驱动器来保存您的Python脚本,。需要一个微型USB电缆,并将与Windows,Mac和Linux一起使用。

小编推荐:欲学习电脑技术、系统维护、网络管理、编程开发和安全攻防等高端IT技术,请 点击这里 注册黑基账号,公开课频道价值万元IT培训教程免费学,让您少走弯路、事半功倍,好工作升职加薪!



免责声明:本文由投稿者转载自互联网,版权归原作者所有,文中所述不代表本站观点,若有侵权或转载等不当之处请联系我们处理,让我们一起为维护良好的互联网秩序而努力!联系方式见网站首页右下角。


鲜花
1

握手

雷人

路过

鸡蛋

刚表态过的朋友 (1 人)

相关阅读

发表评论

最新评论

最新

返回顶部