Make sure to comment out // the line of code you are not using. ADX元45 adxl = ADX元45() // USE FOR I2C COMMUNICATION * Comment Out The One You Are Not Using */ĪDX元45 adxl = ADX元45(10) // USE FOR SPI COMMUNICATION, ADX元45(CS_PIN) This is where you will let the library know whether you have setup your hardware for SPI or I2C communication. The first important selection to make is under the COMMUNICATION SECTION. Now that you have the example sketch open, let's go through and take a look at all the ways we can customize the ADX元45. Applicationsīelow you can reference the ADX元45 breakout board and pin functions. Furthermore, low power modes enable intelligent motion-based power management with threshold sensing and active acceleration measurement at extremely low power dissipation. Its high resolution (4 mg/LSB) enables measurement of inclination changes less than 1.0°. The ADX元45 is well suited to measure the static acceleration of gravity in tilt-sensing applications, as well as dynamic acceleration resulting from motion or shock. An integrated, patent pending 32-level first in, first out (FIFO) buffer can be used to store data to minimize host processor intervention. These functions can also be mapped to one of two interrupt output pins. All thresholds levels that trigger the activity, free-fall, and single tap/double tap events are user-set levels. Free-fall sensing compares the acceleration on all axes with the threshold value to know if the device is falling. Activity and inactivity sensing detect the presence or lack of motion. Whoa! What are those last three?! Yes, the ADX元45 has special sensing abilities! The single and double tap sensing detects when a single, or two simultaneous, acceleration events occur. Ultra Low Power: As low as 23 uA in measurement mode, 0.1uA in standby mode at 2.5V.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |