Similar documents
AN INTRODUCTION TO PHYSICAL COMPUTING USING ARDUINO, GRASSHOPPER, AND FIREFLY (CHINESE EDITION ) INTERACTIVE PROTOTYPING

1.ai

Microsoft Word - 01李惠玲ok.doc

2/80 2

绝密★启用前

<4D F736F F D20B7A2D0D0B9C9B7DDBCB0D6A7B8B6CFD6BDF0B9BAC2F2D7CAB2FAB2A2C4BCBCAFC5E4CCD7D7CABDF0F4DFB9D8C1AABDBBD2D7D6AEB6C0C1A2B2C6CEF1B9CBCECAB1A8B8E6A3A8D0DEB6A9B8E5A3A9>

穨control.PDF

1 VLBI VLBI 2 32 MHz 2 Gbps X J VLBI [3] CDAS IVS [4,5] CDAS MHz, 16 MHz, 8 MHz, 4 MHz, 2 MHz [6] CDAS VLBI CDAS 2 CDAS CDAS 5 2

Microsoft Word - KSAE06-S0262.doc

第一章 出口退税制改革的内容

PaPaGO! PaPaGO! PaPaGO! PaPaGO! PaPaGO! PaPaGO!

Guide to Install SATA Hard Disks

Contents 1. Introduction of VK2828U7G5LF Features Appearance and Size Pins Working Conditions Normal Worki

说 明 根 据 上 海 市 公 共 信 用 信 息 归 集 和 使 用 管 理 办 法 ( 沪 府 令 38 号 ) 和 上 海 市 地 方 标 准 全 过 程 信 用 管 理 要 求 第 3 部 分 : 应 用 清 单 编 制 指 南 相 关 要 求, 本 市 公 共 信 用 信 息 应 用 事

审计署关于北京市密云县2012年机构运转支出情况的审计调查结果

2014zb9

(

中華民國山岳協會所屬隊會登山途徑說明

2009年总站工作计划-2009-0102

600247物华股份_ bnbqw.PDF

<4D F736F F D20B5C2C1A6CEF7D0C2BDAEBDBBCDA8D4CBCAE4BCAFCDC5B9C9B7DDD3D0CFDEB9ABCBBECAD7B4CEB9ABBFAAB7A2D0D0B9C9C6B1D5D0B9C9CBB5C3F7CAE9A3A8C9CFBBE1B8E C4EA33D4C23235C8D5B1A8CBCDA3A92E646F63>

McGraw-Hill School Education Group Physics : Principles and Problems G S 24

旅 句 良 年 理 了 來 不 不 更 更 說 識 更 樓 歷 練 靈 旅 論 不 了 契 諒 老 老 老 不 勵 老 不 良 論 漏 不 老 老 不 勵 不 了 了 老 論 利 行 老 見 不 見 更 老 玲 歷 老 料 理

冷熱衝擊試驗機、溫度控制器

WTO

BC04 Module_antenna__ doc

摘要

Untitled

AMP NETCONNECT

Research of numerical simulation of high strength steel welding residual stress and fatigue life By Chen Song

. 3. MOOC 2006 MOOC Automated Text Marker 2014 e-rater Yigal et al MOOC Coursera Edx 97

Table of Contents Design Concept 03 Copyrights & TradeMark 04 Special Notice 05 Notice to concerned 05 Installation and Registration Introduction 07 s

untitled

Microsoft Word - LS2303x_datasheet_v1.1.doc

正崴受讓公開說明書final.doc

水资源管理(十七)

声 明 本 人 郑 重 声 明 : 此 处 所 提 交 的 硕 士 学 位 论 文 基 于 等 级 工 鉴 定 的 远 程 考 试 系 统 客 户 端 开 发 与 实 现, 是 本 人 在 中 国 科 学 技 术 大 学 攻 读 硕 士 学 位 期 间, 在 导 师 指 导 下 进 行 的 研 究

硕 士 学 位 论 文 论 文 题 目 : 北 岛 诗 歌 创 作 的 双 重 困 境 专 业 名 称 : 中 国 现 当 代 文 学 研 究 方 向 : 中 国 新 诗 研 究 论 文 作 者 : 奚 荣 荣 指 导 老 师 : 姜 玉 琴 2014 年 12 月

Microsoft Word - LS20030~3_datasheet_v1.1beta1.doc

國立中山大學學位論文典藏.PDF

连 不 断 的 乳 制 品 安 全 负 面 报 道 的 影 响, 消 费 者 信 心 还 未 得 到 完 全 恢 复 ; 另 一 方 面 是 乳 制 品 零 售 价 格 居 高 不 下, 市 场 奶 类 商 品 价 格 上 涨 导 致 需 求 下 降, 在 年 度 所 谓 的 奶

Cover-3.indd, page Normalize

人 間 菩 提 Part 1 人 間 菩 提 Part 2 清 涼 菩 提 正 覺 修 行 清 心 發 願 自 重 ----

FP.pdf


Product Type Batteries (only) Circuit Breatkers & Load Protection Connection Devices Contactors Ethernet Switches, Stratix Switches I/O Modules; PLC N


Microsoft Word - A doc


Microsoft Word - 先玉335 copy.doc

Panaboard Overlayer help

98年度即測即評學科測試與即測即評即發證技術士技能檢定簡章

Microsoft Word 箕æ−¥ï¼‹å®ı稿;


<4D F736F F D20B773B0AAA4A4BFEFACECC2B2A4B628B6B6A7C7AAA D E65772E646F63>

Microsoft Word - MC-1613_datasheet_v1.x.doc

Bus Hound 5

邏輯分析儀的概念與原理-展示版

第一章 前言

(Microsoft Word - \244g\246a\247B\244\275\253H\245\365\244\247\275\325\254d\254\343\250s doc)

豐佳燕.PDF


36 监 管 与 会 计 口 径 差 异 下 的 贷 款 拨 备 率 达 标 及 监 管 研 究 总 第 44 期 失 准 备 金 是 指 商 业 银 行 在 成 本 中 列 支 用 以 抵 御 贷 款 风 险 的 准 备 金, 不 包 括 在 利 润 分 配 中 计 提 的 一 般 风 险 准 备

致 谢 本 人 自 2008 年 6 月 从 上 海 外 国 语 大 学 毕 业 之 后, 于 2010 年 3 月 再 次 进 入 上 外, 非 常 有 幸 成 为 汉 语 国 际 教 育 专 业 的 研 究 生 回 顾 三 年 以 来 的 学 习 和 生 活, 顿 时 感 觉 这 段 时 间 也

東吳大學

<4D F736F F D205F FB942A5CEA668B443C5E9BB73A740B5D8A4E5B8C9A552B1D0A7F75FA6BFB1A4ACFC2E646F63>


Logitech Wireless Combo MK45 English


els0xu_zh_nf_v8.book Page Wednesday, June, 009 9:5 AM ELS-0/0C.8

TX-NR3030_BAS_Cs_ indd


一 緒 論 近 年 來 國 內 高 樓 建 築 快 速 增 建, 建 商 大 致 注 重 於 基 地 最 大 使 用 效 益 上, 對 於 綠 化 環 境 的 貢 獻 僅 侷 限 於 法 令 的 最 低 標 準, 而 國 內 相 關 綠 化 法 規 及 政 策 對 於 建 築 量 體 空 間 之 屋

2003 5,,,, 4???,, 5,,, : (justice) dike dike,,,, (dikaios), 6,, 7, :,,,, 8, 9,,, 10 () 11, 12 4,,, 5,:,1999,1 6 []:??,,1996,19 7, 8,, 1957,7 9,37 10:,

27 :OPC 45 [4] (Automation Interface Standard), (Costom Interface Standard), OPC 2,,, VB Delphi OPC, OPC C++, OPC OPC OPC, [1] 1 OPC 1.1 OPC OPC(OLE f

Go构建日请求千亿微服务最佳实践的副本

廣州舊城區的保護和發展

南華大學數位論文

14 建筑环境设计模拟分析软件DeST--辅助商业建筑设计应用实例.doc

《医学英语》教学大纲

Microsoft Word - MC R_datasheet.doc

1

102-28

Python a p p l e b e a r c Fruit Animal a p p l e b e a r c 2-2


VHDL(Statements) (Sequential Statement) (Concurrent Statement) VHDL (Architecture)VHDL (PROCESS)(Sub-program) 2

Microsoft Word - 11月電子報1130.doc

Microsoft PowerPoint - Aqua-Sim.pptx

Microsoft Word - Literature in a New Key 12→ docx

彩色地图中道路的识别和提取

摘 要 張 捷 明 是 台 灣 當 代 重 要 的 客 語 兒 童 文 學 作 家, 他 的 作 品 記 錄 著 客 家 人 的 思 想 文 化 與 觀 念, 也 曾 榮 獲 多 項 文 學 大 獎 的 肯 定, 對 台 灣 這 塊 土 地 上 的 客 家 人 有 著 深 厚 的 情 感 張 氏 於

穨1-林聖欽.doc

Microsoft Word - 簡章.doc

5 : 67 ( ),,,,, : (1),,,,,,,, ( ),, ( : ) [ 1 ],, (2),,,, ;,,, [ 2 ] ( P1 2),,, (3),, [ 1 ] ( P1 1),,, [ 3 ] ( P1364),,,,, [ 4 ] ( P1135),,,,,,, [ 5 ]

列印


Microsoft Word - A _ doc

02 看 見 躍 動 的 創 新 力 量 04 矽 數 十 年 金 矽 創 意 十 年 有 成 16 築 夢 之 際 你 所 不 知 道 的 金 矽 獎 40 樂 在 其 中

我 什 麽 時 候 說 不 認 啊? 認 你 就 站 住 今 天 是 復 活 節 復 你 媽 呀 現 在! 你 聽 我 -- 我 還 沒 死, 你 復 什 麽 活 呀? 你 聽 我 說 完 再 要 復 都 我 先 復 啦! 復 活 節 不 是 這 個 意 思 呀 那 是 什 麽 意 思? 其 實 我

Transcription:

GPS GPSCircuitImplement 作者 : 陳躍升系級 : 通訊工程學系三甲學號 :D9932275 開課老師 : 趙啟時課程名稱 : 無線網路系統開課系所 : 通訊工程學系開課學年 : 101 學年度第 1 學期

中文摘要 (1) 目的 : 主要實踐課堂上老師所授予我們的內容, 以及了解 GPS 相關電路和訊息的接收和處理 (2) 過程及方法 : 此次 GPS 電路是以 Arduino UNO 這塊板子來做為它的中心處理器, 並以一塊 GPS 模組接上一條天線用來接收 GPS 訊號, 將收到的 GPS 訊號送到 Arduino UNO 板子在由此板子把訊號經過字串處理後經由電腦的 Serial Port 使電腦螢幕顯示 GPS 相關訊息, 以及送往在電路板上的 LCD 顯示器, 顯示時間以及經緯度, 來完成定時以及定位功能 (3) 結果 : 這次的結果主要分成兩部分, 第一部分是沒有經過字串處理的訊息, 完全的把從 GPS 收到的訊號完整地呈現在電腦螢幕, 像是 GPRMC 等等封包 ; 第二部分則是有經過字串處理, 由 Arduino UNO 板子將所收到的 GPS 訊息藉由判斷封包的名子來了解它的資料結構, 並將之把我們所需之訊息 ( 時間 經緯度 ) 切割出來並將它送往電腦以及 LCD 顯示器上 第一部分所獲得的結果都是衛星傳送給電路的直接訊息要靠了解它封包的資料結構才能完成, 且 LCD 因為螢幕的限制並無法正確顯示 ; 第二部分的結果是經過字串處理, 可以很直觀的了解現在時間以及經緯度, 且能顯示在 LCD 顯示器上 關鍵字 : 1. 訊號處理 2.Arduino UNO 3.Fritzing 4.Global Positioning System (GPS) 1 逢甲大學學生報告 epaper(2012 年 )

Abstract 1. Purpose: Mainly practice teacher granted in class, and to realize the GPS associated circuitry and signal receive process. 2. Procedure and Method: This GPS circuit is based on the board of Arduino UNO, Arduino UNO is the central processor of board. Use a GPS module connecting an antenna for receiving GPS signal. Then sent the receiving GPS signal to the Arduino UNO board which use the signal to do string handling, finally the board sent the processed signal through PC's serial port making the PC screen display relative signal of GPS, another monitor is the on board LCD module, display time, latitude and longitude. 3. Result: The result mainly divided into two parts, first part the signal is not string handling, sent the fully GPS signal making PC screen display, likes the packet of GPRMC;second part the signal is string handling, Arduino UNO board sent the receiving GPS signal by determine the name of packets and then realize it's data structure, finally display on PC monitor and LCD module the useful imformation likes time, latitude and longitude. First part the result are all the satellite sent the signal to the circuit and fully done by realize the packet's data structure, and LCD module has limit due to it's monitor;second part the result is string handling, it can direct realize about the time latitude and longitude, and can display on the LCD module. Keyword: 1.Signal Process 2.Arduino UNO 3.Fritzing 4.Global Positioning System (GPS) 2 逢甲大學學生報告 epaper(2012 年 )

目次 一. 電路圖二. 接收訊號顯示三. 程式碼四. 成果展示五. 心得六.GPS 資料搭配 GOOGLE MAP 七. 流程總結 P5 P6 P11 P17 P25 P26 P28 3 逢甲大學學生報告 epaper(2012 年 )

4 逢甲大學學生報告 epaper(2012 年 ). (1) Fritzing (2) Fritzing

5 逢甲大學學生報告 epaper(2012 年 ). 1. Arduino SerialMonitor (1)() (2)()

(3)() (4)() 6 逢甲大學學生報告 epaper(2012 年 )

2. RealTerm (1)() (2)() 7 逢甲大學學生報告 epaper(2012 年 )

(3)() (4)() 8 逢甲大學學生報告 epaper(2012 年 )

3. VisualGPS (1) GPS (2), ( 5 ), GPS,, 9 逢甲大學學生報告 epaper(2012 年 )

. Arduino, Arduino1.0.3 Arduino C (LikeC) 1.Arduino 2.Arduino (1) #include<softwareserial.h>// SoftwareSerialmySerial(3,4);// Arduino RX,TX voidsetup() {//setup(), 10 逢甲大學學生報告 epaper(2012 年 )

//Openserialcommunicationsandwaitforporttoopen: Serial.begin(9600);//RS-232 while(serial){ ;//waitforserialporttoconnect.neededforleonardoonly } //setthedatarateforthesoftwareserialport myserial.begin(9600);//arduino } voidloop()//runoverandover {//loop(), RESET if(myserial.available())// Serial.write(mySerial.read());// myserial.read(), //Serial.write() if(serial.available())// myserial.write(serial.read());// Arduino } ///////////////////////////////////////////////////////////////////// ///////////// (2) #include<softwareserial.h> #include<liquidcrystal.h>// LCD SoftwareSerialmySerial(3,4);// Arduino RX,TX #definebuffsiz100// inti=0; charbuffer[buffsiz];//gps char*parseptr;// charbuffidx;// uint8_thour,minute,second;// uint32_tlatitude,longitude;//, charlatdir,longdir;// charstatus; charf; LiquidCrystallcd(5,6,7,8,9,10,11);// LCD //LCD Arduino : 11 逢甲大學學生報告 epaper(2012 年 )

//LiquidCrystal(RS,RW,Enable,D4,D5,D6,D7) voidsetup() {//setup(), //Openserialcommunicationsandwaitforporttoopen: Serial.begin(9600);//RS-232 while(serial){ ;//waitforserialporttoconnect.neededforleonardoonly //setthedatarateforthesoftwareserialport myserial.begin(9600); lcd.begin(16,2);// LCD } voidloop()//runoverandover {//loop(), RESET uint32_ttmp; readline();// NMEA if(strncmp(buffer,"$gprmc",6)==0)// GPRMC //GPRMC : GNSS //GPRMC /*$GPRMC,090902.000,A,2410.8189,N,12038.9887,E,0.00,359.21,241212,,,A *6F $GPRMC RMC 090902.000 (.) A (A=,V=) 2410.8189 (.) N ((N)(S)) 12038.9887 (.) E ((E)(W)) 0.00 (0.0 1851.8 ) 359.21 (()) 241212 () */ {//hhmmsstimedata parseptr=buffer+7; tmp=parsedecimal(parseptr);// 12 逢甲大學學生報告 epaper(2012 年 )

hour=(tmp/10000+8)%24;// 2,, minute=(tmp/100)%100;//+8 second=tmp%100; parseptr=strchr(parseptr,',')+1;// status=parseptr[0]; parseptr+=2; //latitude latitude=parsedecimal(parseptr); if(latitude=0) { latitude*=10000; parseptr=strchr(parseptr,'.')+1; latitude+=parsedecimal(parseptr); } parseptr=strchr(parseptr,',')+1; //readlatituden/sdata if(parseptr[0]=',') latdir=parseptr[0]; //longitude parseptr=strchr(parseptr,',')+1; longitude=parsedecimal(parseptr); if(longitude=0) { longitude*=10000; parseptr=strchr(parseptr,'.')+1; longitude+=parsedecimal(parseptr); } parseptr=strchr(parseptr,',')+1; //readlongitudee/wdata if(parseptr[0]=',') longdir=parseptr[0]; //,,, Serial.print("Time:"); Serial.print(hour,DEC);Serial.print(':'); Serial.print(minute,DEC);Serial.print(':'); Serial.println(second,DEC); 13 逢甲大學學生報告 epaper(2012 年 )

// Serial.print("Lat:"); if(latdir=='n') Serial.print('N'); elseif(latdir=='s') Serial.print('S'); //, Serial.print(latitude/1000000,DEC);Serial.print('/'); Serial.print((latitude/10000)%100,DEC);Serial.print('/'); Serial.println((latitude%10000)*6/1000,DEC); // Serial.print("Long:"); if(longdir=='e') Serial.print('E'); elseif(longdir=='w') Serial.print('W'); //, Serial.print(longitude/1000000,DEC);Serial.print('/'); Serial.print((longitude/10000)%100,DEC);Serial.print('/'); Serial.println((longitude%10000)*6/1000,DEC); i=second%2;/* LCD, i, */ if(i==0) {//, lcd.clear();// LCD lcd.print("time:"); lcd.print(hour,dec);lcd.print(':'); lcd.print(minute,dec);lcd.print(':'); lcd.print(second,dec); second=second++; } else {//, lcd.clear();// LCD 14 逢甲大學學生報告 epaper(2012 年 )

lcd.print("lon:n");lcd.print(latitude/1000000,dec); lcd.print("."); lcd.print((latitude/10000)%100,dec); lcd.print((latitude/10000)*6/1000,dec); lcd.setcursor(0,1); delay(50);// 0.05, Arduino lcd.print("lat:e");lcd.print(longitude/1000000,dec); lcd.print("."); lcd.print((longitude/10000)%100,dec); lcd.print((longitude/10000)*6/1000,dec); } } } voidreadline(void) {// NMEA charc; buffidx=0;//startatbegninning if(myserial.available()) { while(1) { c=myserial.read(); if(c==-1) continue; if(c=='\n') continue; if((buffidx==buffsiz-1) (c=='\r'))//\r { buffer[buffidx]=0; return; } buffer[buffidx++]=c; } } } 15 逢甲大學學生報告 epaper(2012 年 )

uint32_tparsedecimal(char*str)// { uint32_td=0; while(str[0]=0) { if((str[0]>'9') (str[0]<'0')) returnd; d*=10; d+=str[0]-'0'; str++; } returnd; }. 1. GOOGLEMAP 16 逢甲大學學生報告 epaper(2012 年 )

2. (1): (2)GPS :(GPS) 17 逢甲大學學生報告 epaper(2012 年 )

18 逢甲大學學生報告 epaper(2012 年 ) (3)Arduino : GPS (4)LCD :LCD, LCD

3.( LCD) (1) GPS GPS(GlobalPositionSystem),,(Satellite),.GPS,,,,,, 3, GPS 4, 4,. (2): GPS, GPS ( TX) Arduino (Arduino RX ),Arduino ( TX) USB( RS232)( RX),, LCD,LCD,,(,), LCD. 19 逢甲大學學生報告 epaper(2012 年 )

(3) 20 逢甲大學學生報告 epaper(2012 年 )

(4) (5)_1 21 逢甲大學學生報告 epaper(2012 年 )

(5)_2 (6) 22 逢甲大學學生報告 epaper(2012 年 )

23 逢甲大學學生報告 epaper(2012 年 ) 4.( LCD) (1):,+8 (2): 3, GPS 4, 4,

(3) GPS,. Arduino LCD GPS GPS,, GPS. GPS, GPS, 11. GPS, Arduino,,,, GPS,, GPS,. GPS () GoogleMap, LCD,, googlemap,,. 24 逢甲大學學生報告 epaper(2012 年 )

.GPS GOOGLEMAP( ) (1) (2) (3) 25 逢甲大學學生報告 epaper(2012 年 )

(4) 26 逢甲大學學生報告 epaper(2012 年 )

27 逢甲大學學生報告 epaper(2012 年 ). 1. (1)( LCD) (2) ()_1

(2)()_2 (3) 28 逢甲大學學生報告 epaper(2012 年 )

(4)( VisualGPS,) 2. (1)( LCD),, GPS 29 逢甲大學學生報告 epaper(2012 年 )

(2)() (3) 30 逢甲大學學生報告 epaper(2012 年 )

31 逢甲大學學生報告 epaper(2012 年 ) (4) RealTerm (5) Arduino SerialMonitor

32 逢甲大學學生報告 epaper(2012 年 ) (6) LCD [] [] (7) GOOGLEMAP(NOTDONE)

參考文獻 1. 最簡單的互動設計 Arduino 一試就上手 作者 : 孫駿榮 吳明展 盧聰勇 http://www.books.com.tw/exep/prod/booksfile.php?item=0010491102 33 逢甲大學學生報告 epaper(2012 年 )