-15%
- 描述
- Size Guide
- 評價 (0)
描述
描述
QMC5883L 三軸磁場感測器 電子指南針 電子羅盤傳感器
- 採用高品質沉金pcb,機器焊接工藝,保證品質
- QMC5883L 模組 (三軸磁場感測器)
- 使用晶片:QMC5883L
- 供電電源:3-5v
- 通信方式:IIC通信協議
- 測量範圍:±1.3-8 高斯
- 尺寸:13.9*18.5MM
數位輸出 Digtial compass 送排針
※產品規格
(1)尺寸:長18mm、寬16mm
(2)供電電壓:3.3V~5V
(3)排針間距:2.54mm(100mil)
(4)PCB小板集成了HMC5883L所需的所有電阻電容,
僅需外接電源VCC、地GND、SDA、SCL線就可以通過IIC/I2C接口讀取數據
※三軸電子羅盤IC Dcompass。是目前市面上最適合手機等手持設備的小尺寸,免校準、低功耗、低成本的電子羅盤(指南針),微型羅盤晶片。
(1)數位量輸出:2C數位量輸出接口,設計使用非常方便。
(2)迷你尺寸: 3x3x0.9mm LCC封裝,適合大規模量產使用。
(3)精度高:1-2度,內置12位A/D,OFFSET, SET/RESET電路,
不會出現磁飽和現象,不會有累加誤差。
(4)支援自動校準程序,簡化使用步驟,終端產品使用非常方便。
(5)內置自測試電路,方便量產測試,無需增加額外昂貴的測試設備。
(6)功耗低:供電電壓1.8V,功耗睡眠模式–2.5微安 測量模式–0.1mA
接線方法
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 |
#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); } |
輸出結果
GY-273 QMC5883 Module Electronic Compass Electronic Compass Axis Magnetic Sensor Module
- Chip QMC5883 modules (three-axis magnetic field module)
- GY-273
- Power supply :3-5v
- Means of communication: IIC communication protocol
- High Quality Atomic Market Prodcut
商品評價
目前沒有評價。