GY-273 HMC5883L 3-Axis Digital Compass Module

GY-273 HMC5883L 3-Axis Digital Compass Module
รหัสสินค้า A23
หมวดหมู่ Accelerometers / Gyros / Compasses
ราคา 60.00 บาท
สถานะสินค้า พร้อมส่ง
ลงสินค้า 26 พ.ค. 2560
อัพเดทล่าสุด 20 พ.ย. 2567
คงเหลือ 81 ชิ้น
จำนวน
ชิ้น
หยิบลงตะกร้า
บัตรประชาชน
บุ๊คแบ๊งค์
คุ้มครองโดย LnwPay

GY-273 Sensor Module Pin-outs

The device has five pins.  In most applications  (and this tutorial),  you will only be concerned with four of them.

Functional Description

This is a pretty complicated device, that by itself could take pages to describe.   This tutorial simply highlights the basics.

The Honeywell HMC5883L sensor used in the module is sensitive to the earths magnetic fields in three axes.  These axes are labeled as X, Y, and Z.     An output is provided for each of these axes that describes the position of these axes relative to the earth’s magnetic field.

As illustrated, twisting or turning the device  will provide the corresponding outputs.

GY-273 Arduino Basic Output Tutorial

In this tutorial, you will connect the GY-273, load a basic sketch and see an output to your serial monitor.  The purpose of this tutorial is to verify that you can read and output and to

Connect the Arduino to the GY-273

Just four connections are required.  Refer to the picture below.

Copy, Paste and Upload the GY-273 Example Sketch

#include <Wire.h> //I2C Arduino Library

#define addr 0x1E //I2C Address for The HMC5883

void setup(){
  
  Serial.begin(9600);
  Wire.begin();
  
  
  Wire.beginTransmission(addr); //start talking
  Wire.write(0x02); // Set the Register
  Wire.write(0x00); // Tell the HMC5883 to Continuously Measure
  Wire.endTransmission();
}


void loop(){
  
  int x,y,z; //triple axis data

  //Tell the HMC what regist to begin writing data into
  Wire.beginTransmission(addr);
  Wire.write(0x03); //start with register 3.
  Wire.endTransmission();
  
 
 //Read the data.. 2 bytes for each axis.. 6 total bytes
  Wire.requestFrom(addr, 6);
  if(6<=Wire.available()){
    x = Wire.read()<<8; //MSB x 
    x |= Wire.read(); //LSB x
    z = Wire.read()<<8; //MSB z
    z |= Wire.read(); //LSB z
    y = Wire.read()<<8; //MSB y
    y |= Wire.read(); //LSB y
  }
  
  // Show Values
  Serial.print("X Value: ");
  Serial.println(x);
  Serial.print("Y Value: ");
  Serial.println(y);
  Serial.print("Z Value: ");
  Serial.println(z);
  Serial.println();
  
  delay(500);
}


Open the Serial Monitor and Verify Your Output.

Your output should look something like this.  Once you’ve established that you have an output,  try turning your device along it’s various axes and view the results.

วิธีการชำระเงิน

  1. ชำระเงินค่าสินค้าโดยการโอนเงินเข้าบัญชีด้านล่าง โดยลูกค้าสามารถโอนเงินหลังทำรายการสั่งซื้อได้ทันทีไม่ต้องรอยืนยัน

  2. หลังจากโอนเงินแล้วสามารถแจ้งชำระเงินได้ที่ เมนูแจ้งชำระเงิน


หรือชำระเงินผ่าน PayPal โดยคลิกที่ ชำระเงินออนไลน์

ธนาคารกรุงเทพ จำกัด (มหาชน) สาขามหาวิทยาลัยเกษตรศาสตร์ ออมทรัพย์
บมจ. ธนาคารกสิกรไทย สาขามหาวิทยาลัยเกษตรศาสตร์ ออมทรัพย์
ธนาคารไทยพาณิชย์ จำกัด (มหาชน) สาขามหาวิทยาลัยเกษตรศาสตร์ ออมทรัพย์
บมจ. ธนาคารกรุงไทย สาขามหาวิทยาลัยเกษตรศาสตร์ ออมทรัพย์
ธนาคารทหารไทยธนชาต จำกัด (มหาชน) สาขาME BY TMB ออมทรัพย์
พร้อมเพย์ สาขา- -
Scan this!
ดิศรณ์ ตันติเกตุ
098-xxxxxx-2
Accept All Banks | รับเงินได้จากทุกธนาคาร
  • ค่าธรรมเนียม 3.9% + 11 THB
  • การชำระผ่าน PayPal คุณไม่จำเป็นต้องแจ้งชำระเงิน เนื่องจากระบบจะจัดการให้คุณทันที ที่คุณชำระเงินเสร็จสมบูรณ์

ติดตามร้านของเราผ่านแอพได้แล้ววันนี้
  • พิมพ์ “GenLogic” ในช่อง Search
  • หรือเข้าจากรายการร้านค้าโปรดของฉัน

  • ค้นหา
*ใส่ เบอร์มือถือ หรือ email ที่ใช้ในการสั่งซื้อ

เข้าร่วมร้านค้า Arduino4

ร้านGenLogic
ร้านGenLogic
/www.genlogic.co.th/
Join เป็นสมาชิกร้าน
251
สมัครสมาชิกร้านนี้ เพื่อรับสิทธิพิเศษ

สถิติร้าน Arduino4

หน้าที่เข้าชม1,830,072 ครั้ง
ผู้ชมทั้งหมด799,072 ครั้ง
เปิดร้าน12 ธ.ค. 2558
ร้านค้าอัพเดท7 ก.ย. 2568
รายการสั่งซื้อของฉัน
เข้าสู่ระบบด้วย
เข้าสู่ระบบ
สมัครสมาชิก

ยังไม่มีบัญชีเทพ สร้างบัญชีใหม่ ไม่มีค่าใช้จ่าย
สมัครสมาชิก (ฟรี)
รายการสั่งซื้อของฉัน
ข้อมูลร้านค้านี้
ร้านGenLogic
GenLogic
ขายบอร์ด Arduino และอุปกรณ์อื่นๆ ที่ใช้ร่วมกับ Arduino รวมถึง Microcontroller, Module, Breakout board, Sensor และอุปกรณ์อิเล็กทรอนิกส์ต่างๆ ในราคาถูก เหมาะสำหรับผู้ที่สนใจเกี่ยวกับ Arduino และการโปรแกรมระบบ Microcontroller และอิเล็กทรอนิกส์ทั่วไป และทำโปรเจคต่างๆ ร้านมีสินค้าสต็อกพร้อมจัดส่ง จัดส่งสินค้ารวดเร็วภายใน 1-2 วันทำการเท่านั้น
เบอร์โทร :
อีเมล : sale@genlogic.co.th
ส่งข้อความติดต่อร้าน
เกี่ยวกับร้านค้านี้
สินค้าที่ดูล่าสุด
ดูสินค้าทั้งหมดในร้าน
สินค้าที่ดูล่าสุด
บันทึกเป็นร้านโปรด
Join เป็นสมาชิกร้าน
แชร์หน้านี้
แชร์หน้านี้

TOP เลื่อนขึ้นบนสุด
พูดคุย-สอบถาม