- APC220为DFRobot公司的模块,详细信息可见官网,其理论有效距离为1km。GPS模块为维特智能GPS,输出为多行数据,需解码分析。
- APC220模块共七个管脚,其中VCC接3.3V或5V,GND接GND,RX、TX接板上的串口输入输出,其余三管脚可置空。
- GPS模块共四管脚,VCC接3.3V,GND接GND,RX、TX分别接3,4管脚,模拟串口输入输出。
//The sketch is tested on: Romeo v2 (Leonardo)
#include <SoftwareSerial.h>
// The serial connection to the GPS module
SoftwareSerial ss(4