ความรู้แน่น ฟรีสำหรับชุมชน ArduinoAll ที่นี่เท่านั้น

ฟรีและดีที่สุด คอร์สอบรม Arduino + NodeMCU
ทำเพื่อแบ่งปัน ห้ามนำไปจำหน่าย หรือเก็บเงินค่าเรียน
  !!!


  


AllNewStep รับประกันคุณภาพทุกชิ้น วันจันทร์-ศุกร์แจ้งชำระสินค้าก่อน 14.00 จัดส่งทันทีวันนี้ค่ะ

กรุงเทพ /ภาคกลาง ได้พรุ่งนี้


*** สินค้าทุกชิ้น ถ้าสามารถทำรายการสั่งซื้อได้ แสดงว่ามีครบทุกรายการค่ะ *** 

พิมพ์ค้นหาบทความ หัวข้อกระทู้ และสินค้าในเว็บ AllNewStep ได้ที่นี่
QUOTE 

GY-NEO6MV2 Ublox

บอส

รับของมาวันนี้ลองต่อ ไฟที่ sensor ไม่ติดคับ

serial monitor ขึ้น GPS Start แล้วก็หยุดเลย นิ่งนานมากครับ 

ใช้ nodeMCUครับ ต่อขา D6 D7

 

#include "TinyGPS++.h"

#include "SoftwareSerial.h"

 

SoftwareSerial serial_connection(13, 12); //RXPin = 13, TXPin = 12;

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 starte

 

}

 

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

{

delay(2000);

//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);

delay(2000);

Serial.println("Longitude:");

Serial.println(gps.location.lng(), 6);

delay(2000);

Serial.println("Speed MPH:");

Serial.println(gps.speed.mph());

Serial.println("Altitude Feet:");

Serial.println(gps.altitude.feet());

Serial.println("");

}

}

QUOTE 
ความคิดเห็นที่ #1
บอส
ไม่มีไฟ ติดเลยนะครับที่ Sensor
QUOTE 
ความคิดเห็นที่ #2
บอส
ผมกลับมาใช้ code ของทางร้านแล้ว พอรัน serial monitor ขึ้น ⸮յ⸮⸮⸮5Q⸮⸮⸮AM⸮Start แล้วหยุดเลยครับ ไฟที่ sensor ไม่ติดเลยซักดวง
QUOTE 
ความคิดเห็นที่ #3
เจ้าของร้าน

ไปจะติดเมื่อรับสัญญาณได้ ลองทดลองในที่โล่งครับ 

แสดงความคิดเห็นที่ 1-3 จากทั้งหมด 3 ความคิดเห็น
ขาย ARDUINO
คุณภาพ อันดับ 1

ได้รับรางวัลร้านยอดเยี่ยม
ตั้งแต่ปี 2558
ขาย Arduino
วีดีโอสอน Arduino

สอน esp8266

สอน Arduino IoT
สอน Arduino แบบเร็ว

สอน NodeMCU

อุปกรณ์ Arduino

MEMBER ZONE

พูดคุย-สอบถาม