×

英特尔爱迪生盖革背包开源项目

消耗积分:0 | 格式:zip | 大小:0.00 MB | 2023-07-13

殷谷光

分享资料个

描述

我们是一群创客,喜欢在维罗纳 FabLab(维罗纳是意大利北部的一个小镇)度过夜晚和周末修补技术,我们想通过这个指导来描述我们为英特尔创客大赛实现的项目。

我们的项目是一种便携式设备,由英特尔爱迪生驱动,配备了 GPS 接收器和盖革管,这是一种能够检测放射性的传感器。

我们的设备持续测量环境放射性和 GPS 位置,并将您的智能手机用作 WiFi 热点,并将它们保存在云数据库中。

你可以打开你的设备,把它放在你的背包里(这是这个名字的由来),拿起你的自行车,然后在你的城镇周围骑行。当您回到家时,您可以查看您在旅途中遇到的放射性水平的热图。

我们的项目不想模仿政府的环保活动,我们只想让公民参与进来,让人们意识到保护我们的星球是每个人的责任。

第 1 步:它是如何工作的

盖革管是充满特殊气体并保持高压 (500V) 的玻璃管。

当放射性同位素衰变时,它会产生 3 种类型的辐射:α、β、γ。

当盖革管受到辐射时,它会产生一个电信号,该信号会被托管Cooking Hacks Arduino 扩展板的电子电路检测到。

我们使用 J305ß 作为辐射传感器板的管子,因为它对 Beta 和 Gamma 辐射相当敏感。

这个防护罩堆叠在GROVE 基础防护罩上,后者堆叠在英特尔 Edison 开发板上。

GROVE GPS连接到 GROVE 底座护罩。

Intel Edison 检测 Geiger shield 产生的中断并计算称为 CPM(每分钟计数)的平均值,并且每 10 秒它查询 GPS 并使用当前 CPM 和 GPS 坐标将有效负载发送到云服务器。

第 2 步:硬件

这个项目不需要焊接!

只需堆叠所有防护板,从下到上:Intel Edison 开发板、GROVE Base 防护板、Geiger 防护板。

GPS 必须使用 GROVE 电缆连接到 GROVE Base shield 的 UART。

第 3 步:软件

 
pYYBAGSAhzuABGn5AADQYVJNCgk922.jpg
 

Intel Edison 上运行的软件由以下部分组成:

  • 安装在 Intel Edison 中的 nodejs 应用程序,它管理测量,通过 GPS 捕获位置,将数据保存在本地数据库中,在 LCD 显示器上设置响应并将它们发送到云端。

在云部分,我们有:

  • 运行 Apache 网络服务器和 nodejs 的 Ubuntu 服务器
  • 从 Geiger Backpack 接收有效载荷并将其保存在数据库中的节点红色流
  • 一个MySQL数据库
  • 带有用于数据可视化的热图插件的 Leaflet 地图的 HTML 页面
  • 用于数据库数据提取的php

从 github 下载源代码:https ://github.com/VeronaFabLabRepo/intel_maker_geiger

在“GeigerBackPack”文件夹中,您可以找到使用 Intel XDK IoT Edition 构建的项目 nodejs。

首先你要准备好Intel Edison,刷入最新固件,然后通过串口终端访问,配置系统和wifi网络。你可以按照Intel官方文档的步骤来做:Intel Edison on the arduino board

将 nodejs 更新为 0.12 版本并打包 npm。在 Intel Edison Linux 终端类型中:

$ vi /etc/opkg/base-feeds.conf

添加这些行:

src/gz 所有http://repo.opkg.net/edison/repo/all

src/gz 爱迪生http://repo.opkg.net/edison/repo/edison

src/gz core2-32 http://repo.opkg.net/edison/repo/core2-32

$ vi /etc/opkg/intel-iotdk.conf

添加这些行:

src mraa-upm http://repo.opkg.net/edison/repo/all

$ opkg 更新

$ opkg 升级 nodejs

$ opkg 升级 libmraa0

$ opkg 升级 sqlite3

更新服务 XDK-Daemon 以兼容 Indel XDK:

$ cd /opt/xdk-daemon

$./setup.sh

更新并安装以下软件包 npm:

$ npm install -g mraa serialport nmea request qs local-ip http dateformat dblite q events util

在您的计算机上安装并运行 Intel XDK IoT Edition:getting-started-with-the-intel-xdk-iot-edition

打开项目 GeigerBackPack 并按下底部选项卡中的“上传”按钮。启动应用程序。10 秒后,您将看到 LCD 上显示的测量值,如果您想连接到 IntelEdison,您可以直接从浏览器中查看测量值:http://addressip:88/或所有 json 格式的测量值:http://addressip :88/日期/

每次打开 IntelEdison 电源时,都会自动启动 nodejs sketch。

第 4 步:让我们看看实际效果

 
poYBAGSAhz6AQjoiAABmvRyDKS4165.jpg
 

使用智能手机创建网络热点,ESSID GeigerIntelEdison和密码inteledison

只需一次,将串行终端连接到 IntelEdison 并添加您刚刚创建的热点网络。

盖革背包就做好了。

插入移动电源,将您的智能手机变成 WiFi 热点,然后开始吧!

第 5 步:让我们看看结果

 
pYYBAGSAh0KAfXFcAACxPiAq7ck401.jpg
 

转到http://104.40.139.35/Codiad/workspace/geigerBackPack/

选择时间段并查看您在乘车过程中遇到的放射性热图。

 


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

评论(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.jibsdb.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:"https://www.elecfans.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);