基于单片机防丢失设备的设计和实践
2021-07-19刘育胜宋鑫李永乐路婷刘立群王佳玉薛飞
刘育胜 宋鑫 李永乐 路婷 刘立群 王佳玉 薛飞



摘要:防止老人或者小孩走丢走失,还可以放在汽车里,利用GPS系统,设计实现了基于单片机的防丢失设备。设备利用液晶显示屏显示信息,并实时发送位置短信到手机传输当前位置的纬度和经度坐标,实现了定位与监测功能。测试结果表明,利用该设备和手机可以同时观察老人或小孩携带该设备时的定位信息。
关键词:单片机; GPS 定位;纬度;经度
中图分类号: TP368.1 文献标识码:A
文章编号:1009-3044(2021)13-0237-04
Abstract: In order to prevent the old people or children from getting lost, this paper designs and implements the anti-loss equipment based on single chip microcomputer by using GPS system. The device uses LCD to display information, and sends SMS to mobile phone in real time to transmit the latitude and longitude coordinates of the current position, so as to realize the positioning and monitoring functions. The test results show that the location information of the elderly or children can be observed simultaneously by using the device and mobile phone.
Key words: MCU; GPS Positioning; latitude; longitude
为防止老人或者小孩走丢,随时掌握老人所在的地点、时间等信息,也能帮助人们快速地找到自己的停放汽车等的位置,设计实现了基于单片机的防丢失设备。采用STC89C52单片机,采用LCD1602液晶屏,单片机与手机之间通过GSM短信模块发送数据,以短信的形式将检测到的当前位置的纬度和经度坐标信息发送给手机,以便实时监测老人或小孩和自己东西的位置。
1 系统设计
1.1系统总体设计
以STC89C52为中央处理器,GPS模块用采集数据,将数据发送给单片机后,单片机根据定位计算公式得出当前位置的经纬度信息和时间信息。经过LCD显示器处理后得出和时间信息SIM800A模块发送短信到设定的手机号上,将检测到的经纬度和时间信息展示在短信上。系统总体设计如图1所示。
1.2系统设计原理
系统利用GPS模块,采集观察点到卫星之间的距离,通过引脚串口将数值发送给单片机,单片机根據定位公式,计算出当前所在位置的经纬度坐标,单片机的串口连接到LCD1602液晶显示屏上[1]。……
