虫虫首页|资源下载|资源专辑|精品软件
登录|注册

hmc5883

  • 采用 STM32F103T8U6为主控芯片,陀螺仪MPU6050,磁力计hmc5883四轴飞行器

    采用 STM32F103T8U6为主控芯片,陀螺仪MPU6050,磁力计hmc5883四轴飞行器

    标签: stm36 mpu6050 磁力计 四轴飞行器

    上传时间: 2022-06-24

    上传用户:aben

  • cmos摄像头hmc5883+mpu6050的模拟灭火训练系统

    基于cmos摄像头hmc5883+mpu6050的模拟灭火训练系统

    标签: cmos 摄像头 mpu6050

    上传时间: 2022-07-06

    上传用户:fliang

  • MPU6050+hmc5883驱动程序

    MPU6050+hmc5883驱动程序                   

    标签: mpu6050 hmc5883 驱动程序

    上传时间: 2022-07-06

    上传用户:13692533910

  • Arduino学习笔记3_连接hmc5883L三轴电子罗盘传感器

    用途:测量地磁方向,测量物体静止时候的方向,测量传感器周围磁力线的方向。注意,测量地磁时候容易受到周围磁场影响,主芯片hmc5883 三轴磁阻传感器特点(抄自网上): 1,数字量输出:I2C 数字量输出接口,设计使用非常方便。 2,尺寸小: 3x3x0.9mm LCC 封装,适合大规模量产使用。 3,精度高:1-2 度,内置12 位A/D,OFFSET, SET/RESET 电路,不会出现磁饱和现象,不会有累加误差。 4,支持自动校准程序,简化使用步骤,终端产品使用非常方便。 5,内置自测试电路,方便量产测试,无需增加额外昂贵的测试设备。 6,功耗低:供电电压1.8V, 功耗睡眠模式-2.5uA 测量模式-0.6mA   连接方法: 只要连接VCC,GND,SDA,SDL 四条线。 Arduino GND -> hmc5883L GND Arduino 3.3V -> hmc5883L VCC Arduino A4 (SDA) -> hmc5883L SDA Arduino A5 (SCL) -> hmc5883L SCL (注意,接线是A4,A5,不是D4,D5) 源程序: #include <Wire.h> #include <hmc5883L.h> hmc5883Lcompass; voidsetup() { Serial.begin(9600); Wire.begin(); compass = hmc5883L(); compass.SetScale(1.3); compass.SetMeasurementMode(Measurement_Continuous); } voidloop() { MagnetometerRaw raw = compass.ReadRawAxis(); MagnetometerScaled scaled = compass.ReadScaledAxis(); float xHeading = atan2(scaled.YAxis, scaled.XAxis); float yHeading = atan2(scaled.ZAxis, scaled.XAxis); float zHeading = atan2(scaled.ZAxis, scaled.YAxis); if(xHeading < 0) xHeading += 2*PI; if(xHeading > 2*PI) xHeading -= 2*PI; if(yHeading < 0) yHeading += 2*PI; if(yHeading > 2*PI) yHeading -= 2*PI; if(zHeading < 0) zHeading += 2*PI; if(zHeading > 2*PI) zHeading -= 2*PI; float xDegrees = xHeading * 180/M_PI; float yDegrees = yHeading * 180/M_PI; float zDegrees = zHeading * 180/M_PI; Serial.print(xDegrees); Serial.print(","); Serial.print(yDegrees); Serial.print(","); Serial.print(zDegrees); Serial.println(";"); delay(100); }

    标签: Arduino 5883L 5883 HMC

    上传时间: 2013-12-15

    上传用户:stella2015

  • Arduino学习笔记3_连接hmc5883L三轴电子罗盘传感器

    用途:测量地磁方向,测量物体静止时候的方向,测量传感器周围磁力线的方向。注意,测量地磁时候容易受到周围磁场影响,主芯片hmc5883 三轴磁阻传感器特点(抄自网上): 1,数字量输出:I2C 数字量输出接口,设计使用非常方便。 2,尺寸小: 3x3x0.9mm LCC 封装,适合大规模量产使用。 3,精度高:1-2 度,内置12 位A/D,OFFSET, SET/RESET 电路,不会出现磁饱和现象,不会有累加误差。 4,支持自动校准程序,简化使用步骤,终端产品使用非常方便。 5,内置自测试电路,方便量产测试,无需增加额外昂贵的测试设备。 6,功耗低:供电电压1.8V, 功耗睡眠模式-2.5uA 测量模式-0.6mA   连接方法: 只要连接VCC,GND,SDA,SDL 四条线。 Arduino GND -> hmc5883L GND Arduino 3.3V -> hmc5883L VCC Arduino A4 (SDA) -> hmc5883L SDA Arduino A5 (SCL) -> hmc5883L SCL (注意,接线是A4,A5,不是D4,D5) 源程序: #include <Wire.h> #include <hmc5883L.h> hmc5883Lcompass; voidsetup() { Serial.begin(9600); Wire.begin(); compass = hmc5883L(); compass.SetScale(1.3); compass.SetMeasurementMode(Measurement_Continuous); } voidloop() { MagnetometerRaw raw = compass.ReadRawAxis(); MagnetometerScaled scaled = compass.ReadScaledAxis(); float xHeading = atan2(scaled.YAxis, scaled.XAxis); float yHeading = atan2(scaled.ZAxis, scaled.XAxis); float zHeading = atan2(scaled.ZAxis, scaled.YAxis); if(xHeading < 0) xHeading += 2*PI; if(xHeading > 2*PI) xHeading -= 2*PI; if(yHeading < 0) yHeading += 2*PI; if(yHeading > 2*PI) yHeading -= 2*PI; if(zHeading < 0) zHeading += 2*PI; if(zHeading > 2*PI) zHeading -= 2*PI; float xDegrees = xHeading * 180/M_PI; float yDegrees = yHeading * 180/M_PI; float zDegrees = zHeading * 180/M_PI; Serial.print(xDegrees); Serial.print(","); Serial.print(yDegrees); Serial.print(","); Serial.print(zDegrees); Serial.println(";"); delay(100); }

    标签: Arduino 5883L 5883 HMC

    上传时间: 2014-03-20

    上传用户:tianyi223

  • 四翼螺旋 原理图 pcb

    四翼螺旋各模块电路原理图,PCB板的PDF文件,主要传感器为MPU6050以及hmc5883

    标签: pcb 螺旋 原理图

    上传时间: 2019-06-16

    上传用户:1028