รหัสสินค้า | M1026 |
หมวดหมู่ | Gyro..Accelero..Magneto.. |
ราคา | 70.00 บาท |
น้ำหนัก | 3 กรัม |
สถานะสินค้า | พร้อมส่ง |
ลงสินค้า | 20 ม.ค. 2560 |
อัพเดทล่าสุด | 4 ก.ย. 2567 |
จำนวน | ชิ้น |
The ADXL345 is a small, thin, ultralow power, 3-axis accelerometer with high resolution (13-bit) measurement at up to ±16 g. Digital output data is formatted as 16-bit twos complement and is acces-sible through either a SPI (3- or 4-wire) or I2C digital interface.
The ADXL345 is well suited for mobile device applications. It measures the static acceleration of gravity in tilt-sensing appli-cations, as well as dynamic acceleration resulting from motion or shock. Its high resolution (3.9 mg/LSB) enables measurement of inclination changes less than 1.0°.
Several special sensing functions are provided. Activity and inactivity sensing detect the presence or lack of motion by comparing the acceleration on any axis with user-set thresholds. Tap sensing detects single and double taps in any direction. Free-fall sensing detects if the device is falling. These functions can be mapped individually to either of two interrupt output pins. An integrated, patent pending memory management system with a 32-level first in, first out (FIFO) buffer can be used to store data to minimize host processor activity and lower overall system power consumption.
Low power modes enable intelligent motion-based power management with threshold sensing and active acceleration measurement at extremely low power dissipation.
Features :
http://arduinolearning.com/code/arduino-adxl345-gy-291-example.php
https://github.com/jenschr/Arduino-librarie
http://forum.arduino.cc/index.php/topic,132879.0.html
Code
This needs the Adafruit library – https://github.com/adafruit/Adafruit_ADXL345
วงจร
The ADXL345 is well suited for mobile device applications. It measures the static acceleration of gravity in tilt-sensing applications, as well as dynamic acceleration resulting from motion or shock. Its high resolution (4 mg/LSB) enables measurement of inclination changes less than 1.0°.
Several special sensing functions are provided. Activity and inactivity sensing detect the presence or lack of motion and if the acceleration on any axis exceeds a user-set level. Tap sensing detects single and double taps. Free-fall sensing detects if the device is falling. These functions can be mapped to one of two interrupt output pins. An integrated, patent pending 32-level first in, first out (FIFO) buffer can be used to store data to minimize host processor intervention.
Again a module is easiest to use, here is atypical one that I used
Connection
I used the following connection from the module above to my Arduino
Arduino Connection | Module Connection |
5v | VCC |
Gnd | Gnd |
SDA | SDA |
SCL | SCL |
หน้าที่เข้าชม | 5,178,329 ครั้ง |
ผู้ชมทั้งหมด | 1,577,669 ครั้ง |
ร้านค้าอัพเดท | 11 ต.ค. 2568 |