51单片机GPS开发板 GPS模块 卫星导航定位 显示经纬度 送源程序.doc
《51单片机GPS开发板 GPS模块 卫星导航定位 显示经纬度 送源程序.doc》由会员分享,可在线阅读,更多相关《51单片机GPS开发板 GPS模块 卫星导航定位 显示经纬度 送源程序.doc(19页珍藏版)》请在三一办公上搜索。
1、51单片机GPS开发板GPS是电子爱好者非常热衷的一个话题,GPS在民用,军用,航海航天领域都有广泛的应用。许多登山户外活动爱好者也都配备有GPS设备,用于野外导航。GPS模块的价格越来越平民化,让越来越多的产品嵌入了GPS模块,电子爱好者学习研究GPS模块也不再是奢侈的事。我们配备的GPS模块是GS-89m-J 该模块是由韩国生产,采用的MTK芯片组,在功耗,价格,体积上都有相当的优势,采用的是30PIN贴片封装。注:发货时配的模块均为最新版本,可能与照片上的模块样子有所不同,特此说明,因为不同的GPS模块批次,表面标签可能印刷有所不同。笔者文章刊登于2010年7月无线电杂志“小巧实用的51
2、单片机GPS开发板”一文,文章中我们介绍51单片机GPS开发板基本原理与应用,大家也可以翻阅查看。51单片机GPS开发板,可以通过液晶屏实时显示GPS数据信息:卫星时间、经度、纬度、海拔高度等相关信息,开发板提供了12864液晶和TFT彩屏接口。开发板采用贴片元件设计工艺,供电可以使用外接电源或USB线缆供电,方便笔记本用户,以便到室外调试,用笔记本或上网本插个USB线就可以供电了,同时,开发板提供了RS232外部串行通信接口,可以通过PC机对开发板芯片进行在线烧写,同时,板上设有通信模式切换跳线,可以设置成3种串口通信模式,分别为:PC机-GPS模块;PC机-51单片机;51单片机-GPS模
3、块,即三者之间两两通信。 对于开发板使用的元件全部为贴片优质器件,电解电容使用钽电容,价格昂贵,性能稳定,质量可靠。以下是我们在2010年7月无线电杂志刊登了我们GPS开发板的文章,有兴趣的朋友也可以直接参阅无线电杂志,新华书店均有出售。产品标配清单:GPS开发板:1块串口线:1条USB供电线:1条外置GPS天线:1条TFT彩屏:1块配套光盘:1份标配售价:600元如需加购12864液晶屏,另加120元。单片机GPS开发板硬件原理:GPS开发板完整的电路图共由7部分单元电路组成,分别是稳压电路,单片机最小系统电路,显示电路,MAX232电平转换电路,AT89S系列单片机ISP下载口电路,通信跳
4、线设置电路,GPS模块外围电路。稳压电路给开发板提供5V VCC电源电压;由51单片机芯片,单片机振荡电路和单片机复位电路组成了单片机最小系统电路;12864液晶接口和TFT彩屏接口组成了显示电路;MAX232芯片及外转电路组成了RS232-TTL电平转换电路,它也是我们的串口ISP下载电路,这样我们就可以通过串口给板载的STC89C51芯片实现ISP在线下载程序,无需使用编程器,非常方便。J5为10芯标准ISP下载口;J6J11为串口通信模式设置跳线;U4为GPS模块,它的外转电路很简单,由几个电阻、电容、电池、发光管组成。GPS模组可以直接采用电平转换电路max232,将模块的串口和PC机
5、的串口连接,用PC机串口调试工具和GPS模块调试软件监控模块输出的数据,注意:模块的默认波特率为4800,PC机串口波特率必须设置成4800。如果没有接GPS天线或收不到卫星信号。模组上的LED灯一直常亮,如果收到有效的卫星信号LED开始闪烁。GPS数据格式支持 NMEA0183 V 3.01 数据协议。接下来,我们着重介绍一下开发板的GPS模块电路与数据解析原理,关于其它电路的原理,相信单片机爱好者都已经有所了解了。这里不再赘述。U4为GPS模块,4脚和5脚分别为串口接收和发送脚,GPS卫星接收下来的数据就是通过这两个脚输出的,我们到时候也是从这两个脚来解析数据,获得地理信息。这两个脚可以与
6、单片机的接收和发送脚相连,也可以通过MAX232电平转换后和PC机的串口相连。发光管D3为GPS模块的工作指示灯,通电常亮,接收到卫星开始闪烁,我们通过LED灯可以来判断GPS模块的当前工作状态。GPS模块的第22脚经过电阻R6与单片机的P1.0口相连,这是外部复位输入,模块内部有复位电路,提供复位信号。21脚为外置电池输入端,由3V的扭扣电池供电,由于GPS模块从卫星上收到的数据量很大,它要进行大量计算工作,因此,一些数据要进行保存,所以我们得给模块提供电池电源。1脚为VCC电压,电源电压为5V,和单片机供电电压一样。17脚为外置GPS天线的输入口,开发板配的是3米的外置GPS天线,可以让使
7、用者在室内进行实验,把天线拖在窗外即可接收。下面是我们进行实测的部分照片:这是我们的GPS开发板插上12864液晶显示屏的样子,板子右下角插上GPS外置天线。现在我们通过上网本的USB口提供给板子供电。打开电源开关,液晶屏显示开机提示信息:GPS 接收调试程序之后,出现授时、海拔字样,这时候GPS数据还没有从卫星上获取,GPS开机的过程是需要一定时间的,一般需要几十秒的样子,具体看信号环境。过一段时间后,屏幕出现GPS接收的卫星数据,刚开始数据不稳定,是会跳变的,过一会会稳定些。格式 NMEA0183 V3.01: GPGGA(1 次1 秒)、GPGSA(1 次5 秒)、GPGSV(1 次5
8、秒)、GPRMC(1 次1 秒)、GPVTG(1 次1 秒)、(GLL,或选用 MTK NMEA 指令格式)。下面是调试模组用串口监控到的数据:无卫星状态:$GPGGA,000355.026,8960.0000,N,00000.0000,E,0,0,137.0,M,13.0,M,*44$GPGSA,A,1,*1E$GPGSV,1,1,00*79$GPRMC,000355.026,V,8960.0000,N,00000.0000,E,0.00,0.00,060180,N*79$GPVTG,0.00,T,M,0.00,N,0.00,K,N*32$GPGGA,000356.026,8960.0000
9、,N,00000.0000,E,0,0,137.0,M,13.0,M,*47$GPRMC,000356.026,V,8960.0000,N,00000.0000,E,0.00,0.00,060180,N*7A$GPVTG,0.00,T,M,0.00,N,0.00,K,N*32$GPGGA,000357.026,8960.0000,N,00000.0000,E,0,0,137.0,M,13.0,M,*46$GPRMC,000357.026,V,8960.0000,N,00000.0000,E,0.00,0.00,060180,N*7B$GPVTG,0.00,T,M,0.00,N,0.00,K,N
10、*32$GPGGA,000358.026,8960.0000,N,00000.0000,E,0,0,137.0,M,13.0,M,*49$GPRMC,000358.026,V,8960.0000,N,00000.0000,E,0.00,0.00,060180,N*74$GPVTG,0.00,T,M,0.00,N,0.00,K,N*32$GPGGA,000359.026,8960.0000,N,00000.0000,E,0,0,137.0,M,13.0,M,*48$GPRMC,000359.026,V,8960.0000,N,00000.0000,E,0.00,0.00,060180,N*75$
11、GPVTG,0.00,T,M,0.00,N,0.00,K,N*32$GPGGA,000400.026,8960.0000,N,00000.0000,E,0,0,137.0,M,13.0,M,*43$GPGSA,A,1,*1E$GPGSV,1,1,00*79$GPRMC,000400.026,V,8960.0000,N,00000.0000,E,0.00,0.00,060180,N*7E$GPVTG,0.00,T,M,0.00,N,0.00,K,N*32$GPGGA,000401.026,8960.0000,N,00000.0000,E,0,0,137.0,M,13.0,M,*42$GPRMC,
12、000401.026,V,8960.0000,N,00000.0000,E,0.00,0.00,060180,N*7F$GPVTG,0.00,T,M,0.00,N,0.00,K,N*32$GPGGA,000402.026,8960.0000,N,00000.0000,E,0,0,137.0,M,13.0,M,*41$GPRMC,000402.026,V,8960.0000,N,00000.0000,E,0.00,0.00,060180,N*7C$GPVTG,0.00,T,M,0.00,N,0.00,K,N*32$GPGGA,000403.026,8960.0000,N,00000.0000,E
13、,0,0,137.0,M,13.0,M,*40$GPRMC,000403.026,V,8960.0000,N,00000.0000,E,0.00,0.00,060180,N*7D$GPVTG,0.00,T,M,0.00,N,0.00,K,N*32$GPGGA,000404.026,8960.0000,N,00000.0000,E,0,0,137.0,M,13.0,M,*47$GPRMC,000404.026,V,8960.0000,N,00000.0000,E,0.00,0.00,060180,N*7A$GPVTG,0.00,T,M,0.00,N,0.00,K,N*32$GPGGA,00040
14、5.026,8960.0000,N,00000.0000,E,0,0,137.0,M,13.0,M,*46$GPGSA,A,1,*1E有卫星状态:$GPGGA,090113.000,3958.2847,N,11616.6454,E,1,8,1.00,67.6,M,-6.7,M,*78$GPRMC,090113.000,A,3958.2847,N,11616.6454,E,0.00,0.00,080110,A*60$GPVTG,0.00,T,M,0.00,N,0.00,K,A*3D$GPGGA,090114.000,3958.2847,N,11616.6456,E,1,8,1.00,67.7,M
15、,-6.7,M,*7C$GPRMC,090114.000,A,3958.2847,N,11616.6456,E,0.00,0.00,080110,A*65$GPVTG,0.00,T,M,0.00,N,0.00,K,A*3D$GPGGA,090115.000,3958.2846,N,11616.6456,E,1,8,1.00,67.7,M,-6.7,M,*7C$GPRMC,090115.000,A,3958.2846,N,11616.6456,E,0.00,0.00,080110,A*65$GPVTG,0.00,T,M,0.00,N,0.00,K,A*3D$GPGGA,090116.000,39
16、58.2846,N,11616.6456,E,1,8,1.00,67.8,M,-6.7,M,*70$GPRMC,090116.000,A,3958.2846,N,11616.6456,E,0.00,0.00,080110,A*66$GPVTG,0.00,T,M,0.00,N,0.00,K,A*3D$GPGGA,090117.000,3958.2845,N,11616.6457,E,1,8,1.00,67.8,M,-6.7,M,*73$GPGSA,A,3,29,15,10,18,09,21,24,27,1.28,1.00,0.79*08$GPGSV,3,1,10,24,78,302,38,15,
17、77,207,42,29,36,238,48,10,33,073,24*76$GPGSV,3,2,10,21,29,310,39,08,22,054,18,15,276,42,27,14,167,36*7D$GPGSV,3,3,10,09,05,175,35,40,*45$GPRMC,090117.000,A,3958.2845,N,11616.6457,E,0.00,0.00,080110,A*65$GPVTG,0.00,T,M,0.00,N,0.00,K,A*3D$GPGGA,090118.000,3958.2846,N,11616.6457,E,1,8,1.00,67.8,M,-6.7,
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 51单片机GPS开发板 GPS模块 卫星导航定位 显示经纬度 送源程序 51 单片机 GPS 开发 模块 卫星 导航 定位 显示 经纬度 源程序
链接地址:https://www.31ppt.com/p-5018071.html