ข้อมูล
น้ำหนัก
บาร์โค้ด
ลงสินค้า
อัพเดทล่าสุด
รายละเอียดสินค้า
ผู้ผลิตระบุว่าเป็น Chip เก่า น่าจะเป็น UBlox รุ่น 6 เก่าปัจจุบันรุ่น 8  Chip Ublox อาจมีตำหนิดูเก่า แต่ก็ใช้งานได้

ราคาถูกสุดและใช้งานได้ดี มีความไวในการรับสัญญาณสูงและสายอากาศมีขนาดเล็กกระทัดรัด
ท้องฟ้าโปร่งใช้เวลาจับสัญญาณประมาณ 2-5 นาที

กรณีที่เคลื่อนย้ายออกจากจุดเดิมมากๆ จะใช้เวลาครั้งแรกนานขึ้น

ดูตัวอย่างการใช้่งาน คลิก

มี Sketch 3 ตัวอย่าง ให้ทดลองใช้ ดังนี้

1) ใช้กับ Library TinyGPS

จาก https://github.com/mikalhart/TinyGPS


2) ใช้กับ tinyGPS++


/****************************************************************************** TinyGPSPlus_GPS_Shield.ino TinyGPS++ Library Example for the SparkFun GPS Logger Shield By Jim Lindblom @ SparkFun Electronics February 9, 2016 https://github.com/sparkfun/GPS_Shield This example uses SoftwareSerial to communicate with the GPS module on pins 8 and 9. It uses the TinyGPS++ library to parse the NMEA strings sent by the GPS module, and prints interesting GPS information to the serial monitor. After uploading the code, open your serial monitor, set it to 9600 baud, and watch for latitude, longitude, altitude, course, speed, date, time, and the number of visible satellites. Resources: TinyGPS++ Library - https://github.com/mikalhart/TinyGPSPlus/releases SoftwareSerial Library Development/hardware environment specifics: Arduino IDE 1.6.7 GPS Logger Shield v2.0 - Make sure the UART switch is set to SW-UART Arduino Uno, RedBoard, Pro, etc. ******************************************************************************/ #include <TinyGPS++.h> // Include the TinyGPS++ library TinyGPSPlus tinyGPS; // Create a TinyGPSPlus object #define GPS_BAUD 9600 // GPS module baud rate. GP3906 defaults to 9600. // If you're using an Arduino Uno, RedBoard, or any board that uses the // 0/1 UART for programming/Serial monitor-ing, use SoftwareSerial: #include // LoRaWan Node B1284 lorawan.lnwshop.com RX 11 TX10
#define ARDUINO_GPS_RX 11 // GPS TX, Arduino RX pin #define ARDUINO_GPS_TX 10 // GPS RX, Arduino TX pin SoftwareSerial ssGPS(ARDUINO_GPS_TX, ARDUINO_GPS_RX); // Create a SoftwareSerial // Set gpsPort to either ssGPS if using SoftwareSerial or Serial1 if using an // Arduino with a dedicated hardware serial port #define gpsPort ssGPS // Alternatively, use Serial1 on the Leonardo // Define the serial monitor port. On the Uno, and Leonardo this is 'Serial' // on other boards this may be 'SerialUSB' #define SerialMonitor Serial void setup() { SerialMonitor.begin(9600); gpsPort.begin(GPS_BAUD); } void loop() { // print position, altitude, speed, time/date, and satellites: printGPSInfo(); // "Smart delay" looks for GPS data while the Arduino's not doing anything else smartDelay(1000); } void printGPSInfo() { // Print latitude, longitude, altitude in feet, course, speed, date, time, // and the number of visible satellites. SerialMonitor.print("Lat: "); SerialMonitor.println(tinyGPS.location.lat(), 6); SerialMonitor.print("Long: "); SerialMonitor.println(tinyGPS.location.lng(), 6); SerialMonitor.print("Alt: "); SerialMonitor.println(tinyGPS.altitude.feet()); SerialMonitor.print("Course: "); SerialMonitor.println(tinyGPS.course.deg()); SerialMonitor.print("Speed: "); SerialMonitor.println(tinyGPS.speed.mph()); SerialMonitor.print("Date: "); printDate(); SerialMonitor.print("Time: "); printTime(); SerialMonitor.print("Sats: "); SerialMonitor.println(tinyGPS.satellites.value()); SerialMonitor.println(); } // This custom version of delay() ensures that the tinyGPS object // is being "fed". From the TinyGPS++ examples. static void smartDelay(unsigned long ms) { unsigned long start = millis(); do { // If data has come in from the GPS module while (gpsPort.available()) tinyGPS.encode(gpsPort.read()); // Send it to the encode function // tinyGPS.encode(char) continues to "load" the tinGPS object with new // data coming in from the GPS module. As full NMEA strings begin to come in // the tinyGPS library will be able to start parsing them for pertinent info } while (millis() - start < ms); } // printDate() formats the date into dd/mm/yy. void printDate() { SerialMonitor.print(tinyGPS.date.day()); SerialMonitor.print("/"); SerialMonitor.print(tinyGPS.date.month()); SerialMonitor.print("/"); SerialMonitor.println(tinyGPS.date.year()); } // printTime() formats the time into "hh:mm:ss", and prints leading 0's // where they're called for. void printTime() { SerialMonitor.print(tinyGPS.time.hour()); SerialMonitor.print(":"); if (tinyGPS.time.minute() < 10) SerialMonitor.print('0'); SerialMonitor.print(tinyGPS.time.minute()); SerialMonitor.print(":"); if (tinyGPS.time.second() < 10) SerialMonitor.print('0'); SerialMonitor.println(tinyGPS.time.second()); }
#include "TinyGPS++.h"
#include "SoftwareSerial.h"

SoftwareSerial serial_connection(10, 11); //RX=pin 10, TX=pin 11
TinyGPSPlus gps;//This is the GPS object that will pretty much do all the grunt work with the NMEA data
void setup()
{
Serial.begin(9600);//This opens up communications to the Serial monitor in the Arduino IDE
serial_connection.begin(9600);//This opens up communications to the GPS
Serial.println("GPS Start");//Just show to the monitor that the sketch has started
}

void loop()
{
while(serial_connection.available())//While there are characters to come from the GPS
{
gps.encode(serial_connection.read());//This feeds the serial NMEA data into the library one char at a time
}
if(gps.location.isUpdated())//This will pretty much be fired all the time anyway but will at least reduce it to only after a package of NMEA data comes in
{
//Get the latest info from the gps object which it derived from the data sent by the GPS unit
Serial.println("Satellite Count:");
Serial.println(gps.satellites.value());
Serial.println("Latitude:");
Serial.println(gps.location.lat(), 6);
Serial.println("Longitude:");
Serial.println(gps.location.lng(), 6);
Serial.println("Speed MPH:");
Serial.println(gps.speed.mph());
Serial.println("Altitude Feet:");
Serial.println(gps.altitude.feet());
Serial.println("");
}
}

 3) หรือ Github
#include "TinyGPS++.h"
#include "SoftwareSerial.h"

SoftwareSerial serial_connection(10, 11); //RX=pin 10, TX=pin 11
TinyGPSPlus gps;//This is the GPS object that will pretty much do all the grunt work with the NMEA data
void setup()
{
Serial.begin(9600);//This opens up communications to the Serial monitor in the Arduino IDE
serial_connection.begin(9600);//This opens up communications to the GPS
Serial.println("GPS Start");//Just show to the monitor that the sketch has started
}

void loop()
{
while(serial_connection.available())//While there are characters to come from the GPS
{
gps.encode(serial_connection.read());//This feeds the serial NMEA data into the library one char at a time
}
if(gps.location.isUpdated())//This will pretty much be fired all the time anyway but will at least reduce it to only after a package of NMEA data comes in
{
//Get the latest info from the gps object which it derived from the data sent by the GPS unit
Serial.println("Satellite Count:");
Serial.println(gps.satellites.value());
Serial.println("Latitude:");
Serial.println(gps.location.lat(), 6);
Serial.println("Longitude:");
Serial.println(gps.location.lng(), 6);
Serial.println("Speed MPH:");
Serial.println(gps.speed.mph());
Serial.println("Altitude Feet:");
Serial.println(gps.altitude.feet());
Serial.println("");
}
}
เงื่อนไขอื่นๆ
Tags

วิธีการชำระเงิน

ธนาคารกรุงศรีอยุธยา จำกัด (มหาชน) สาขาบางอ้อ ออมทรัพย์
รายการสั่งซื้อของฉัน
เข้าสู่ระบบด้วย
เข้าสู่ระบบ
สมัครสมาชิก

ยังไม่มีบัญชีเทพ สร้างบัญชีใหม่ ไม่มีค่าใช้จ่าย
สมัครสมาชิก (ฟรี)
รายการสั่งซื้อของฉัน
ข้อมูลร้านค้านี้
ร้านlorawan
lorawan
จำหน่ายอุปกรณ์ Internet of Things เน้นอุปกรณ์ด้าน LoRaWan เช่น Node หรืออุปกรณ์สำหรับการนำไปประกอบเป็น Node หรือ Gateway ในลักษณะ DIY จำหน่ายชุด KIT เพื่อใช้ในการศึกษาการทำงาน ของ LoRaWan Node และ LoRaWan Gateway
เบอร์โทร : 062-1982256
อีเมล : m2mlorawan@gmail.com
ส่งข้อความติดต่อร้าน
เกี่ยวกับร้านค้านี้
สินค้าที่ดูล่าสุด
ดูสินค้าทั้งหมดในร้าน
สินค้าที่ดูล่าสุด
บันทึกเป็นร้านโปรด
Join เป็นสมาชิกร้าน
แชร์หน้านี้
แชร์หน้านี้

TOP เลื่อนขึ้นบนสุด
พูดคุย-สอบถาม