【RT-Thread作品秀】宠物智能饲养监测-电路方案

  • f9_511118
    了解作者
  • 45.6MB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-04-12 21:50
    上传日期
概述:宠物智能饲养监测系统基于RT-Thread的ART-PI开发板,主控STM32F750XBH6,支持采集温度、湿度和光照数据,实现高温本地和远程预警,智能照明控制,实时采集数据并通过 WIFI 上传云端,针对智能宠物管理提供一个较好的使用范例,也是自己借参加本次活动,首次实操使用RT-Thread rtos,实现功能是次要目的,学习和使用rtt是初衷,之后本项目会继续增加新功能,简单来说这是一个比较实用的。 开发环境硬件:ART-PI 扩展板:DHT11温湿度传感器,BH1750光照传感器和灯控模块 RT-Thread版本:RT-Thread V 4.0.3 开发工具及版本:RT-Thread-studio v2.0.0,STM32CubeMX v6.1.0 RT-Thread使用情况概述内核部分:调度器。 调度器:创建多个线程来实现不同的工作。 组件部分:I2C框架, Sensor框架, SAL 套接字抽象层 I2C框架:使用I2C框架来驱动光照传感器,上层代码可以提高代码的可重用性。 Sensor框架:为上层提供统一的操作接口,提高上层代码的可重用性;简化底层驱动开发的难度,可以非常简单的读取传感器采集数值。 SAL 套接字抽象层:组件完成对不同网络协议栈或网络实现接口的抽象并对上层提供一组标准的 BSD Socket API,这样开发者只需要关心和使用网络应用层提供的网络接口,而无需关心底层具体网络协议栈类型和实现,极大的提高了系统的兼容性,方便开发者完成协议栈的适配和网络相关的开发 软件包部分: Webclient: 提供设备与 HTTP Server 的通讯的基本功能,主要使用http post。 BH1750FVI: 该传感器软件包提供了使用光照强度传感器基本功能,BH1750FVI 是一种用于两线式串行总线接口的数字型光强度传感器集成电路,具有较高的分辨率可以探测较大范围的光强度变化(范围: 1lx-65535lx),特别适合对光照环境要求较高的场景。 硬件框架ART-PI采集到数据上传到云端(目前使用自己php+mysql,断网本地存储测试中)。 软件框架说明上电初始话后,检测传感器变化,满足设定条件的,通过wifi上传到服务器端 目前服务器端只提供数据处理和存储 软件模块说明bh1750_thread_entry: 光照传感器线程 dht11_thread_entry:温湿度传感器线程 user_webclient_post:http_post main:led 闪烁,用来检测当前系统的运行状态。 演示效果视频演示比赛感悟首先非常感谢RTT和电路城以及ST等一起举办的这次活动。 由于第一次使用M7核mcu以及第一次使用rtt操作系统,从小白一步一步学习,测试,看文档,请教,虽然目前还是小白水平,但是确确实实是一次难得的机会,不亲自实践就永远不知道自己的水平在哪,也不能了解rtt便捷。不得不说,结束rtt studio之后,使用起来非常顺手,再者H750 480MHz搭配art-pi强悍的设计,用于之后的复杂功能开发测试有巨大的升级空间。 这次比赛不仅仅是学到了,rtt stm32的软硬件知识,更多的是和许多志同道合的小伙伴,讨论与分享自己的所获所得,这也是一种开源精神。 最后要说声抱歉,鉴于没有充分认识到自己有限的水平,虽然近一个月的时间,还只能写出这样的水平,心比天高无奈水平一般,但是这是一个开始,会围绕设计主题,做持续的更新,不断学习和实践,继续让art-pi发光发热。 感谢!!!
22201.zip
  • ForGhLUKm3gmhcWZef4uM1N4z5x1.png
    22.1KB
  • FjCNlllItjzrRu-W8o0rCP4fg6m9.png
    82.1KB
  • 原理图.pdf
    343KB
  • art_pi_project_demo_03.7z
    42.4MB
  • Fs7-iqOP9cH3jOARltj5WS_iWr2v.png
    24.8KB
  • 概述.pdf
    2.8MB
  • 教程.txt
    480B
内容介绍
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8"> <meta name="generator" content="pdf2htmlEX"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <link rel="stylesheet" href="https://static.pudn.com/base/css/base.min.css"> <link rel="stylesheet" href="https://static.pudn.com/base/css/fancy.min.css"> <link rel="stylesheet" href="https://static.pudn.com/prod/directory_preview_static/6255f4ea47503a0a93f1cde9/raw.css"> <script src="https://static.pudn.com/base/js/compatibility.min.js"></script> <script src="https://static.pudn.com/base/js/pdf2htmlEX.min.js"></script> <script> try{ pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({}); }catch(e){} </script> <title></title> </head> <body> <div id="sidebar" style="display: none"> <div id="outline"> </div> </div> <div id="pf1" class="pf w0 h0" data-page-no="1"><div class="pc pc1 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/6255f4ea47503a0a93f1cde9/bg1.jpg"><div class="t m0 x1 h2 y1 ff1 fs0 fc0 sc0 ls0 ws0">&#27010;&#36848;&#65306;</div><div class="t m0 x1 h3 y2 ff1 fs1 fc1 sc1 ls0 ws0">&#23456;&#29289;&#26234;&#33021;&#39282;&#20859;&#30417;&#27979;&#31995;&#32479;&#22522;&#20110;<span class="_ _0"> </span><span class="ff2">RT-Thread<span class="_ _0"> </span></span>&#30340;<span class="_ _0"> </span><span class="ff2">ART-PI<span class="_ _0"> </span></span>&#24320;&#21457;&#26495;&#65292;&#20027;&#25511;</div><div class="t m0 x1 h3 y3 ff2 fs1 fc1 sc1 ls0 ws0">STM32F750XBH6<span class="ff1">&#65292;&#25903;&#25345;&#37319;&#38598;&#28201;&#24230;&#12289;&#28287;&#24230;&#21644;&#20809;&#29031;&#25968;&#25454;&#65292;&#23454;&#29616;&#39640;&#28201;&#26412;&#22320;&#21644;&#36828;&#31243;&#39044;</span></div><div class="t m0 x1 h3 y4 ff1 fs1 fc1 sc1 ls0 ws0">&#35686;&#65292;<span class="_ _1"></span>&#26234;&#33021;&#29031;&#26126;&#25511;&#21046;&#65292;<span class="_ _1"></span>&#23454;&#26102;&#37319;&#38598;&#25968;&#25454;&#24182;&#36890;&#36807;<span class="_ _2"> </span><span class="ff2">WIFI<span class="_ _2"> </span></span>&#19978;&#20256;&#20113;&#31471;&#65292;<span class="_ _1"></span>&#38024;&#23545;&#26234;&#33021;&#23456;&#29289;&#31649;&#29702;&#25552;</div><div class="t m0 x1 h3 y5 ff1 fs1 fc1 sc1 ls0 ws0">&#20379;&#19968;&#20010;&#36739;&#22909;&#30340;&#20351;&#29992;&#33539;&#20363;&#65292;&#20063;&#26159;&#33258;&#24049;&#20511;&#21442;&#21152;&#26412;&#27425;&#27963;&#21160;&#65292;&#39318;&#27425;&#23454;&#25805;&#20351;&#29992;<span class="_ _0"> </span><span class="ff2">RT-Thread</span></div><div class="t m0 x1 h3 y6 ff2 fs1 fc1 sc1 ls0 ws0">rtos<span class="ff1">&#65292;<span class="_ _3"></span>&#23454;&#29616;&#21151;&#33021;&#26159;&#27425;&#35201;&#30446;&#30340;&#65292;<span class="_ _1"></span>&#23398;&#20064;&#21644;&#20351;&#29992;<span class="_ _0"> </span><span class="ff2">rtt<span class="_ _0"> </span></span>&#26159;&#21021;&#34935;&#65292;<span class="_ _3"></span>&#20043;&#21518;&#26412;&#39033;&#30446;&#20250;&#32487;&#32493;&#22686;&#21152;&#26032;&#21151;</span></div><div class="t m0 x1 h3 y7 ff1 fs1 fc1 sc1 ls0 ws0">&#33021;&#65292;&#31616;&#21333;&#26469;&#35828;&#36825;&#26159;&#19968;&#20010;&#27604;&#36739;&#23454;&#29992;&#30340;&#12290;</div><div class="t m0 x1 h2 y8 ff1 fs0 fc0 sc0 ls0 ws0">&#24320;&#21457;&#29615;<span class="_ _4"></span>&#22659;</div><div class="t m0 x1 h3 y9 ff1 fs1 fc1 sc1 ls0 ws0">&#30828;&#20214;</div><div class="t m0 x2 h4 ya ff2 fs1 fc1 sc1 ls0 ws0">:ART-PI</div><div class="t m0 x1 h3 yb ff1 fs1 fc1 sc1 ls0 ws0">&#25193;&#23637;&#26495;&#65306;</div><div class="t m0 x3 h4 yc ff2 fs1 fc1 sc1 ls0 ws0">DHT11</div><div class="t m0 x4 h3 yb ff1 fs1 fc1 sc1 ls0 ws0">&#28201;&#28287;&#24230;&#20256;&#24863;&#22120;&#65292;</div><div class="t m0 x5 h4 yc ff2 fs1 fc1 sc1 ls0 ws0">BH1750</div><div class="t m0 x6 h3 yb ff1 fs1 fc1 sc1 ls0 ws0">&#20809;&#29031;&#20256;&#24863;&#22120;&#21644;&#28783;&#25511;&#27169;&#22359;</div><div class="t m0 x1 h4 yd ff2 fs1 fc1 sc1 ls0 ws0">RT-Thread</div><div class="t m0 x7 h3 ye ff1 fs1 fc1 sc1 ls0 ws0">&#29256;&#26412;&#65306;</div><div class="t m0 x8 h4 yd ff2 fs1 fc1 sc1 ls0 ws0">RT-Thread<span class="_ _5"> </span>V<span class="_ _5"> </span>4.0.3</div><div class="t m0 x1 h3 yf ff1 fs1 fc1 sc1 ls0 ws0">&#24320;&#21457;&#24037;&#20855;&#21450;&#29256;&#26412;&#65306;</div><div class="t m0 x9 h4 y10 ff2 fs1 fc1 sc1 ls0 ws0">RT-Thread-studio<span class="_ _5"> </span>v2.0.0</div><div class="t m0 xa h3 yf ff1 fs1 fc1 sc1 ls0 ws0">&#65292;</div><div class="t m0 xb h4 y10 ff2 fs1 fc1 sc1 ls0 ws0">STM32CubeMX<span class="_ _5"> </span>v6.1.0</div><div class="t m0 x1 h5 y11 ff3 fs0 fc0 sc1 ls0 ws0">RT-Thread</div><div class="t m0 xc h2 y12 ff1 fs0 fc0 sc0 ls0 ws0">&#20351;&#29992;&#24773;<span class="_ _4"></span>&#20917;&#27010;&#36848;</div><div class="t m0 x1 h3 y13 ff1 fs1 fc1 sc1 ls0 ws0">&#20869;&#26680;&#37096;&#20998;&#65306;&#35843;&#24230;&#22120;&#12290;</div><div class="t m0 x1 h3 y14 ff1 fs1 fc1 sc1 ls0 ws0">&#35843;&#24230;&#22120;&#65306;&#21019;&#24314;&#22810;&#20010;&#32447;&#31243;&#26469;&#23454;&#29616;&#19981;&#21516;&#30340;&#24037;&#20316;&#12290;</div><div class="t m0 x1 h3 y15 ff1 fs1 fc1 sc1 ls0 ws0">&#32452;&#20214;&#37096;&#20998;&#65306;<span class="ff2">I2C<span class="_ _0"> </span></span>&#26694;&#26550;<span class="ff2">,<span class="_ _5"> </span>Sensor<span class="_ _0"> </span></span>&#26694;&#26550;<span class="ff2">,<span class="_ _0"> </span>SA<span class="_ _4"></span>L<span class="_ _2"> </span></span>&#22871;&#25509;&#23383;&#25277;&#35937;&#23618;</div><div class="t m0 x1 h3 y16 ff2 fs1 fc1 sc1 ls0 ws0">I2C<span class="_ _0"> </span><span class="ff1">&#26694;&#26550;&#65306;<span class="_ _6"></span>&#20351;&#29992;<span class="_ _0"> </span><span class="ff2">I<span class="_ _4"></span>2C<span class="_ _0"> </span></span>&#26694;&#26550;&#26469;&#39537;&#21160;&#20809;&#29031;&#20256;&#24863;&#22120;<span class="ff2">,</span>&#19978;&#23618;&#20195;&#30721;&#21487;&#20197;&#25552;&#39640;&#20195;&#30721;&#30340;&#21487;&#37325;&#29992;&#24615;&#12290;</span></div><div class="t m0 x1 h3 y17 ff2 fs1 fc1 sc1 ls0 ws0">Sensor<span class="_ _0"> </span><span class="ff1">&#26694;&#26550;&#65306;&#20026;&#19978;&#23618;&#25552;&#20379;&#32479;&#19968;&#30340;&#25805;&#20316;&#25509;&#21475;&#65292;&#25552;&#39640;&#19978;&#23618;&#20195;&#30721;&#30340;&#21487;&#37325;&#29992;&#24615;&#65307;&#31616;&#21270;&#24213;</span></div><div class="t m0 x1 h3 y18 ff1 fs1 fc1 sc1 ls0 ws0">&#23618;&#39537;&#21160;&#24320;&#21457;&#30340;&#38590;&#24230;&#65292;&#21487;&#20197;&#38750;&#24120;&#31616;&#21333;&#30340;&#35835;&#21462;&#20256;&#24863;&#22120;&#37319;&#38598;&#25968;&#20540;&#12290;</div><div class="t m0 x1 h3 y19 ff2 fs1 fc1 sc1 ls0 ws0">SAL<span class="_ _2"> </span><span class="ff1">&#22871;&#25509;&#23383;&#25277;&#35937;&#23618;&#65306;&#32452;&#20214;&#23436;&#25104;&#23545;&#19981;&#21516;&#32593;&#32476;&#21327;&#35758;&#26632;&#25110;&#32593;&#32476;&#23454;&#29616;&#25509;&#21475;&#30340;&#25277;&#35937;&#24182;&#23545;&#19978;</span></div><div class="t m0 x1 h3 y1a ff1 fs1 fc1 sc1 ls0 ws0">&#23618;&#25552;&#20379;&#19968;&#32452;&#26631;&#20934;&#30340;<span class="_ _2"> </span><span class="ff2">BSD<span class="_ _0"> </span>Socket<span class="_ _0"> </span>API</span>&#65292;<span class="_ _7"></span>&#36825;&#26679;&#24320;&#21457;&#32773;&#21482;&#38656;&#35201;&#20851;&#24515;&#21644;&#20351;&#29992;&#32593;&#32476;&#24212;&#29992;&#23618;</div><div class="t m0 x1 h3 y1b ff1 fs1 fc1 sc1 ls0 ws0">&#25552;&#20379;&#30340;&#32593;&#32476;&#25509;&#21475;&#65292;<span class="_ _8"></span>&#32780;&#26080;&#38656;&#20851;&#24515;&#24213;&#23618;&#20855;&#20307;&#32593;&#32476;&#21327;&#35758;&#26632;&#31867;&#22411;&#21644;&#23454;&#29616;&#65292;<span class="_ _8"></span>&#26497;&#22823;&#30340;&#25552;&#39640;&#20102;&#31995;</div><div class="t m0 x1 h3 y1c ff1 fs1 fc1 sc1 ls0 ws0">&#32479;&#30340;&#20860;&#23481;&#24615;&#65292;&#26041;&#20415;&#24320;&#21457;&#32773;&#23436;&#25104;&#21327;&#35758;&#26632;&#30340;&#36866;&#37197;&#21644;&#32593;&#32476;&#30456;&#20851;&#30340;&#24320;&#21457;</div><div class="t m0 x1 h3 y1d ff1 fs1 fc1 sc1 ls0 ws0">&#36719;&#20214;&#21253;&#37096;&#20998;&#65306;</div><div class="t m0 x1 h3 y1e ff2 fs1 fc1 sc1 ls0 ws0">Webclient<span class="ff1">&#65306;</span></div><div class="t m0 xd h3 y1f ff1 fs1 fc1 sc1 ls0 ws0">&#25552;&#20379;&#35774;&#22791;&#19982;<span class="_ _2"> </span><span class="ff2">HTTP<span class="_ _5"> </span>Server<span class="_ _2"> </span></span>&#30340;&#36890;&#35759;&#30340;&#22522;&#26412;&#21151;&#33021;&#65292;&#20027;&#35201;&#20351;&#29992;<span class="_ _0"> </span><span class="ff2">http<span class="_ _5"> </span>post</span>&#12290;</div><div class="t m0 x1 h3 y20 ff2 fs1 fc1 sc1 ls0 ws0">BH1750FVI<span class="ff1">&#65306;</span></div><div class="t m0 xd h3 y21 ff1 fs1 fc1 sc1 ls0 ws0">&#35813;&#20256;&#24863;&#22120;&#36719;&#20214;&#21253;&#25552;&#20379;&#20102;&#20351;&#29992;&#20809;&#29031;&#24378;&#24230;&#20256;&#24863;&#22120;<span class="_ _0"> </span>&#22522;&#26412;&#21151;&#33021;&#65292;<span class="ff2">B<span class="_ _4"></span>H1750FVI<span class="_ _2"> </span></span>&#26159;&#19968;&#31181;</div><div class="t m0 xd h3 y22 ff1 fs1 fc1 sc1 ls0 ws0">&#29992;&#20110;&#20004;&#32447;&#24335;&#20018;&#34892;&#24635;&#32447;&#25509;&#21475;&#30340;&#25968;&#23383;&#22411;&#20809;&#24378;&#24230;&#20256;&#24863;&#22120;&#38598;&#25104;&#30005;&#36335;&#65292;&#20855;&#26377;&#36739;&#39640;&#30340;&#20998;&#36776;</div><div class="t m0 xd h3 y23 ff1 fs1 fc1 sc1 ls0 ws0">&#29575;&#21487;&#20197;&#25506;&#27979;&#36739;&#22823;&#33539;&#22260;&#30340;&#20809;&#24378;&#24230;&#21464;&#21270;&#65288;&#33539;&#22260;<span class="ff2">:<span class="_ _5"> </span>1lx<span class="_ _9"></span>-65535lx<span class="ff1">&#65289;</span>,<span class="ff1">&#29305;&#21035;&#36866;&#21512;&#23545;&#20809;&#29031;&#29615;</span></span></div><div class="t m0 xd h3 y24 ff1 fs1 fc1 sc1 ls0 ws0">&#22659;&#35201;&#27714;&#36739;&#39640;&#30340;&#22330;&#26223;&#12290;</div><div class="t m0 x1 h2 y25 ff1 fs0 fc0 sc0 ls0 ws0">&#30828;&#20214;&#26694;<span class="_ _4"></span>&#26550;</div></div><div class="pi" data-data='{"ctm":[1.611830,0.000000,0.000000,1.611830,0.000000,0.000000]}'></div></div> </body> </html>
评论
    相关推荐