รหัสสินค้า | IN0014 |
หมวดหมู่ | GPS Module, GSM Module, SIM, |
ราคาปกติ | |
ลดเหลือ | 360.00 บาท |
สถานะสินค้า | พร้อมส่ง |
ลงสินค้า | 27 พ.ย. 2560 |
อัพเดทล่าสุด | 12 ส.ค. 2561 |
คงเหลือ | 2 ชิ้น |
จำนวน | ชิ้น |
Ublox NEO-6M GPS Module with EEPROM for MWC/AeroQuad with Antenna for Flight Control and Aircraft FZ0040
Description:
GPS modules NEO-6M, 3V power supply Universal
Module with ceramic destined antenna, super signal
EEPROM power down to save the configuration parameters data
LED signal indicator
With data backup battery
The default baud rate: 9600
Mounting Hole 3mm
Module size 23mm * 30mm
Antenna size :25mm*25mm
Cable Length:50mm
วิธีการต่อสาย
ในส่วนของ code ต้องแก้ ss.begin(4800); เป็น ss.begin(9800); ถึงใช้ได้ครับ
ตัวอย่างการใช้งาน NEO-6M Ublox/u-blox GPS Module
โค๊ดไลบารีแสดงพิกัด lat , lon ดาวน์โหลดได้ที่นี่
ตัวอย่าง code
#include
#include
/* This sample code demonstrates the normal use of a TinyGPS object.
It requires the use of SoftwareSerial, and assumes that you have a
4800-baud serial GPS device hooked up on pins 4(rx) and 3(tx).
*/
TinyGPS gps;
SoftwareSerial ss(4, 3);
void setup()
{
Serial.begin(115200);
ss.begin(9800); // ต้องแก้เป็น 9800 ถึงใช้ได้ครับ
Serial.print("Simple TinyGPS library v. "); Serial.println(TinyGPS::library_version());
Serial.println("by Mikal Hart");
Serial.println();
}
void loop()
{
bool newData = false;
unsigned long chars;
unsigned short sentences, failed;
// For one second we parse GPS data and report some key values
for (unsigned long start = millis(); millis() - start < 1000;)
{
while (ss.available())
{
char c = ss.read();
// Serial.write(c); // uncomment this line if you want to see the GPS data flowing
if (gps.encode(c)) // Did a new valid sentence come in?
newData = true;
}
}
if (newData)
{
float flat, flon;
unsigned long age;
gps.f_get_position(&flat, &flon, &age);
Serial.print("LAT=");
Serial.print(flat == TinyGPS::GPS_INVALID_F_ANGLE ? 0.0 : flat, 6);
Serial.print(" LON=");
Serial.print(flon == TinyGPS::GPS_INVALID_F_ANGLE ? 0.0 : flon, 6);
Serial.print(" SAT=");
Serial.print(gps.satellites() == TinyGPS::GPS_INVALID_SATELLITES ? 0 : gps.satellites());
Serial.print(" PREC=");
Serial.print(gps.hdop() == TinyGPS::GPS_INVALID_HDOP ? 0 : gps.hdop());
}
gps.stats(&chars, &sentences, &failed);
Serial.print(" CHARS=");
Serial.print(chars);
Serial.print(" SENTENCES=");
Serial.print(sentences);
Serial.print(" CSUM ERR=");
Serial.println(failed);
if (chars == 0)
Serial.println("** No characters received from GPS: check wiring **");
}
หน้าที่เข้าชม | 419,676 ครั้ง |
ผู้ชมทั้งหมด | 257,584 ครั้ง |
เปิดร้าน | 5 มิ.ย. 2560 |
ร้านค้าอัพเดท | 4 ก.ย. 2568 |