제조사 | OEM |
---|---|
브랜드 | 에듀이노 |
판매가 | 22,000원 |
적립금 | 220원 |
자체상품코드 | D-16 |
상품요약정보 | GPS 수신 |
국내·해외배송 | 국내배송 |
배송방법 | 택배 |
수량 |
COMMENT |
(최소주문수량 1개 이상 / 최대주문수량 0개 이하)
사이즈 가이드현재 상품과 관련된 상품들입니다. 함께 구매해보세요^^
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | #include <SoftwareSerial.h> #include <TinyGPS.h> /* 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(4800); 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 **"); } | cs |
상품의 사용후기를 작성해주세요.
글읽기 권한이 없습니다.
"19세 미만의 미성년자"는 출입을 금합니다!
no | photo | title | write | date | hit | point |
---|---|---|---|---|---|---|
4 | 결과값 | 장**** | 2019-06-11 | 736 | ||
3 | 잘 받았습니다 | 고**** | 2019-04-03 | 615 | ||
2 | 코드입력중 9600의 의미 [1] | 강**** | 2018-01-31 | 1089 | ||
1 | 넘 신기해요 ㅎㅎㅎ | 유**** | 2017-05-10 | 819 |
상품에 대해 궁금한 점을 해결해 드립니다.
글읽기 권한이 없습니다.
"19세 미만의 미성년자"는 출입을 금합니다!
no | category | title | write | date | hit |
---|---|---|---|---|---|
20 | 아두이노 gps 스마트폰 확인 가능여부 [1] | 이효인 | 2023-07-25 | 9 | |
19 | 문의 [1] | 이창민 | 2023-04-26 | 342 | |
18 | 납땜 [3] | wsh9602 | 2021-10-05 | 308 | |
17 | 안테나 상태 중고?? | tomcruser | 2020-06-01 | 386 | |
16 | 안테나 상태 중고?? | 2020-06-02 | 304 |