×

关于室内环境照明系统的节能和缺陷光的检测

消耗积分:2 | 格式:zip | 大小:0.33 MB | 2022-10-20

h1654155701.3944

分享资料个

描述

该项目是关于室内环境(家庭、办公室等)照明系统的节能和缺陷光的检测。

首先,我们从这样一个事实中得到了照明系统能量守恒的概念:即使在给定的环境中有足够的亮度,照明系统(例如:灯泡)的强度也会一直处于最大值。

因此,我们提出了一种解决方案,通过提供一种智能方式来处理给定环境中光的亮度(强度),从而节约能源。该项目的扩展导致检测故障照明系统并提供一种媒介来提醒电力部门维修或更换故障设备。

英特尔的计算模块称为英特尔爱迪生,比 SD 卡略大。爱迪生的专长是——它可以用于可穿戴设备,也足以控制机器人。它是 35.5 × 25.0 × 3.9 mm 的模块,还配备了 Linux 操作系统 Yocto。它具有板载 Wi-Fi 和蓝牙,非常适合物联网项目。我们可以远程连接到 Edison 并运行命令或访问文件系统。这通过 SSH 为开发人员提供了很大的灵活性。

 
poYBAGNQxguAY4TUAAsWsLXcGdU429.jpg
英特尔爱迪生主板
 

设置爱迪生

  • 闪烁您的 Edison 并在其上启用 Wi-Fi。
  • 将证书和密钥文件传输到 Edison。
  • 与 Edison 建立串行连接并运行此命令以安装 AWS IoT 开发工具包。
npm install aws-iot-device-sdk
  • 在 Intel XDK 中创建一个新项目,下载代码并粘贴。
  • 更改凭据。
  • 将温度传感器连接到 Edison 的 A2 引脚。
  • 上传并运行代码。

在职的

在组装和设置所有模块之后,我们用 Javascript (Node.js) 编写代码。

基本上在代码中,我们正在配置某些条件以有效利用能源。例如:在一个房间里,如果有足够的光线(阳光),则不需要将灯泡打开到最大强度级别。因此,我们在房间中使用光电传感器,连续检测环境中的光强度。光传感器将立即发送它所感知的光强度。现在当房间有足够的阳光时,会有更大的幅度读数(大约 700 的)来自它,这将显示在腻子(控制台窗口)中,这将转换为一个范围(0 到 1)并且光的强度是减少。

光线充足的房间

 
pYYBAGNQxhGAN0waAAhEsi93bUU461.jpg
假设绿盒子为房间
 

如果房间光线不好,则反向执行相同的过程

 
poYBAGNQxhWAeiIeAAfecaKfZAg145.jpg
房间提供环境强度。
 

下一个实现与故障灯的检测有关。在这里,我们将光电传感器放在灯泡的正下方。在白天,光电传感器感知到一定量的光并将读数发送到控制器。但是在晚上,如果光电传感器没有感应到任何值(由于灯泡故障),那么我们会发送电子邮件至电力部门维修或更换故障灯泡,如下所示。

 
poYBAGNQxhmAcpKDAAEFnQ40x-M306.jpg
发送给 PG&E 的电子邮件
 

 


声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容侵权或者其他违规问题,请联系本站处理。 举报投诉

评论(0)
发评论

下载排行榜

全部0条评论

快来发表一下你的评论吧 !

'+ '

'+ '

'+ ''+ '
'+ ''+ ''+ '
'+ ''+ '' ); $.get('/article/vipdownload/aid/'+webid,function(data){ if(data.code ==5){ $(pop_this).attr('href',"/login/index.html"); return false } if(data.code == 2){ //跳转到VIP升级页面 window.location.href="//m.obk20.com/vip/index?aid=" + webid return false } //是会员 if (data.code > 0) { $('body').append(htmlSetNormalDownload); var getWidth=$("#poplayer").width(); $("#poplayer").css("margin-left","-"+getWidth/2+"px"); $('#tips').html(data.msg) $('.download_confirm').click(function(){ $('#dialog').remove(); }) } else { var down_url = $('#vipdownload').attr('data-url'); isBindAnalysisForm(pop_this, down_url, 1) } }); }); //是否开通VIP $.get('/article/vipdownload/aid/'+webid,function(data){ if(data.code == 2 || data.code ==5){ //跳转到VIP升级页面 $('#vipdownload>span').text("开通VIP 免费下载") return false }else{ // 待续费 if(data.code == 3) { vipExpiredInfo.ifVipExpired = true vipExpiredInfo.vipExpiredDate = data.data.endoftime } $('#vipdownload .icon-vip-tips').remove() $('#vipdownload>span').text("VIP免积分下载") } }); }).on("click",".download_cancel",function(){ $('#dialog').remove(); }) var setWeixinShare={};//定义默认的微信分享信息,页面如果要自定义分享,直接更改此变量即可 if(window.navigator.userAgent.toLowerCase().match(/MicroMessenger/i) == 'micromessenger'){ var d={ title:'关于室内环境照明系统的节能和缺陷光的检测',//标题 desc:$('[name=description]').attr("content"), //描述 imgUrl:'https://'+location.host+'/static/images/ele-logo.png',// 分享图标,默认是logo link:'',//链接 type:'',// 分享类型,music、video或link,不填默认为link dataUrl:'',//如果type是music或video,则要提供数据链接,默认为空 success:'', // 用户确认分享后执行的回调函数 cancel:''// 用户取消分享后执行的回调函数 } setWeixinShare=$.extend(d,setWeixinShare); $.ajax({ url:"//www.obk20.com/app/wechat/index.php?s=Home/ShareConfig/index", data:"share_url="+encodeURIComponent(location.href)+"&format=jsonp&domain=m", type:'get', dataType:'jsonp', success:function(res){ if(res.status!="successed"){ return false; } $.getScript('https://res.wx.qq.com/open/js/jweixin-1.0.0.js',function(result,status){ if(status!="success"){ return false; } var getWxCfg=res.data; wx.config({ //debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。 appId:getWxCfg.appId, // 必填,公众号的唯一标识 timestamp:getWxCfg.timestamp, // 必填,生成签名的时间戳 nonceStr:getWxCfg.nonceStr, // 必填,生成签名的随机串 signature:getWxCfg.signature,// 必填,签名,见附录1 jsApiList:['onMenuShareTimeline','onMenuShareAppMessage','onMenuShareQQ','onMenuShareWeibo','onMenuShareQZone'] // 必填,需要使用的JS接口列表,所有JS接口列表见附录2 }); wx.ready(function(){ //获取“分享到朋友圈”按钮点击状态及自定义分享内容接口 wx.onMenuShareTimeline({ title: setWeixinShare.title, // 分享标题 link: setWeixinShare.link, // 分享链接 imgUrl: setWeixinShare.imgUrl, // 分享图标 success: function () { setWeixinShare.success; // 用户确认分享后执行的回调函数 }, cancel: function () { setWeixinShare.cancel; // 用户取消分享后执行的回调函数 } }); //获取“分享给朋友”按钮点击状态及自定义分享内容接口 wx.onMenuShareAppMessage({ title: setWeixinShare.title, // 分享标题 desc: setWeixinShare.desc, // 分享描述 link: setWeixinShare.link, // 分享链接 imgUrl: setWeixinShare.imgUrl, // 分享图标 type: setWeixinShare.type, // 分享类型,music、video或link,不填默认为link dataUrl: setWeixinShare.dataUrl, // 如果type是music或video,则要提供数据链接,默认为空 success: function () { setWeixinShare.success; // 用户确认分享后执行的回调函数 }, cancel: function () { setWeixinShare.cancel; // 用户取消分享后执行的回调函数 } }); //获取“分享到QQ”按钮点击状态及自定义分享内容接口 wx.onMenuShareQQ({ title: setWeixinShare.title, // 分享标题 desc: setWeixinShare.desc, // 分享描述 link: setWeixinShare.link, // 分享链接 imgUrl: setWeixinShare.imgUrl, // 分享图标 success: function () { setWeixinShare.success; // 用户确认分享后执行的回调函数 }, cancel: function () { setWeixinShare.cancel; // 用户取消分享后执行的回调函数 } }); //获取“分享到腾讯微博”按钮点击状态及自定义分享内容接口 wx.onMenuShareWeibo({ title: setWeixinShare.title, // 分享标题 desc: setWeixinShare.desc, // 分享描述 link: setWeixinShare.link, // 分享链接 imgUrl: setWeixinShare.imgUrl, // 分享图标 success: function () { setWeixinShare.success; // 用户确认分享后执行的回调函数 }, cancel: function () { setWeixinShare.cancel; // 用户取消分享后执行的回调函数 } }); //获取“分享到QQ空间”按钮点击状态及自定义分享内容接口 wx.onMenuShareQZone({ title: setWeixinShare.title, // 分享标题 desc: setWeixinShare.desc, // 分享描述 link: setWeixinShare.link, // 分享链接 imgUrl: setWeixinShare.imgUrl, // 分享图标 success: function () { setWeixinShare.success; // 用户确认分享后执行的回调函数 }, cancel: function () { setWeixinShare.cancel; // 用户取消分享后执行的回调函数 } }); }); }); } }); } function openX_ad(posterid, htmlid, width, height) { if ($(htmlid).length > 0) { var randomnumber = Math.random(); var now_url = encodeURIComponent(window.location.href); var ga = document.createElement('iframe'); ga.src = 'https://www1.elecfans.com/www/delivery/myafr.php?target=_blank&cb=' + randomnumber + '&zoneid=' + posterid+'&prefer='+now_url; ga.width = width; ga.height = height; ga.frameBorder = 0; ga.scrolling = 'no'; var s = $(htmlid).append(ga); } } openX_ad(828, '#berry-300', 300, 250);