Locale Icon
English
  • Forums

    Popular Forums

    • LTspice
    • Video
    • Power Management
    • RF & Microwave
    • Precision ADCs
    • FPGA Reference Designs

    Product Forums

    • Amplifiers
    • Clocks & Timers
    • Data Converters
    • Direct Digital Synthesis (DDS)
    • Energy
    • Interface and Isolation
    • MEMS Inertial Sensors
    • Power Management
    • Processors & DSP
    • Processors & Microcontrollers
    • Switches & Multiplexers
    • Sensors
    • Voltage References
    View All

    Application Forums

    • A2B Audio Bus
    • Audio
    • Automated Test Equipment (ATE)
    • Condition-Based Monitoring
    • Depth, Perception & Ranging Technologies
    • Embedded Vision Sensing Library
    • Motor Control Hardware Platforms
    • Precision Technology Signal Chains Library
    • Video
    • Wireless Sensor Networks Reference Library

    Design Center Forums

    • ACE Evaluation Software
    • ADEF System Platforms
    • Design Tools & Calculators
    • FPGA Reference Designs
    • Linux Software Drivers
    • Microcontroller no-OS Drivers
    • Precision Studio
    • Power Studio Designer
    • Power Studio Planner
    • Reference Designs
    • Robot Operating System (ROS) SDK
    • Signal Chain Designer
    • Software Interface Tools
  • Learn

    Highlighted Webinar

    Fast-Track Certification: Leveraging IC Safety App Notes for Functional Safety Designs

    Stop guessing, start certifying. Learn how to use IC safety application notes to streamline your FMEDA and meet IEC 61508 and ISO 13849 standards with...

    Places

    • ADI Academy
    • ADI Webinars
    • EZ Blogs
    • Video Annex
    • Virtual Classroom

    Libraries

    • 3D ToF Depth Sensing Library
    • Continuous-Wave CMOS Time of Flight (TOF) Library
    • Embedded Vision Sensing Library
    • Gigabit Multimedia Serial Link (GMSL) Library
    • Optical Sensing Library
    • Other Products Library
    • Precision Technology Signal Chains Library
    • Software Modules and SDKs Library
    • Supervisory Circuits Library
    • Wireless Sensor Networks Library

    Upcoming Learning & Events

    • 3 Real World Methods to Make Your Power Supply More Intelligent
    View All Webinars
  • Community Hub

    Challenge Yourself!

      New KCC Quiz AQQ299 about Opamp Open Loop Gain and LTspice

      A kind proposal from Al Butvidas 1. Quote of the month: " A good friend calls you in jail. A great friend bails you out of jail. Your best friend sits...

    View All

    What's Brewing

      Read a Blog, Take this Quiz for Another Chance to Win a Gift Card

      Important: Read the blog first . The quiz questions are all based on the content from the blog: The Power Problem Inside Every AI Breakthrough Everyone...

    View All

    Places

    • Community Help
    • Analog Dialogue Quiz
    • Logic Lounge
    • Super User Program

    Resources

    • EZ Code of Conduct
    • EZ How To Help Articles
    • Getting Started Guide
    • ADI: Words Matter
    • Community Help Videos
    View All
  • ContentZone

    Visit ContentZone

    Search content by industry or technology.
    • Blogs
    • Technical Articles
    • Tutorials
    • Videos
    • Webinars
    Your ADI content all in one place.
    View ContentZone

    The Latest Read

    Master FPGA-Based DSP Design: The Complete Building Blocks Guide You Need to Read

    The Engineering Mind Blog on EngineerZone presents an exceptional five-part series titled " DSP Building Blocks " that walks engineers through the essential...

    New Release

    Signal Chain Designer: DC Error Simulation
    Signal Chain Designer: DC Error Simulation

    This video covers the DC error calculation capabilities of Signal Chain Designer. DC error is unique in that often requires calibration and has so many...

    Recent Technical Insights

    Latest Technical Article from Analog.com
    PSM Integration for Enhanced Module Solutions in 48 V Data Centers

    The integration of the LTC2971 into quarter brick solutions for 48 V data centers enhances monitoring, control, and reliability by providing high precision...

EngineerZone
EngineerZone
MEMS Inertial Sensors
  • Log In
  • User
  • Site
  • Search
OR
Ask a Question
MEMS Inertial Sensors
MEMS Inertial Sensors
Documents How to use the ADXL362 to eliminate a power switch and control system power
  • Q&A
  • Files
  • FAQs/ Docs
  • Members
  • Tags
  • Cancel
  • +Documents
  • +3-D Model/STEP: FAQ
  • +AD22282-A-R2: FAQ
  • +ADIS16000: FAQ
  • +ADIS16003 MTBF: FAQ
  • +ADIS16006: FAQ
  • +ADIS16201: FAQ
  • +ADIS16203: FAQ
  • +ADIS16204: FAQ
  • +ADIS16209: FAQ
  • +ADIS16210: FAQ
  • +ADIS16223: FAQ
  • +ADIS16227: FAQ
  • +ADIS16228: FAQ
  • +ADIS16229: FAQ
  • +ADIS16240: FAQ
  • +ADIS16255: FAQ
  • +ADIS16355: FAQ
  • +ADIS16364: FAQ
  • +ADIS16365: FAQ
  • +ADIS16375: FAQ
  • +ADIS16385: FAQ
  • +ADIS16400: FAQ
  • +ADIS16405: FAQ
  • +ADIS16407: FAQ
  • +ADIS16445: FAQ
  • +ADIS16448: FAQ
  • +ADIS16460: FAQ
  • +ADIS16475: FAQ
  • +ADIS16477: FAQ
  • +ADIS1647x: FAQ
  • +ADIS16480: FAQ
  • +ADISUSB: FAQ
  • +ADXL001: FAQ
  • +ADXL203: FAQ
  • +ADIS16300: FAQ
  • +ADIS16485: FAQ
  • +ADIS16488: FAQ
  • +ADIS16488A: FAQ
  • +ADIS16490: FAQ
  • +ADIS16495: FAQ
  • +ADIS16497: FAQ
  • +ADXL103: FAQ
  • +ADXL150: FAQ
  • +ADxL193: FAQ
  • +ADXL202: FAQ
  • +ADXL206: FAQ
  • +ADXL210: FAQ
  • +ADXL210E: FAQ
  • +ADXL213: FAQ
  • +ADxL230: FAQ
  • +ADXL278: FAQ
  • +ADXL312: FAQ
  • +ADXL313: FAQ
  • +ADXL320: FAQ
  • +ADXL321: FAQ
  • +ADXL322: FAQ
  • +ADXL327: FAQ
  • +ADXL335: FAQ
  • +ADXL337: FAQ
  • +ADXL345: FAQ
  • +AD22290: FAQ
  • +ADIS16003: FAQ
  • +ADIS16133: FAQ
  • +ADIS16135: FAQ
  • +ADIS16265: FAQ
  • +ADIS16305: FAQ
  • +ADXL326: FAQ
  • +ADXL350: FAQ
  • -ADXL362: FAQ
    • ADXL362 + Arduino: Using Interrupts to Implement Motion-Activated Sleep
    • ADXL362 200Hz Bandwidth
    • ADXL362 Arduino How-To
    • ADXL362 as a Motion Switch
    • ADXL362 Clock Accuracy
    • ADXL362 Current Usage versus Competitors
    • ADXL362 Evaluation Boards
    • ADXL362 External Sync Pin
    • ADXL362 FIFO
    • ADXL362 FIFO Advantages
    • ADXL362 footprint error in datasheet (Rev C)
    • ADXL362 Motion Status Indicator Pin
    • ADXL362 register configuration
    • ADXL362 Self Test Procedure
    • ADXL362 Target Applications
    • ADXL362 Wakeup Mode vs. Full Power Mode
    • ADXL362  advantages as a motion switch
    • ADXL362: Acceleration beyond measurement range
    • ADXL362: Accessing real-time data in Wakeup Mode
    • ADXL362: autosleep mode
    • ADXL362: Bare minimum to acquire data
    • ADXL362: Output Data Rates (ODR)
    • ADXL362: Wakeup Mode and Autosleep
    • ADXL362: Wider bandwitdh than 200Hz
    • Are customers parts close to the ADXL362
    • EVAL-ADXL362Z-MLP threshold setting
    • Evaluating the ADXL362
    • Is ADXL362 data AC coupled?
    • Is ultrasonic welding a suitable assembly process for ADXL362 ?
    • Logging Data Prior to an Event
    • ADXL362 Blinky Demo
    • How to use the ADXL362 to eliminate a power switch and control system power
  • +ADXL375: FAQ
  • +ADXL377: FAQ
  • +ADXL78: FAQ
  • +ADXRS150: FAQ
  • +ADXRS290: FAQ
  • +ADXRS300: FAQ
  • +ADXRS401: FAQ
  • +ADXRS453: FAQ
  • +ADXRS610: FAQ
  • +ADxRS614: FAQ
  • +ADXRS623: FAQ
  • +ADXRS646: FAQ
  • +ADXRS652: FAQ
  • +ADXRS800: FAQ
  • +ADIS16136: FAQ
  • +ADIS16137: FAQ
  • +ADIS16266: FAQ
  • +ADIS16334: FAQ
  • +ADIS16362 Evaluation Tool: FAQ
  • +ADIS16364 Evaluation Tool: FAQ
  • +ADIS16367: FAQ
  • +ADIS163xx: FAQ
  • +ADIS16489: FAQ
  • +ADIS1648x: FAQ
  • +ADXL346: FAQ
  • +ADXL363: FAQ
  • +EVAL-ADIS: FAQ
  • +EVAL-ADIS2: FAQ
  • +Filtering Functions: FAQ
  • +General: FAQ
  • +Gyroscope: FAQ
  • +Hard & Soft Iron Correction: FAQ
  • +ISEB USB: FAQ
  • +IMU: FAQ
  • +MEMS: FAQ
  • +Slip Ring Interface: FAQ
  • +SPI Troubleshooting: FAQ
  • +TEMP_OUT Variation: FAQ
  • +Test Procedures: FAQ
  • +AD590: FAQ
  • +AD5940: FAQ
  • +AD5941: FAQ
  • +AD595: FAQ
  • +AD8495: FAQ
  • +AD8497: FAQ
  • +ADIS16IMU2 FAQ:
  • +ADUCM355: FAQ
  • +ADXL343: FAQ
  • +ADXL357: FAQ
  • +ADXL367: FAQ
  • +Breakout Board FAQ:
  • +CN0429: FAQ
  • DS1922E: FAQ
  • +DS1922L: FAQ
  • +DS1922T: FAQ
  • +DS1923: FAQ
  • +EVAL-ADXL312-SDP: FAQ
  • +IMU/Gryoscope Alignment FAQ:
  • +iSensor FAQ:
  • +MAX30001: FAQ
  • +MAX30003: FAQ
  • +MAX30003CTI+: FAQ
  • +MAX30003WING: FAQ
  • +MAX30009EVKIT: FAQ
  • +MAX30134EVSYS: FAQ
  • +MAX9621: FAQ
  • +TMP01: FAQ
  • +Wireless Vibration Sensors FAQ:

How to use the ADXL362 to eliminate a power switch and control system power

How to use the ADXL362 to eliminate a power switch and control system power by ADIApproved

Similar to the ADXL345 and adxl346, the ADXL362 has “activity” and “inactivity” functions which can be used to control system power and detect user activity.  A simple circuit and C code for a pic was shown for the ADXL345 in: https://ez.analog.com/thread/2420

The ADXL362 improves on this circuit and example in several ways:

  1. 1)    The ADXL362 uses about 2ua of current, less than 1/10 of the current used by the ADXL345.
  2. 2)    The ADXL362 allows for a 12 bit value to be used for the activity and inactivity thresholds, coupled with the 2 Gee range on the xl362, this allows for a much more sensitive motion detecting switch.
  3. 3)    The ADXL362 can cut down on false motion triggers that are seen by the ADXL345.  It does this in two ways:
    1. The Activity, tilt or “above threshold” function works after the low pass filter which can be set as low as 6.25hz bandwidth.
    2. The Activity, tilt or “above threshold” function can be set for a number of samples above threshold not just a default of one sample above threshold as in the adxl345.
  4. 4)    The ADXL362 introduces a new output which is the direct “awake” status bit which can be used to directly control the output load.
  5. 5)    The ADXL362 introduces a new “loop” mode which does not require any processor interaction to clear interrupts.

The demo circuit as shown in the attached PDF is quite similar to the circuit shown for the ADXL362 in the referenced article.  Note however that the LED controlling FET is connected to the int2 pin of the ADXL362 and not to a GPIO of the processor.  This is because of point (4) above, the ADXL362 has a direct output map able to either interrupt pin and active either high or low that control the LED.  In this example on power up the processor only configures the adxl362 and then permanently sleeps.

As an indication of the low power of the ADXL362, when the LED is on, the circuit is using about 10,000 times more power than when only the ADXL 362 is active.

The attached file includes all files to reproduce this demo as built with MPLABIDE8.66.  The fundamental part of the “main” C code is below for easy reference.

void main(){

  OPTION_REG = 0x40 /*INTEDG*/;

/* power up timer */

buffer[7] = 255;

while(buffer[7]--);

/* soft reset for safety */

  buffer[0] = XL362_SOFT_RESET_KEY;

  xl362Write(1,XL362_SOFT_RESET,buffer);

/* wait for soft reset to pass */

buffer[7] = 255;

while(buffer[7]--);

  /* set up a buffer with all the initialization for activity and inactivity */

  buffer[0] = 105;  /* XL362_THRESH_ACTL about 15 degrees*/

  buffer[1] = 0  ;  /* THRESH_ACTH */

  buffer[2] = 3  ;  /* TIME_ACT */

  buffer[3] = 105;  /* THRESH_INACTL*/

  buffer[4] = 0  ;  /* THRESH_INACTH */

  buffer[5] = 37 ;  /* TIME_INACTL 3 seconds at 12.5 hz*/

  buffer[6] = 0  ;  /* TIME_INACTH */

  buffer[7] =     /* ACT_INACT_CTL */

               XL362_ACT_ENABLE | XL362_ACT_AC | XL362_INACT_ENABLE

    | XL362_INACT_AC | XL362_ACT_INACT_LINK | XL362_ACT_INACT_LOOP;

  xl362Write(8,XL362_THRESH_ACTL,buffer);

  /* set up a buffer with all the initization for intmaps fitler and power*/

  buffer[0] = 0 ; /* INTMAP1 */

  buffer[1] = XL362_INT_AWAKE ; /* INTMAP2 */

  buffer[2] =     /* FILTER_CTL */

    XL362_RATE_12_5 |  XL362_RANGE_2G;

  buffer[3] =     /* POWER_CTL */

    XL362_MEASURE_3D |  XL362_LOW_POWER;

  xl362Write(4,XL362_INTMAP1,buffer);

  /* No interrupts INTCON = 0x90; */

  while(1){ /* we only resume here after a wakeup interupt */

    asm("sleep"); /* go into low power mode */

  } /* while */

} /* main */

Message was edited by: Nitzan Gadish. Corrected reference to a (nonexistent) ADXL352, to say ADXL345.

xl362_examples.zip

RE: How to use the ADXL362 to eliminate a power switch and control system power by ADIApproved:

Hi Neil,

  There are several advantages to an ADXL 362 over and ADXL 345 when it comes to power and a few things that the ADXL345 is better for.  This article was primarily about the activity and inactivity functions.  Some of the other differences between the ADXL362 and ADXL345 are:

XL362 cons:

  1. 1)    Lower bandwidth and range limited to 200hz-6.25hz bw.
  2. 2)    No tap/double tap
  3. 3)    No freefall concurrent with inactivity (only one or the other)
  4. 4)    SPI only not I2C.

XL362 Pros:

  1. 1)    Sync input
  2. 2)    Lower power
  3. 3)    Bigger fifo
  4. 4)    Better filtering (no aliasing at lower ODR/BW)
  5. 5)    More resolution on activity/inactivity (12 bits @ 2gee)
  6. 6)    Better timing options on inactivity 16bit count of samples at any odr.
  7. 7)    Better suppression of false activity

    1. Post filtered sampled used
    2. Can use up to an 8 bit count of samples @ODR for the activity detection
    3. Xl345 was limited to 1 unfiltered sample.


RE: How to use the ADXL362 to eliminate a power switch and control system power by ADIApproved:

Attached is an expansion of this example with two changes:

1) It uses an automotive relay to switch a load.

2) It uses a pic 10lf322 which is much smaller for the processor.

Tags: adxl346 accelerometers ADXl362 Sensors and MEMS adxl345
  • Share
  • History
  • More
  • Cancel
analog-devices logo

About Analog Devices

  • Who We Are
  • Careers
  • Newsroom
  • What We Do (Signals+)
  • Investor RelationsExternalLink
  • Quality & Reliability
  • Sales and Distribution
  • What's New on Analog.com
  • Contact Us

Find Help

  • Support
  • Resources
  • WikiExternalLink
  • Analog Dialogue
  • ADI Developer PortalExternalLink

myAnalog

Interested in the latest news and articles about ADI products, design tools, training, and events?

Go to myAnalog
  • Instagram page
  • Twitter page
  • Linkedin page
  • Youtube page
  • Facebook
  • Legal and Risk
  • Accessibility
  • Privacy Policy
  • Privacy Settings
  • Cookie Settings

©2026 Analog Devices, Inc. All Rights Reserved

analog-devices

About Analog Devices

Down Up
  • Who We Are
  • Careers
  • Newsroom
  • What We Do (Signals+)
  • Investor RelationsExternalLink
  • Quality & Reliability
  • Sales and Distribution
  • What's New on Analog.com
  • Contact Us

Find Help

Down Up
  • Support
  • Resources
  • WikiExternalLink
  • Analog Dialogue
  • ADI Developer PortalExternalLink

myAnalog

Interested in the latest news and articles about ADI products, design tools, training, and events?

Go to myAnalog
Instagram page Facebook Twitter page Linkedin page Youtube page
  • Legal and Risk
  • Accessibility
  • Privacy Policy
  • Privacy Settings
  • Cookie Settings

©2026 Analog Devices, Inc. All Rights Reserved