아두이노 GPS 쉴드 -안테나포함
(GPS Shield With Antenna)
개요
- 본 GPS 쉴드는 ublox사의 NEO-6M GPS 리시버 모듈을 기반으로 디자인된 아두이노 쉴드입니다.
- GPS 모듈의 RX, TX 핀을 쉴드상의 점퍼를 이용하여 아두이노의 D0-D7핀에 연결할 수 있습니다.
- software serialport 및 microSD카드 인터페이스를 지원합니다.
- 사용하기 편리하여 단지 시리얼 포트를 읽으면 GPS 데이터를 얻을 수 있습니다.
- 3.3V/5V 와 사용이 가능하며, 아래 문서 섹션의 데모코드를 아두이노에 업로드하면 아두이노의 시리얼 모니터 창이나, ublox사의 U-center software 를 설치 연결(9600bps)하면 GPS쉴드의 위치를 비주얼하게 확인 할 수 있습니다.
특징
- Arduino, Mega and Crowduino compatible
- With Micro SD interface
- 3.3v and 5v logical voltage compatible
- Active antenna design with high receive sensitivity, compatible normal antenna
- Extremely fast time to first fix at low signal level
- Operation temperature: -40°~ +85°
Package list
- GPS Shield PCBA X 1
- IPC Antenna X 1
문서
//at 9600 bps 8-N-1 //Computer is connected to Arduino //SoftSerial Shield is connected to the Software UART:D2&D3 #include <SoftwareSerial.h> SoftwareSerial SoftSerial(6, 7); unsigned char buffer[256]; // buffer array for data recieve over serial port int count=0; // counter for buffer array void setup() { SoftSerial.begin(9600); // the SoftSerial baud rate Serial.begin(9600); // the Serial port of Arduino baud rate. } void loop() { if (SoftSerial.available()) // if date is comming from softwareserial port ==> data is comming from SoftSerial shield { while(SoftSerial.available()) // reading data into char array { buffer[count++]=SoftSerial.read(); // writing data into array if(count == 256)break; } Serial.write(buffer,count); // if no data transmission ends, write buffer to hardware serial port clearBufferArray(); // call clearBufferArray function to clear the storaged data from the array count = 0; // set counter of while loop to zero } if (Serial.available()) // if data is available on hardwareserial port ==> data is comming from PC or notebook SoftSerial.write(Serial.read()); // write it to the SoftSerial shield } void clearBufferArray() // function to clear buffer array { for (int i=0; i<count;i++) { buffer[i]=NULL;} // clear all index of array with command NULL }
- pin description
- U-center software