0
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
会员中心
创作中心
发布
  • 发文章

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
SEN0168

SEN0168

  • 厂商:

    DFROBOT

  • 封装:

    -

  • 描述:

    TRIPLEAXISACCELEROMETERBMA220

  • 数据手册
  • 价格&库存
SEN0168 数据手册
    Triple Axis Accelerometer BMA220(Tiny) SKU:SEN0168 Analog Gas Sensor(MQ2) SKU:SEN0127 Contents     1 Introduction 2 Specification 3 Connecting Diagram 4 Sample Code Introduction This Triple Axis Accelerometer with Bosch BMA220 is an ultra small triaxial, low-g acceleration sensor breakboard with I2C interface, aiming for lowpower consumer market applications. It allows measurement of accelerations in 3 perpendicular axes and thus senses tilt, motion, shock and vibration in cell phones, handhelds, computer peripherals, man-machine interfaces, virtual reality features and game controllers. With a size of only 2 mm x 2 mm, the Bosch BMA220 represents a new generation of acceleration sensors. The Tri-Axis Accelerometer integrates a multitude of features that acilitates its use especially in the area of motion detection applications, such as device orientation detection, gaming, HMI and menu browser control. It is highly configurable in order to give the designer full flexibility when integrating the sensor into his system. It can be used in sensing tilt, motion and shock vibrati By the way, we have collected some useful 3-axis data processing methods: How to Use a ThreeAxis Accelerometer for Tilt Sensing. Specification         Power supply: 2.0-3.6V Interface: I2C Acceleration range:±2g/±4g/±8g/±16g Ultra Low Power LED power indication Tiny size design and easy-to-use Compatible with Arduino controllers Size: 13x22mm Connecting Diagram Sample Code #include byte Version[3]; int8_t x_data; int8_t y_data; int8_t z_data; byte range=0x00; float divi=16; float x,y,z; void setup() { Serial.begin(9600); Wire.begin(); Wire.beginTransmission(0x0A); // address of the accelerometer // range settings Wire.write(0x22); //register address Wire.write(range); //can be set at"0x00""0x01""0x02""0x03", refer to Datash het on wiki // low pass filter Wire.write(0x20); //register address Wire.write(0x05); //can be set at"0x05""0x04"......"0x01""0x00", refer to D atashhet on wiki Wire.endTransmission(); } void AccelerometerInit() { Wire.beginTransmission(0x0A); // address of the accelerometer // reset the accelerometer Wire.write(0x04); // Y data Wire.endTransmission(); Wire.requestFrom(0x0A,1); while(Wire.available()) { // request 6 bytes from slave device #2 // slave may send less than requested Version[0] = Wire.read(); // receive a byte as characte } x_data=(int8_t)Version[0]>>2; Wire.beginTransmission(0x0A); // address of the accelerometer // reset the accelerometer Wire.write(0x06); // Y data Wire.endTransmission(); Wire.requestFrom(0x0A,1); // request 6 bytes from slave device #2 while(Wire.available()) // slave may send less than requested { Version[1] = Wire.read(); // receive a byte as characte } y_data=(int8_t)Version[1]>>2; Wire.beginTransmission(0x0A); // address of the accelerometer // reset the accelerometer Wire.write(0x08); // Y data Wire.endTransmission(); Wire.requestFrom(0x0A,1); while(Wire.available()) // request 6 bytes from slave device #2 // slave may send less than requested { Version[2] = Wire.read(); // receive a byte as characte } z_data=(int8_t)Version[2]>>2; x=(float)x_data/divi; y=(float)y_data/divi; z=(float)z_data/divi; Serial.print("X="); Serial.print(x); Serial.print(" "); Serial.print("Y="); // print the character Serial.print(y); Serial.print(" // print the character "); Serial.print("Z="); // print the character Serial.println(z); } void loop() { switch(range) //change the data dealing method based on the range u've set { case 0x00:divi=16; break; case 0x01:divi=8; break; case 0x02:divi=4; break; case 0x03:divi=2; break; default: Serial.println("range setting is Wrong,range:from 0to 3.Please che ck!");while(1); } AccelerometerInit(); delay(100); }   Powered By DFRobot © 2008-2017
SEN0168 价格&库存

很抱歉,暂时无法提供与“SEN0168”相匹配的价格&库存,您可以联系我们找货

免费人工找货
SEN0168
  •  国内价格 香港价格
  • 1+60.143781+7.18680
  • 3+53.051363+6.33930

库存:60

SEN0168
  •  国内价格
  • 1+58.69220
  • 3+50.19980
  • 7+47.45684

库存:60

SEN0168
  •  国内价格
  • 1+42.61908

库存:48