衡阳派盒市场营销有限公司

電子發(fā)燒友App

硬聲App

0
  • 聊天消息
  • 系統(tǒng)消息
  • 評論與回復(fù)
登錄后你可以
  • 下載海量資料
  • 學(xué)習(xí)在線課程
  • 觀看技術(shù)視頻
  • 寫文章/發(fā)帖/加入社區(qū)
會員中心
創(chuàng)作中心

完善資料讓更多小伙伴認識你,還能領(lǐng)取20積分哦,立即完善>

3天內(nèi)不再提示
創(chuàng)作
電子發(fā)燒友網(wǎng)>電子資料下載>電子資料>使用LM35溫度傳感器監(jiān)測食品行業(yè)冷庫的溫度

使用LM35溫度傳感器監(jiān)測食品行業(yè)冷庫的溫度

2022-11-23 | zip | 0.14 MB | 次下載 | 免費

資料介紹

描述

本項目將使用LM35溫度傳感器監(jiān)測食品行業(yè)冷庫的溫度。冷藏單元的預(yù)定義閾值溫度值由操作員設(shè)置。在 PyCharm 軟件的幫助下,當(dāng)前值顯示在監(jiān)視器上。如果超過閾值溫度,則會通過 Twilio 向用戶發(fā)送 SMS 警報以及存儲單元的當(dāng)前溫度讀數(shù)值。此外,LED 的點亮和蜂鳴器發(fā)出的蜂鳴聲提醒周圍的人員或操作員。溫度傳感器發(fā)送的數(shù)據(jù)存儲在 Bolt Cloud 中,這有助于使用機器學(xué)習(xí)隨時間進行溫度預(yù)測。Z-Score 分析有助于檢測溫度的任何突然變化。

電路連接

1 、LM 35溫度傳感器是本項目的主要單元。LM35 傳感器為 A0 引腳提供模擬輸入。Bolt 內(nèi)置了模數(shù)轉(zhuǎn)換器 (ADC),可將此模擬值轉(zhuǎn)換為數(shù)字值。然后這個數(shù)字值被發(fā)送到 Bolt Cloud。

握住 LM35 傳感器,使傳感器上寫有 LM35 文字的平面朝向您。在此配置中,左側(cè)引腳VCC 中間引腳V 輸出右側(cè)引腳接地引腳

連接面包板上的 LM35 傳感器。公頭/公頭跳線用于將 VCC 連接到 Bolt wifi 模塊的5V 引腳,V 輸出連接到A0 引腳,將 LM35 的接地引腳連接到 Bolt wifi 模塊的接地引腳 (GND)

2. LED 的短腿連接到面包板上的GND 引腳,而較長的腿連接到串聯(lián)的 330ohm 電阻的一端。電阻的另一端使用公/公跳線連接到GPIO (通用輸入/輸出)引腳 1 。

3. Buzzer長短腳分別通過公/公跳線連接到GPIO 引腳 4GND 引腳。

4.最后,使用 USB-A 轉(zhuǎn) Micro-USB 電纜將 Bolt wifi 模塊連接到筆記本電腦/個人電腦/充電器,以便通電。

?
?
?
pYYBAGN7IQSAWRrEAAAU5WCR2SY073.png
?
1 / 2 ? Bolt Wifi 模塊和電路
?

設(shè)備

?
?
?
poYBAGN7IQeAOx9TAAAiboh0FLg178.png
?
1 / 5 ? LM 35 傳感器
?

完整的電路

?
?
?
poYBAGN7IQqAImM1AAVndS5pt7M384.jpg
?
1 / 4
?

?

設(shè)置 ProductOnBolt Cloud

1.設(shè)置 Bolt wifi 模塊。

2.在這里,您將找到您的 Bolt API 密鑰和 Bolt 設(shè)備 ID。保存。

3.轉(zhuǎn)到 PRODUCTS 并制作一個新產(chǎn)品,為其命名并選擇如下所示的選項,然后單擊 DONE。

pYYBAGN7IRKAYKhMAAB9E-HlW1g742.png
?

4.進入配置,然后設(shè)置硬件并編寫預(yù)測溫度的代碼,然后保存。

poYBAGN7IRSAOtlgAACzr2SFCzw983.png
?
poYBAGN7IReAQsZQAACJ4JMTOow469.png
?

5.產(chǎn)品鏈接到設(shè)備并部署配置。

poYBAGN7IRmAaf5TAABLx4aXLIU758.png
?

制作 TWILIO 帳戶

Twilio 是第三方 SMS 功能提供商。它是一家云通信平臺即服務(wù) (PaaS) 公司Twilio 允許軟件開發(fā)人員以編程方式撥打和接聽電話,還可以使用其 Web 服務(wù) API 發(fā)送和接收文本消息。

1.使用您的郵件 ID 和頁面上提供的其他詳細信息進行注冊。然后 Twilio 將在您的郵件 ID 上發(fā)送一封驗證郵件,該郵件必須經(jīng)過驗證。

?
?
?
pYYBAGN7IR6AO_oUAABhFUVWtf4774.png
?
1 / 2
?

2.然后提供將發(fā)送 OTP 的手機號碼進行驗證。

?
?
?
pYYBAGN7ISGAKGi5AABHQNQ6oyM692.png
?
1 / 2
?

現(xiàn)在,您已入職。回答幾個問題,如下所示。

3.對于編碼,選擇“是”。然后選擇您喜歡的編碼語言。我選擇 Python對于目標,選擇“在項目中使用 Twilio”。對于消息傳遞,請從下面給出的選項中進行選擇。我為我的項目選擇了SMS

?
?
?
poYBAGN7ISWARNiOAAA5VRNjmLs132.png
?
1 / 4
?

4.現(xiàn)在,轉(zhuǎn)到 Twilio Dashboard 并選擇將提供試用號的選項。選擇那個號碼。該號碼將與您聯(lián)系。

?
?
?
pYYBAGN7ISeACq_KAACHIdex6EI111.png
?
1 / 2
?

5.最后,您將在 Twilio Dashboard 上獲得您的 Account SID、Auth Token、您的手機號碼和試用號。保存。

pYYBAGN7ISyAVuXIAACkV-luYXc561.png
?

下載并安裝 PYCHARM

PyCharm is an integrated development environment (IDE) used in computer programming, specifically for the Python language. It is developed by the Czech company JetBrains.It provides code analysis, a graphical debugger, etc. and supports Data Science with Anaconda. PyCharm is cross-platform, with Windows, macOS and Linux versions.

1. Download PyCharm by visiting http://www.jetbrains.com/pycharm/ and click DOWNLOAD (shown in black). Then select the type of OS you have and then download either OPEN SOURCE (COMMUNITY) which is completely free or PROFESSIONAL which is for free trail. I took open source. Then click Download button and wait for it to download.

?
?
?
poYBAGN7IS6AFjYvAADA3q8S8vs758.png
?
1 / 2
?

2. When it gets downloaded. Double click the file stored on your computer. Then follow the steps shown in the images below to install PyCharm.

3. Click NEXT. Select the folder where you want to install PyCharm. Select 64 bit launcher. Create a folder with name 'JetBrains'. Wait for PyCharm to install.

?
?
?
poYBAGN7ITGAUUfBAADK8IF4WKQ640.png
?
1 / 5
?

4. Click FINISH once installed. Click OK for 'Do not import settings'. Accept the terms and con5.ditions shown. Finally, click on 'Don't send'.

?
?
?
pYYBAGN7ITOAIh1TAADCO1L8cuw494.png
?
1 / 4
?

5. Now, open PyCharm. Select the screen colour DARCULA or INTELLIJ. Skip the next step (If you want, you can install UI themes as also). Then, wait for PyCharm to load. Then select the option CreateNewProject. Then give a name to your project. Make a new file as shown below and name it. Then you can start with your coding.

?
?
?
pYYBAGN7ITWAag8HAAFLRfNNtZI202.png
?
1 / 6
?

THEORY

Z-SCORE ANALYSIS

Z-scoreanalysis is used for anomaly detection i.e. anything outside of normal. When temperature increases or decreases suddenly, it is called anomaly and Z-score analysis detects this. Upper and lower bounds are found out using multiplication factor, frame size and input values from LM 35 sensor.

poYBAGN7ITqAVxXXAAAfxGnUmf0125.png
?

Mn is the mean of input data collected. Vi is the variance, r is the frame size i.e. number of input data points collected. I have collected 5 data points. C is the multiplication factor which is taken as 3 in my project. Tn gives the upper and lower threshold depending on + and - respectively in the formula shown.

WORKING

LM 35 sensor collects data every 5 minutes and sends it to Bolt Cloud.

I placed the setup in open for getting normal temperature. Then I put the setup in cold area quickly so that temperature decreases suddenly.

Then again, I placed the setup in open for normal temperature. Then, I took the setup in a hot area quickly so that temperature rise is quick.

The code checks if the temperature is within threshold limits or not by using data from LM 35 sensor. If it isn't in the limits, then Twilio sends the message on our mobile regarding threshold getting crossed.

The code also checks if there is sudden change in temperature (increase or decrease) beyond the upper and lower bounds. If there is, then Twilio sends the message on our mobile regarding sudden change in temperature.

Prediction graphs gets plotted using data from LM35 sensor to predict temperature in near future using machine learning. Sudden changes were made to temperature values to see the affect on the prediction.

The detailed explanation of code is given along with the code itself.

PREDICTIONGRAPH

poYBAGN7ITyAcCKhAACm8WLbUh8382.png
?

PredictedPoints shows number of future data points of temperature taht need to be predicted. No. of Polynomial Coefficients (value of n) indicates how many coefficients or elements should be present in the function. Number of polynomial coefficients decide the nature of predict history graph (shown in red). This graph gets plotted based on the nature of actual graph (shown in blue) and no. of polynomial coefficients. It helps to tune the machine learning model. Frame size indicates how many points on actual graph should be taken into consideration for plotting predict history graph. Predicted Graph (shown in blue) shows the value and nature of future data points and graphs respectively. The 3 parameters shown in the figure have to changed and set such that predicted data most closely imitates the actual data. This lead to future data being most accurate.

pYYBAGN7IT-AZXAEAAAhzQyI9pA187.png
No, of Polynomial Coefficients
?

OUTPUT

CodedOutputRegardingThresholdCrossing and Sudden Decrease in Temperature

?
?
?
poYBAGN7IUiAAnL2AAFEiOyv8rM564.png
?
1 / 2
?

MessageRegardingThresholdCrossing and Sudden Decrease in Temperature

pYYBAGN7IUuADTpQAAKAeJqLgRs175.jpg
?

CodedOutputRegardingThresholdCrossing and Sudden Increase in Temperature

?
?
?
poYBAGN7IU2AfBTxAAGYHVyn5Qs783.png
?
1 / 3
?

MessageRegardingThresholdCrossing and Sudden Decrease in Temperature

pYYBAGN7IVGALwbYAAKcMcEtyqs340.jpg
?

?


下載該資料的人也在下載 下載該資料的人還在閱讀
更多 >

評論

查看更多

下載排行

本周

  1. 1山景DSP芯片AP8248A2數(shù)據(jù)手冊
  2. 1.06 MB  |  532次下載  |  免費
  3. 2RK3399完整板原理圖(支持平板,盒子VR)
  4. 3.28 MB  |  339次下載  |  免費
  5. 3TC358743XBG評估板參考手冊
  6. 1.36 MB  |  330次下載  |  免費
  7. 4DFM軟件使用教程
  8. 0.84 MB  |  295次下載  |  免費
  9. 5元宇宙深度解析—未來的未來-風(fēng)口還是泡沫
  10. 6.40 MB  |  227次下載  |  免費
  11. 6迪文DGUS開發(fā)指南
  12. 31.67 MB  |  194次下載  |  免費
  13. 7元宇宙底層硬件系列報告
  14. 13.42 MB  |  182次下載  |  免費
  15. 8FP5207XR-G1中文應(yīng)用手冊
  16. 1.09 MB  |  178次下載  |  免費

本月

  1. 1OrCAD10.5下載OrCAD10.5中文版軟件
  2. 0.00 MB  |  234315次下載  |  免費
  3. 2555集成電路應(yīng)用800例(新編版)
  4. 0.00 MB  |  33566次下載  |  免費
  5. 3接口電路圖大全
  6. 未知  |  30323次下載  |  免費
  7. 4開關(guān)電源設(shè)計實例指南
  8. 未知  |  21549次下載  |  免費
  9. 5電氣工程師手冊免費下載(新編第二版pdf電子書)
  10. 0.00 MB  |  15349次下載  |  免費
  11. 6數(shù)字電路基礎(chǔ)pdf(下載)
  12. 未知  |  13750次下載  |  免費
  13. 7電子制作實例集錦 下載
  14. 未知  |  8113次下載  |  免費
  15. 8《LED驅(qū)動電路設(shè)計》 溫德爾著
  16. 0.00 MB  |  6656次下載  |  免費

總榜

  1. 1matlab軟件下載入口
  2. 未知  |  935054次下載  |  免費
  3. 2protel99se軟件下載(可英文版轉(zhuǎn)中文版)
  4. 78.1 MB  |  537798次下載  |  免費
  5. 3MATLAB 7.1 下載 (含軟件介紹)
  6. 未知  |  420027次下載  |  免費
  7. 4OrCAD10.5下載OrCAD10.5中文版軟件
  8. 0.00 MB  |  234315次下載  |  免費
  9. 5Altium DXP2002下載入口
  10. 未知  |  233046次下載  |  免費
  11. 6電路仿真軟件multisim 10.0免費下載
  12. 340992  |  191187次下載  |  免費
  13. 7十天學(xué)會AVR單片機與C語言視頻教程 下載
  14. 158M  |  183279次下載  |  免費
  15. 8proe5.0野火版下載(中文版免費下載)
  16. 未知  |  138040次下載  |  免費
八运24山下卦局| 百家乐官网赢的秘诀| bet365信誉好吗| 顶级赌场怎么样| e娱乐城棋牌| 娱乐城官方网| 明升信誉| 从江县| 百家乐官网庄家抽水| 玩百家乐官网新2娱乐城| 澳门百家乐官网赌博技巧| 巴比伦百家乐官网的玩法技巧和规则 | 百家乐投注心得和技巧| 百家乐大赢家客户端| 百家乐如何骗人| sp全讯网新2| 博九娱乐场| 易胜博百家乐官网输| 百家乐官网开户最快的平台是哪家 | 全讯网百导| 名仕国际棋牌下载| 百家乐官网tt娱乐| 百家乐官网大赌城| 金赞百家乐现金网| 百家乐稳赢战术技巧| 威尼斯人娱乐平台代理| 八大胜娱乐| 黔南| 百家乐官网实战路| 诚信百家乐在线平台| 三元玄空24山坐向开门| 金字塔百家乐的玩法技巧和规则| 大发888游戏备用网址| 祁东县| 百家乐官网庄闲必胜规| 百家乐注册送10彩金| 水果老虎机游戏下载| 石棉县| 恒利百家乐官网的玩法技巧和规则| 太阳城百家乐主页| 大发888博彩|