รหัสสินค้า | SKU-00624 |
หมวดหมู่ | Accelerometers / Gyros / Compasses |
ราคา | 360.00 บาท |
ลงสินค้า | 1 ธ.ค. 2561 |
อัพเดทล่าสุด | 3 พ.ค. 2567 |
คงเหลือ | 0 ชิ้น |
#include <HMC5983.h> |
HMC5983 compass; |
boolean compass_rdy = false; |
uint8_t counter = 0; |
uint32_t last_read_time = 0; |
uint16_t read_time = 0; |
void readCompass_ISR() { |
compass_rdy = true; |
} |
void setup() { |
// put your setup code here, to run once: |
Serial.begin(250000); // this is going to be hot... :) |
while (!compass.begin(readCompass_ISR, 0)) { |
Serial.println("HMC5983 Problem"); |
delay(500); |
} |
} |
void loop() { |
// put your main code here, to run repeatedly: |
if (compass_rdy) { |
compass_rdy = false; |
double heading = compass.read(); // heading in 0-360º format |
read_time = (micros() - last_read_time) / 1000; |
last_read_time = micros(); |
if (fmod(counter, 1.5) == 0) { |
Serial.println("heading=" + String(heading, DEC) + ", ms=" + String(read_time, DEC)); |
} |
counter++; |
} |
} |
ชำระเงินค่าสินค้าโดยการโอนเงินเข้าบัญชีด้านล่าง โดยลูกค้าสามารถโอนเงินหลังทำรายการสั่งซื้อได้ทันทีไม่ต้องรอยืนยัน
หลังจากโอนเงินแล้วสามารถแจ้งชำระเงินได้ที่ เมนูแจ้งชำระเงิน
หรือชำระเงินผ่าน PayPal โดยคลิกที่ ชำระเงินออนไลน์
หน้าที่เข้าชม | 1,830,072 ครั้ง |
ผู้ชมทั้งหมด | 799,072 ครั้ง |
เปิดร้าน | 12 ธ.ค. 2558 |
ร้านค้าอัพเดท | 7 ก.ย. 2568 |