jinyi7016 发表于 2022-11-3 15:36

【行空板 Python编程学习主控板】各传感器功能使用与连接网络

<div class='showpostmsg'><p><span style="font-size:18px;"><strong>一、传感器使用</strong></span></p>

<p>行空板上的传感器很丰富,包括有声音传感器、光线传感器、运动传感器。</p>

<p>这几个传感器的使用,都要使用到pinpong库,是通过一颗单片机协处理器负责的。</p>

<p>还有一个是unihiker库,这个库主要是屏的一些人机互动、Audio的操作。</p>

<p>固件中默认已经安装好了pinpong库的,所以,可以直接使用。</p>

<p>使用python要选择代码模式,这时在项目中的文件下,新建一个main.py的文件,双击打开后,在左侧可以显示出个文件的内容。</p>

<p>之后就可以在文件吕写python的代码。</p>

<p><!--5f39ae17-8c62-4a45-bc43-b32064c9388a:W3siYmxvY2tJZCI6Ijk2ODYtMTY2NzE4NjE0Nzk0NCIsImJsb2NrVHlwZSI6InBhcmFncmFwaCIsInN0eWxlcyI6eyJhbGlnbiI6ImxlZnQiLCJpbmRlbnQiOjAsInRleHQtaW5kZW50IjowLCJsaW5lLWhlaWdodCI6MS43NSwiYmFjay1jb2xvciI6IiIsInBhZGRpbmciOiIifSwidHlwZSI6InBhcmFncmFwaCIsInJpY2hUZXh0Ijp7ImRhdGEiOlt7ImNoYXIiOiLooYwifSx7ImNoYXIiOiLnqboifSx7ImNoYXIiOiLmnb8ifSx7ImNoYXIiOiLkuIoifSx7ImNoYXIiOiLnmoQifSx7ImNoYXIiOiLkvKAifSx7ImNoYXIiOiLmhJ8ifSx7ImNoYXIiOiLlmagifSx7ImNoYXIiOiLlvogifSx7ImNoYXIiOiLkuLAifSx7ImNoYXIiOiLlr4wifSx7ImNoYXIiOiLvvIwifSx7ImNoYXIiOiLljIUifSx7ImNoYXIiOiLmi6wifSx7ImNoYXIiOiLmnIkifSx7ImNoYXIiOiLlo7AifSx7ImNoYXIiOiLpn7MifSx7ImNoYXIiOiLkvKAifSx7ImNoYXIiOiLmhJ8ifSx7ImNoYXIiOiLlmagifSx7ImNoYXIiOiLjgIEifSx7ImNo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Sx7ImNoYXIiOiLlnKgifSx7ImNoYXIiOiLmlocifSx7ImNoYXIiOiLku7YifSx7ImNoYXIiOiLlkJUifSx7ImNoYXIiOiLlhpkifSx7ImNoYXIiOiJwIn0seyJjaGFyIjoieSJ9LHsiY2hhciI6InQifSx7ImNoYXIiOiJoIn0seyJjaGFyIjoibyJ9LHsiY2hhciI6Im4ifSx7ImNoYXIiOiLnmoQifSx7ImNoYXIiOiLku6MifSx7ImNoYXIiOiLnoIEifSx7ImNoYXIiOiLjgIIifV0sImlzUmljaFRleHQiOnRydWUsImtlZXBMaW5lQnJlYWsiOnRydWV9fV0=--></p>

<p></p>

<p>代码如下:</p>

<p><!--5f39ae17-8c62-4a45-bc43-b32064c9388a:W3siYmxvY2tJZCI6IjMyNDgtMTY2NzIwNTU4NjIzNiIsImJsb2NrVHlwZSI6InBhcmFncmFwaCIsInN0eWxlcyI6eyJhbGlnbiI6ImxlZnQiLCJpbmRlbnQiOjAsInRleHQtaW5kZW50IjowLCJsaW5lLWhlaWdodCI6MS43NSwiYmFjay1jb2xvciI6IiIsInBhZGRpbmciOiIifSwidHlwZSI6InBhcmFncmFwaCIsInJpY2hUZXh0Ijp7ImRhdGEiOlt7ImNoYXIiOiLku6MifSx7ImNoYXIiOiLnoIEifSx7ImNoYXIiOiLlpoIifSx7ImNoYXIiOiLkuIsifSx7ImNoYXIiOiLvvJoifV0sImlzUmljaFRleHQiOnRydWUsImtlZXBMaW5lQnJlYWsiOnRydWV9fV0=--></p>

<pre>
<code># -*- coding: utf-8 -*-
import time
from pinpong.board import *
from pinpong.extension.unihiker import *
from unihiker import Audio
audio = Audio()
Board().begin()

while True:
print("加速度X:%f"%(accelerometer.get_x()))                  
print("加速度Y:%f"%accelerometer.get_y())                  
print("加速度Z:%f"%accelerometer.get_z())                  

print("陀螺仪X:%f"%gyroscope.get_x())                        
print("陀螺仪Y:%f"%gyroscope.get_y())                        
print("陀螺仪Z:%f"%gyroscope.get_z())                        
print("------------------")
print("光线强度:%d"%(light.read()))
print("------------------")
print("环境音=%d"%(audio.sound_level()))
print("------------------")
time.sleep(1)</code></pre>

<p>代码写好后,不要使用ctrl+S进行保存,要点界面上的图标,ctrl+S是保存到电脑本地,保存图标是保存到开发板上。</p>

<p>保存好后,就可以点运行了。</p>

<p>这里在左下角的终端中,会显示出print的结果。</p>

<p>如下数据,可以看到,在静止时,只有Z方向上的加速度几乎是1个G,其他的方向上的,都几乎是0,由于这里没有进行滤波处理,噪声有一些大。</p>

<p>而且读取的间隔是1s一次,实时性也不太高。</p>

<p><!--5f39ae17-8c62-4a45-bc43-b32064c9388a:W3siYmxvY2tJZCI6IjY4MjMtMTY2NzIwNTU5NDMyMyIsImJsb2NrVHlwZSI6InBhcmFncmFwaCIsInN0eWxlcyI6eyJhbGlnbiI6ImxlZnQiLCJpbmRlbnQiOjAsInRleHQtaW5kZW50IjowLCJsaW5lLWhlaWdodCI6MS43NSwiYmFjay1jb2xvciI6IiIsInBhZGRpbmciOiIifSwidHlwZSI6InBhcmFncmFwaCIsInJpY2hUZXh0Ijp7ImRhdGEiOlt7ImNoYXIiOiLku6MifSx7ImNoYXIiOiLnoIEifSx7ImNoYXIiOiLlhpkifSx7ImNoYXIiOiLlpb0ifSx7ImNoYXIiOiLlkI4ifSx7ImNoYXIiOiLvvIwifSx7ImNoYXIiOiLkuI0ifSx7ImNoYXIiOiLopoEifSx7ImNoYXIiOiLkvb8ifSx7ImNoYXIiOiLnlKgifSx7ImNoYXIiOiJjIn0seyJjaGFyIjoidCJ9LHsiY2hhciI6InIifSx7ImNoYXIiOiJsIn0seyJjaGFyIjoiKyJ9LHsiY2hhciI6IlMifSx7ImNoYXIiOiLov5sifSx7ImNoYXIiOiLooYwifSx7ImNoYXIiOiLkv50ifSx7ImNoYXIiOiLlrZgifSx7ImNoYXIiOiLvvIwifSx7ImNoYXIiOiLopoEifSx7ImNoYXIiOiLngrkifSx7ImNoYXIiOiLnlYwifSx7ImNoYXIiOiLpnaIifSx7ImNoYXIiOiL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kuI0ifSx7ImNoYXIiOiLlpKoifSx7ImNoYXIiOiLpq5gifSx7ImNoYXIiOiLjgIIifV0sImlzUmljaFRleHQiOnRydWUsImtlZXBMaW5lQnJlYWsiOnRydWV9fV0=--></p>

<p></p>

<p><strong><span style="font-size:20px;">二、联网功能</span></strong></p>

<p><!--5f39ae17-8c62-4a45-bc43-b32064c9388a:W3siYmxvY2tJZCI6IjU0OTMtMTY2NzE4NjE2ODUwMyIsImJsb2NrVHlwZSI6ImhlYWRpbmciLCJzdHlsZXMiOnsiYWxpZ24iOiJsZWZ0IiwiaW5kZW50IjowLCJ0ZXh0LWluZGVudCI6MCwibGluZS1oZWlnaHQiOjEuNzUsImJhY2stY29sb3IiOiIiLCJwYWRkaW5nIjoiIn0sInR5cGUiOiJoZWFkaW5nIiwicmljaFRleHQiOnsiZGF0YSI6W3siY2hhciI6IuiBlCIsInN0eWxlcyI6eyJjb2xvciI6IiMzOTM5MzkifX0seyJjaGFyIjoi572RIiwic3R5bGVzIjp7ImNvbG9yIjoiIzM5MzkzOSJ9fSx7ImNoYXIiOiLlip8iLCJzdHlsZXMiOnsiY29sb3IiOiIjMzkzOTM5In19LHsiY2hhciI6IuiDvSIsInN0eWxlcyI6eyJjb2xvciI6IiMzOTM5MzkifX1dLCJpc1JpY2hUZXh0Ijp0cnVlLCJrZWVwTGluZUJyZWFrIjp0cnVlfSwibGV2ZWwiOiIyIn1d--></p>

<p>第一次使用时,使用了USB的虚拟网卡,通过SSH进行连接到开发板,这种方式,只能是本地连接,与串口连接基本上是一样的。</p>

<p>而连接以太网才更有可玩性。行空板的以太网连接方式是通过wifi进行连接。</p>

<p>wifi的配置,可以通过行空板上自带的web进行配置。</p>

<p>在浏览器输入行空板USB虚拟网卡的IP地址10.1.2.3,就可以进行访问。</p>

<p>如下界面,就可以输入wifi密码进行连接了。</p>

<p><!--5f39ae17-8c62-4a45-bc43-b32064c9388a:W3siYmxvY2tJZCI6IjY1ODctMTY2NzE4NjE4NTg2NCIsImJ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lbnQiOjAsImxpbmUtaGVpZ2h0IjoxLjc1LCJiYWNrLWNvbG9yIjoiIiwicGFkZGluZyI6IiJ9LCJ0eXBlIjoicGFyYWdyYXBoIiwicmljaFRleHQiOnsiZGF0YSI6W3siY2hhciI6IuWmgiJ9LHsiY2hhciI6IuS4iyJ9LHsiY2hhciI6IueVjCJ9LHsiY2hhciI6IumdoiJ9LHsiY2hhciI6Iu+8jCJ9LHsiY2hhciI6IuWwsSJ9LHsiY2hhciI6IuWPryJ9LHsiY2hhciI6IuS7pSJ9LHsiY2hhciI6Iui+kyJ9LHsiY2hhciI6IuWFpSJ9LHsiY2hhciI6IncifSx7ImNoYXIiOiJpIn0seyJjaGFyIjoiZiJ9LHsiY2hhciI6ImkifSx7ImNoYXIiOiLlr4YifSx7ImNoYXIiOiLnoIEifSx7ImNoYXIiOiLov5sifSx7ImNoYXIiOiLooYwifSx7ImNoYXIiOiLov54ifSx7ImNoYXIiOiLmjqUifSx7ImNoYXIiOiLkuoYifSx7ImNoYXIiOiLjgIIifV0sImlzUmljaFRleHQiOnRydWUsImtlZXBMaW5lQnJlYWsiOnRydWV9fV0=--></p>

<p></p>

<p>连接完成后,在行空板上可以看到网络 的信息。</p>

<p><!--5f39ae17-8c62-4a45-bc43-b32064c9388a:W3siYmxvY2tJZCI6IjEyNDAtMTY2NzM2MjkxMjY0OCIsImJsb2NrVHlwZSI6InBhcmFncmFwaCIsInN0eWxlcyI6eyJhbGlnbiI6ImxlZnQiLCJpbmRlbnQiOjAsInRleHQtaW5kZW50IjowLCJsaW5lLWhlaWdodCI6MS43NSwiYmFjay1jb2xvciI6IiIsInBhZGRpbmciOiIifSwidHlwZSI6InBhcmFncmFwaCIsInJpY2hUZXh0Ijp7ImRhdGEiOlt7ImNoYXIiOiLov54ifSx7ImNoYXIiOiLmjqUifSx7ImNoYXIiOiLlrowifSx7ImNoYXIiOiLmiJAifSx7ImNoYXIiOiLlkI4ifSx7ImNoYXIiOiLvvIwifSx7ImNoYXIiOiLlnKgifSx7ImNoYXIiOiLooYwifSx7ImNoYXIiOiLnqboifSx7ImNoYXIiOiLmnb8ifSx7ImNoYXIiOiLkuIoifSx7ImNoYXIiOiLlj68ifSx7ImNoYXIiOiLku6UifSx7ImNoYXIiOiLnnIsifSx7ImNoYXIiOiLliLAifSx7ImNoYXIiOiLnvZEifSx7ImNoYXIiOiLnu5wifSx7ImNoYXIiOiIgIn0seyJjaGFyIjoi55qEIn0seyJjaGFyIjoi5L+hIn0seyJjaGFyIjoi5oGvIn0seyJjaGFyIjoi44CCIn1dLCJpc1JpY2hUZXh0Ijp0cnVlLCJrZWVwTGluZUJyZWFrIjp0cnVlfX1d--></p>

<p>&nbsp;</p>

<p></p>

<p>由于我自己的一些模块,与行空板上的连接有一些不同,所以,下面就要开始设计一个扩展板,一方向把接口定义转换一下,一方向也可以直接插上行空板。</p>

<p>尽量引出所有的micro:bit的引脚。</p>

<p>目前还是一些基本的应用,还在对行空板的库进行熟悉。</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p>&nbsp;</p>
</div><script>                                        var loginstr = '<div class="locked">查看本帖全部内容,请<a href="javascript:;"   style="color:#e60000" class="loginf">登录</a>或者<a href="https://bbs.eeworld.com.cn/member.php?mod=register_eeworld.php&action=wechat" style="color:#e60000" target="_blank">注册</a></div>';
                                       
                                        if(parseInt(discuz_uid)==0){
                                                                                                (function($){
                                                        var postHeight = getTextHeight(400);
                                                        $(".showpostmsg").html($(".showpostmsg").html());
                                                        $(".showpostmsg").after(loginstr);
                                                        $(".showpostmsg").css({height:postHeight,overflow:"hidden"});
                                                })(jQuery);
                                        }                </script><script type="text/javascript">(function(d,c){var a=d.createElement("script"),m=d.getElementsByTagName("script"),eewurl="//counter.eeworld.com.cn/pv/count/";a.src=eewurl+c;m.parentNode.insertBefore(a,m)})(document,523)</script>

UUC 发表于 2022-11-3 15:51

本帖最后由 UUC 于 2022-11-3 15:55 编辑

<p>看着挺不错的,这个套件价格咋样,刚瞅了眼京x, 价格399,介绍不是很详细</p>

wangerxian 发表于 2022-11-3 16:22

<p>用Python开发是真的简洁,几句话就搞定了。</p>

jinyi7016 发表于 2022-11-4 18:04

UUC 发表于 2022-11-3 15:51
看着挺不错的,这个套件价格咋样,刚瞅了眼京x, 价格399,介绍不是很详细

<p>这个开发板的教程还是很多的,可以到官方的主页去看看,</p>
页: [1]
查看完整版本: 【行空板 Python编程学习主控板】各传感器功能使用与连接网络