จำนวนชิ้น | ส่วนลดต่อชิ้น | ราคาสุทธิต่อชิ้น |
{{(typeof focus_pdata.price_list[idx+1] == 'undefined')?('≥ '+price_row.min_quantity):((price_row.min_quantity < (focus_pdata.price_list[idx+1].min_quantity - 1))?(price_row.min_quantity+' - '+(focus_pdata.price_list[idx+1].min_quantity - 1)):price_row.min_quantity)}} | {{number_format(((focus_pdata.price_old === null)?focus_pdata.price:focus_pdata.price_old) - price_row.price,2)}} บาท | {{number_format(price_row.price,2)}} บาท |
คงเหลือ | 151 ชิ้น |
จำนวน (ชิ้น) |
- +
|
ซื้อเลย หยิบลงตะกร้า ซื้อเลย หยิบลงตะกร้า คุณมีสินค้าชิ้นนี้ในตะกร้า 0 ชิ้น
ช่องทางสั่งซื้ออื่น ๆ
|
|
|
|
คุยกับร้านค้า | |
{{ size_chart_name }} |
|
หมวดหมู่ | GY/MELEXIS |
สภาพ | สินค้าใหม่ |
เพิ่มเติม | |
สภาพ | สินค้ามือสอง |
เกรด | |
สถานะสินค้า | |
ระยะเวลาจัดเตรียมสินค้า | |
เข้าร่วมโปรโมชั่น | |
ข้อมูล |
น้ำหนัก
บาร์โค้ด
ลงสินค้า
อัพเดทล่าสุด
|
รายละเอียดสินค้า |
เซ็นเซอร์GY-271 QMC5883L 3-axis Magnetic field วัดสนามแม่เหล็ก 3 แกนName: Q MC5883L module (three-axis magnetic field module) Model: GY-271 using chip: Q MC5883L Power supply: 3-5v Communication method: IIC communication protocol Measuring range: ±1.3-8 Gauss ติดตั้ง library ก่อนใช้งาน
U8g2 library: https://github.com/SGBotic/U8g2_Arduino
QMC5883L : https://github.com/e-Gizmo/QMC5883L-GY-271-Compass-module/blob/master/QMC5883L.rar?raw=true /*
Arduino with Test E033
GY-271 QMC5883L 3-axis Magnetic field For complete project details, visit:Arduinoshop99
*/
#include "Arduino.h" #include "U8g2lib.h" #include "Wire.h" #include "QMC5883L.h" QMC5883L compass; U8G2_SSD1306_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE); void setup(void) { Wire.begin(); Serial.begin(115200); compass.init(); u8g2.begin(); } void loop(void) { int x,y,z; compass.read(&x,&y,&z); float heading = atan2(y, x); float declinationAngle = 0.0404; heading += declinationAngle; if(heading < 0) heading += 2*PI; if(heading > 2*PI) heading -= 2*PI; float headingDegrees = heading * 180/M_PI; u8g2.firstPage(); do { u8g2.setFont(u8g2_font_ncenB10_tr); u8g2.drawStr(2,15,"x :"); u8g2.setCursor(20, 15); u8g2.print(x); u8g2.drawStr(2,30,"y :"); u8g2.setCursor(20, 30); u8g2.print(y); u8g2.drawStr(2,45,"z :"); u8g2.setCursor(20, 45); u8g2.print(z); u8g2.drawStr(2,60,"Radius:"); u8g2.setCursor(65, 60); u8g2.print(headingDegrees); } while ( u8g2.nextPage() );
} ![]() ![]() ![]() ![]() |
เงื่อนไขอื่นๆ |
|
Tags |