



下載本文檔
版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
1、 遠程監控系統通過SMS發送電子郵件-Remote MonitAbstract:Thisapplicationnotedemonstrateshowtomakeasimplesystemthatmonitorstemperatureandanalogvoltagesremotely.Onmeetingcertainalarmconditions,thesystemcansendSMSmessages,whicharethenconvertedtoE-mailandforwardedtothedesignatedE-mailaddress.Syste
2、mcomponents:PIC®microcontroller(PIC16F877)1-Wire®temperaturesensor(DS18S20)8-channel12-bit,serialA/Dconverter(MAX127)GSMmodem.SMStoE-mailconversioAbstract: This applicationnote demonstrates how to make a simple system that monitors temperature and analog voltages remotely. On meeting certa
3、in alarm conditions, the systemcansendSMSmessages, which are then converted to E-mail and forwarded to the designated E-mail address.System components:1. PIC® microcontroller (PIC 16F877)2. 1-Wire® temperature sensor (DS18S20)3. 8-channel12-bit, serial A/D converter (MAX127)4. GSM modem
4、.5. SMS to E-mail conversion service provided by TynTec.Download source code for this project:·Project objective and advantagesThe project objective is to send E-mail messages automatically when programmed thresholds are met. A user programs alarm thresholds for temperature and analog input. Wh
5、en any of the alarm conditions are met, the system will send a standard SMS message using the GSM module. The SMS message must be sent to the mobile number designated by TynTec. The SMS message is then converted into an E-mail message and forwarded to the designated E-mail address by TynTec's 2
6、Way SMS messaging service. Figure 1 outlines the project concept.There are several advantages to this system setup.· This is an easy way to send E-mail that is automatically generated without human intervention.· It is simple way to monitor temperature and voltages remotely.· The syst
7、em can send both E-mail and SMS messages.· NO PC intervention is required to achieve the above operations.· The system avoids complex TCP/IPconnectivity issues, which can be particularly problematic in areas where GPRS coverage is not present.Figure 1.Detailed system specificsA BASIC compi
8、ler, the Proton+ for the PIC microcontrollers provided by Crownhill, is used (). The PIC 16F877 was installed on a Proton Dev development board provided by Crownhill. The standard 16 x 2 LCD module was replaced with a 20 x 4 LCD module. The Proton+ compiler supports the 4 x 20 LCD module via the
9、9;PRINT' command.The DS18S20 temperature sensor is used. The DS18S20 uses the Dallas Semiconductor 1-Wire protocol, and is connected to PortCpin0 of the PIC. Make sure that the DQ pin has a 4.7kThe MAX127 12-bit, 8-channel ADC with a serial interface is used. The MAX127 uses two I/O pins of the
10、PIC (PortB pin 0 and pin 1), but this example only uses the device's first channel. Code can be adjusted easily to use the other channels if necessary. Users should make sure that the SDL and SDA pins (pin 5 and pin 7, respectively) have 4.7kA Light Dependant Resistor (LDR) is connected to 5V an
11、d then to ground via a 1kThe connection diagram is shown in Figure 2.Figure 2.Overview of code operation1. The PIC reads the analog input value. This operation is achieved in the MAX127IN subroutine. If the analog voltage is above the specified threshold, then the alarm flag, ALARMFLAG, will be set.
12、 Setting the ALARMFLAG to '1' indicates that an SMS needs to be sent.2. Next, the temperature will be read from the DS18S20. If the temperature is above the specified limit, then the ALARMFLAG will be set. Setting the ALARMFLAG to '1' indicates that an SMS needs to be sent.3. The cod
13、e will now determine whether or not to send an SMS message. If the ALARMFLAG is set, the code will go to a subroutine called SMS to send an SMS message to the designated mobile number.System setup procedure1.2. Modify the code at the following points.a) Line 87: If MAXREAD > 2047 THEN . This is w
14、here the analog-input threshold level will be set. The MAX127 is a 12-bit ADC, so it has 4096 steps. It is configured to have an input voltage range of 0 to 5V. Initially, the code is set with a 2.5V threshold.b) Line 119: If temp > 58 THEN At this point the temperature alarm threshold must be se
15、t. It is set at +29°C in the code provided. The reading from the DS18S20 is held in the 'temp' register. Dividing 'temp' by two gives the actual temperature in °C. Note that this code only works with positive temperatures.c) Line 268: HSEROUT "AT+CMGS=+447-" The d
16、estination mobile number provided by TynTec is specified here.d) Line 298: UNTIL SMSDELAY = 10 The delay between an SMS message transmission and a repeat 'scan' of the temperature and analog input is adjustable. It is set for a ten-minute delay, but can be adjusted for different situations.A sample e-mail sent from the system is shown in Figure 3.Figure 3.SummaryAfter following the above steps, the system should monitor temperature and analog input. If or when the trip thresholds are exceeded, an SMS message will be sent and will
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年安徽省中考歷史試卷真題及答案詳解(精校打印版)
- 中小學心理健康教育與學生心理健康素養提升論文
- 中學語文“思辨性閱讀與表達”教學策略與傳統文化教育的融合論文
- 艾弗格公司管理制度
- 苗圃地冬季管理制度
- 茶油樹基地管理制度
- 融入數字孿生的中職智慧園林學習空間構建與應用
- 管理學谷歌案例分析
- 視覺感知汽車領域應用分析
- 自動控制原理課程設計 (一)
- 概率論與數理統計(哈爾濱工程大學)-知到答案、智慧樹答案
- 2024年陜西水務發展集團有限公司招聘筆試沖刺題(帶答案解析)
- 中國哲學經典著作導讀智慧樹知到期末考試答案章節答案2024年西安交通大學
- MOOC 家庭與社區教育-南京師范大學 中國大學慕課答案
- 《醫療質量管理辦法》解讀
- 門診護士分診培訓課件
- 2024年湖南省普通高中學業水平考試數學試卷及答案
- 0-3歲兒童中醫健康管理課件
- 債權融資方式
- 地鐵線反恐安全培訓內容
- 《跨部門溝通與協調》課件
評論
0/150
提交評論