รหัสสินค้า | AS70195 |
หมวดหมู่ | Receiver/RTK/Timing |
ราคา | 430.00 บาท |
สถานะสินค้า | พร้อมส่ง |
จำนวน | ชิ้น |
Ublox NEO-M8M เป็น GPS Module ที่มีประสิทธิภาพสูงสุดของ Ublox ณ ปัจจุบันนี้ โดยสามารถทำการ Tracke ระบบนำทาง 2 ระบบได้ในเวลาเดียวกัน (by default จะเป็น GPS และ GNSS) ซึ่งต่างจาก Ublox รุ่นก่อน ที่ไม่สามารถทำได้ นอกจากนั้นยัง support ระบบ BeiDou (ระบบนำทางของ จีน), ระบบ SBAS และ ระบบ QZSS อีกด้วย
*** แจ้งเราทางอีเมล์หากต้องการ source code ที่ทางร้านได้จัดเตรียมไว้สำหรับลูกค้าที่ซื้อ GPS Module ตัวนี้ไป โดยผลการรันจะแจ้งค่า Latitude Longitude วัน/เวลา และค่าอื่นๆที่สำคัญ ครบถ้วน สามารถนำไปต่อยอดประยุกต์ใช้งานได้หลายแบบ ***
ตัวอย่างการต่อและการใช้งาน:
อ้างอิง: https://randomnerdtutorials.com/arduino-neo-m8n-gps-module/
To communicate with the NEO-6M GPS module, we’ll use software serial, so you can use any available Pins. We’ll use Pin5 (TX –> connects to the module RX) and Pin6 (RX –> connects to the module TX).
NEO-M8N GPS Module | Arduino |
VCC | 5V |
RX | Pin 5 |
TX | Pin 6 |
GND | GND |
To get raw GPS data you need to start a serial communication with the GPS module and read the available data.
The following code establishes a serial communication with the GPS module and reads the available data.
/*
Rui Santos & Sara Santos - Random Nerd Tutorials
Complete project details at https://RandomNerdTutorials.com/arduino-neo-m8n-gps-module/
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files.
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*/
#include <SoftwareSerial.h>
static const int RXPin = 6, TXPin = 5;
static const uint32_t GPSBaud = 9600;
// The serial connection to the GPS module
SoftwareSerial gpsSerial(RXPin, TXPin);
void setup(){
Serial.begin(9600);
gpsSerial.begin(GPSBaud);
}
void loop(){
while (gpsSerial.available() > 0){
// get the byte data from the GPS
byte gpsData = gpsSerial.read();
Serial.write(gpsData);
}
}
This sketch assumes you are using Pin 6 and Pin 5 as RX and TX serial pins to establish serial communication with the GPS module. If you’re using other pins you should edit that on the following lines:
static const int RXPin = 6, TXPin = 5;
Also, if your module uses a different default baud rate than 9600 bps, you should modify the code on the following line:
static const uint32_t GPSBaud = 9600;
Then, we create an instance of the SoftwareSerial on the pins defined earlier called gpsSerial.
// The serial connection to the GPS device
SoftwareSerial gpsSerial(RXPin, TXPin);
In the setup(), we initiate the Serial Monitor.
Serial.begin(9600);
Then, we initialize a serial communication with the GPS module.
gpsSerial.begin(GPSBaud);
In the loop(), the code listens to the GPS serial port, and when data is received from the module, it is printed in the serial monitor.
void loop(){
while (gpsSerial.available() > 0){
// get the byte data from the GPS
byte gpsData = gpsSerial.read();
Serial.write(gpsData);
}
}
<iframe allow="private-state-token-redemption;attribution-reporting" frameborder="0" height="1" id="google_ads_iframe_/1030006,42163123/randomnerdtutorials/content_6" marginheight="0" marginwidth="0" name="" scrolling="no" src="https://01830857b1e18262c7b509ce25cb3c0d.safeframe.googlesyndication.com/safeframe/1-0-45/html/container.html" title="3rd party ad content" width="1" data-is-safeframe="true" aria-label="Advertisement" data-google-container-id="9" data-load-complete="true" data-hooks="true"></iframe>Testing the Code
Upload the code to your board.
Make sure the antenna is connected and that the module or antenna is placed outside or next to a window so that it can get data from the satellites.
The module’s blue LED will start blinking when it finds a position fix.
The Serial Monitor will display NMEA sentences with GPS data (make sure to select the Serial Monitor baud rate to 9600).
Important: If you’re running this sketch for the first time, it may take a few minutes until the module gets a position fix. You’ll start getting actual data when the blue LED starts blinking. If you’re inside a building, it is very unlikely that you can get GPS data. Go outside or place your antenna outside to maximize your chances of catching a satellite signal.
You should get a bunch of information in the GPS standard language, NMEA. Each line you get in the serial monitor is an NMEA sentence.
NMEA stands for National Marine Electronics Association, and in the world of GPS, it is a standard data format supported by GPS manufacturers.
NMEA sentences start with the $ character, and each data field is separated by a comma.
$GNRMC,115209.00,A,4114.5500,N,00861.4900,W,0.129,,160125,,,D*XX
$GNVTG,,T,,M,0.129,N,0.239,K,D*XX
$GNGGA,115209.00,4114.5500,N,00861.4900,W,2,10,0.93,130.6,M,50.1,M,,0000*XX
$GNGSA,A,3,24,25,28,32,29,,,,,,,,1.65,0.93,1.37*XX
$GNGSA,A,3,78,66,67,77,,86,26,083,20*XX
$GLGSV,3,3,09,87,13,131,*XX
$GNGLL,4114.5500,N,00861.4900,W,115209.00,A,D*XX
There are different types of NMEA sentences. The type of message is indicated by the characters before the first comma.
The GN after the $ indicates it is a GPS position. The $GNGGA is the basic GNSS NMEA message, that provides 3D location and accuracy data.
In the following sentence:
$GNGGA,110827.00,4114.32485,N,00831.79799,W,1,10,0.93,130.6,M,50.1,M,,*5F
Here’s how the fields look for the M8N:
The other NMEA sentences provide additional information:
ชำระเงินค่าสินค้าโดยการโอนเงินเข้าบัญชีธนาคาร KBANK, SCB, BBL,TMB
กรุณาเก็บหลักฐานการโอนเงินของท่านไว้เพื่อแจ้งการชำระเงินด้วยค่ะ
ท่านสามารถแจ้งการชำระเงินผ่านระบบอัตโนมัติได้โดย Click Link ข้างล่างค่ะ
https://www.arduitronics.com/informpayment
หน้าที่เข้าชม | 15,393,408 ครั้ง |
ผู้ชมทั้งหมด | 5,896,486 ครั้ง |
เปิดร้าน | 21 พ.ค. 2556 |
ร้านค้าอัพเดท | 16 ก.ย. 2568 |