Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
resources:eval:user-guides:circuits-from-the-lab:cn0189 [15 Oct 2012 23:21] – created Neil Wilsonresources:eval:user-guides:circuits-from-the-lab:cn0189 [30 Jul 2021 07:15] (current) Victor Calinao, Jr
Line 1: Line 1:
-====== Ultra-Low Power Standalone Motion Switch (CN0274) ======+====== Tilt Measurement Using a Dual Axis Accelerometer (CN0189) ======
  
 ===== Overview ===== ===== Overview =====
-The [[http://www.analog.com/adxl362|ADXL362]] is a tri-axis, ultra lower power digital accelerometer capable of detecting motion depending on user defined activity and inactivity thresholds Unlike accelerometers that use power duty cycling to achieve low power consumption, the [[http://www.analog.com/adxl362|ADXL362]] does not alias input signals by under sampling, it measures continuously at all data rates.   By mapping activity and inactivity detection to the interrupt pins, the user can drive the enable pin of an [[http://www.analog.com/adp195|ADP195]].  When activated, this logic controlled switch provides power to downstream circuitry.  All communications to the accelerometer are performed using Serial Peripheral Interface (SPI). +The [[adi>adxl203|ADXL203]] is a polysilicon surface micromachined sensor and signal conditioning circuit. Acceleration in the X or Y axis will produce a corresponding output voltage on the XOUT or YOUT output pins of the deviceThe X axis and Y axis are perpendicular to one another.The [[adi>AD8608|AD8608]] quad op amp buffersattenuates, and level shifts the [[adi>adxl203|ADXL203]] outputs so they are at the proper levels to drive the inputs of the The [[adi>AD7887|AD7887]]The [[adi>AD7887|AD7887]] is configurable for either dual or single channel operation via the on-chip control registerIn this application it is configured for dual channel mode, allowing the user to monitor both outputs of the [[adi>adxl203|ADXL203]], thereby providing more accurate and complete solution
 ===== General Setup ===== ===== General Setup =====
-  * [[http://www.analog.com/EVAL-CN0274-SDPZ|EVAL-CN0274-SDPZ]] Evaluation board. +  * [[adi>EVAL-CN0189-SDPZ|EVAL-CN0189-SDPZ]] Evaluation board. 
-  * [[http://www.analog.com/EVAL-SDP-CS1Z|EVAL-SDP-CS1Z]] Evaluation board +  * One SDP Controller board: 
-  * [[ftp://ftp.analog.com/pub/cftl/CN0274|CN0274 Evaluation Software]] +    * [[adi>SDP-S| EVAL-SDP-CS1Z]] SDP Evaluation board 
-  * Power Supply: 2 AAA batteries or +3.0V supply.+    * [[adi>EVAL-SDP-CB1Z| EVAL-SDP-CB1Z]] SDP Evaluation board 
 +  * [[ftp://ftp.analog.com/pub/cftl/CN0189|CN0189 Evaluation Software]] 
 +  * 1 Six Volt DC Wall Wart ([[adi>EVAL-CFTL-6V-PWRZ| EVAL-CFTL-6V-PWRZ]])
   * 1 USB Type-A plug to USB Mini-B plug cable   * 1 USB Type-A plug to USB Mini-B plug cable
-{{ :resources:eval:user-guides:circuits-from-the-lab:cn0274-setupdiagram.jpg? |}} +{{ :resources:eval:user-guides:circuits-from-the-lab:cn0189-setupdiagram.jpg? |}}FIXME
 ===== Minimum PC/System Requirements ===== ===== Minimum PC/System Requirements =====
   * One PC with the following   * One PC with the following
Line 20: Line 20:
  
 ===== How to Install the Evaluation Software ===== ===== How to Install the Evaluation Software =====
-  - Extract the files within the file **CN0274 SDP Eval Software.zip** and open the file **setup.exe**.  It is recommended that you install the CN0274 SDP Evaluation Software to the default directory path **C:\Program Files\Analog Devices\CN0274\** and all National Instruments products to **C:\Program Files\National Instruments\**{{ :resources:eval:user-guides:circuits-from-the-lab:cn0274-evaluation_software-destination_directory-1.jpg? |}} +  - Extract the files within the file **CN0189 SDP Eval Software.zip** and open the file **setup.exe**.  It is recommended that you install the CN0189 SDP Evaluation Software to the default directory path **C:\Program Files\Analog Devices\CN0189\** and all National Instruments products to **C:\Program Files\National Instruments\**{{ :resources:eval:user-guides:circuits-from-the-lab:cn0189:cn0189-evaluation_software-destination_directory-1.jpg? |}} 
-  - Press **“Next”**.{{ :resources:eval:user-guides:circuits-from-the-lab:cn0274-evaluation_software-destination_directory-2.jpg? |}} +  - Press **“Next”**.{{ :resources:eval:user-guides:circuits-from-the-lab:cn0189:cn0189-evaluation_software-destination_directory-2.jpg? |}}
-  - Press **“Next”**.{{ :resources:eval:user-guides:circuits-from-the-lab:cn0274-evaluation_software-installation_complete.jpg? |}}+
   - Press **“Next”**.   - Press **“Next”**.
-  - Upon completion of the installation of the **CN0274 SDP Eval Software**, the installer for the **ADI SDP Drivers** will execute.  Follow the on-screen prompts to install the drivers.  It is recommended that you close all other applications before clicking “Next”.  This will make it possible to update relevant system files without having to reboot your computer.{{ :resources:eval:user-guides:circuits-from-the-lab:cn0274-sdpdrivers-setup_wizard.jpg? |}}{{ :resources:eval:user-guides:circuits-from-the-lab:cn0274-sdpdrivers-destination_directory.jpg? |}}+  - Upon completion of the installation of the **CN0189 SDP Eval Software**, the installer for the **ADI SDP Drivers** will execute.  Follow the on-screen prompts to install the drivers.  It is recommended that you close all other applications before clicking “Next”.  This will make it possible to update relevant system files without having to reboot your computer.{{ :resources:eval:user-guides:circuits-from-the-lab:cn0189:cn0189-sdpdrivers-setup_wizard.jpg? |}}{{ :resources:eval:user-guides:circuits-from-the-lab:cn0189:cn0189-sdpdrivers-destination_directory.jpg? |}}
   - Press **“Next”**.   - Press **“Next”**.
   - It is recommended that you install the drivers to the default directory path **C:\Program Files\Analog Devices\SDP\Drivers\**   - It is recommended that you install the drivers to the default directory path **C:\Program Files\Analog Devices\SDP\Drivers\**
-  - Press **“Next”** to install the Drivers and complete the installation of all software necessary to evaluate the **EVAL-CN0274-SDPZ** +  - Press **“Next”** to install the Drivers and complete the installation of all software necessary to evaluate the **EVAL-CN0189-SDPZ**
 ===== Step by Step Instruction for Connecting the Hardware ===== ===== Step by Step Instruction for Connecting the Hardware =====
-  - Place two batteries into the connector on the bottom of the [[http://www.analog.com/eval-cn0274-sdpz|EVAL-CN0274-SDPZ]] board, ensure the batteries are size triple A and are the correct polarity.{{:resources:eval:user-guides:circuits-from-the-lab:cn0274-hardware-batteries.jpg?200|}}{{:resources:eval:user-guides:circuits-from-the-lab:cn0274-hardware-cn0274.jpg?200|}} +  - Connect the [[adi>SDP-S|EVAL-SDP-CS1Z]] and the [[adi>eval-cn0189-sdpz|EVAL-CN0189-SDPZ]] PCB’s using the 120 pin male and female connectors found on the respective boards.{{:resources:eval:user-guides:circuits-from-the-lab:cn0189:cn0189-hardware-displaying_connectors.jpg?200|}} 
-  - Connect the [[http://www.analog.com/EVAL-SDP-CS1Z|EVAL-SDP-CS1Z]] and the [[http://www.analog.com/eval-cn0274-sdpz|EVAL-CN0274-SDPZ]] PCB’s using the 120 pin male and female connectors found on the respective boards.{{:resources:eval:user-guides:circuits-from-the-lab:cn0274-hardware-notconnected-sdps-cn0274.jpg?200|}}{{:resources:eval:user-guides:circuits-from-the-lab:cn0274-hardware-displaying_connectors.jpg?200|}}{{:resources:eval:user-guides:circuits-from-the-lab:cn0274-hardware-connectorscloseup.jpg?200|}}{{:resources:eval:user-guides:circuits-from-the-lab:cn0274-hardware-connected-sdps-cn0274.jpg?200|}} +{{:resources:eval:user-guides:circuits-from-the-lab:cn0189:cn0189-hardware-connected-sdps-cn0189.jpg?200|}} 
-  - Plug the mini end of the USB cable into connector J2 of the [[http://www.analog.com/EVAL-SDP-CS1Z|EVAL-SDP-CS1Z]]. And connect the other end of the USB cable into the Laptop or PC.{{:resources:eval:user-guides:circuits-from-the-lab:cn0274-hardware-connected-usb-sdps-cn0274.jpg?200|}} +  - Plug in the DC barrel jack to connector J3 of the [[adi>eval-cn0189-sdpz|EVAL-CN0189-SDPZ]] and the mini end of the USB cable into connector J2 of the [[adi>SDP-S|EVAL-SDP-CS1Z]]. And connect the other end of the USB cable into the Laptop or PC. 
 +{{:resources:eval:user-guides:circuits-from-the-lab:cn0189:CN0189-Hardware-Connected-SDPS-Power-CN0189.jpg?200|}} 
 +{{:resources:eval:user-guides:circuits-from-the-lab:cn0189:cn0189-hardware-connected-usb-sdps-cn0189.jpg?200|}}
 ===== Opening and Enabling the Evaluation Software ===== ===== Opening and Enabling the Evaluation Software =====
-  - Launch the executable found at **C:\Program Files\Analog Devices\CN0274** and press the **“Connect"** button.{{ :resources:eval:user-guides:circuits-from-the-lab:cn0274-evaluation_software-front_panel.jpg? |}} +  - Launch the executable found at **C:\Program Files\Analog Devices\CN0189** and press the **“Connect"** button. 
-  - After pressing the **“Connect”** button, a prompt will appear informing the user if the accelerometer was properly configured.  Press **“Ok”** and the software is ready to use.  If the accelerometer is not configured properly, disconnect the entire setup and start over. +{{ :resources:eval:user-guides:circuits-from-the-lab:cn0189:CN0189-Evaluation Software-Front Panel.jpg? |}}
-{{ :resources:eval:user-guides:circuits-from-the-lab:cn0274-evaluation_software-accelerometer_configuration_successful.jpg? |}} +
 ===== Step by Step Instruction to Using the Evaluation Software ===== ===== Step by Step Instruction to Using the Evaluation Software =====
   - The following is a list of all available software controls, grouped according to their location in the software:   - The following is a list of all available software controls, grouped according to their location in the software:
     - **System Controls**     - **System Controls**
-      - **Connect** – This button configures the [[http://www.analog.com/adxl362|ADXL362]] by writing to the necessary registers.  A prompt will appear informing the user if the accelerometer was properly configured. +      - **Connect** – This button configures the [[adi>ad7887|AD7887]] by writing to the necessary registers.   
-      - **Disconnect** – This button will disconnect the [[http://analog.com/eval-cn0274-sdpz|EVAL-CN0274-SDPZ]] board. +      - **Disconnect** – This button will disconnect the [[adi>eval-cn0189-sdpz|EVAL-CN0189-SDPZ]] board
-    - **Data Acquisition Controls** +      - **Connector A** - This menu allows the user to select which connector of the SDP board is being utilized
-      - **Start Sampling** – This button polls the data ready bit in the [[http://www.analog.com/adxl362|ADXL362]] status register.  When this bit is set, LabVIEW reads the data registers and displays the acceleration data for each axis on the chart found in the evaluation software+    - **Conversion Mode Controls**  
-      - **Stop Sampling** – This button stops LabVIEW from reading and displaying acceleration data+      - **Continuous Conversion Mode** 
-      - **Save Data** – This button saves all data displayed in the LabVIEW chart+        - This control brings the user to the Demonstration Tab and locks out unnecessary tabs. 
-        - Note: Data will still be saved even if the display is disabled+        - This control displays/hides the necessary controls in the Data Acquisition Controls Tab
-    - **Accelerometer Controls** +          - **Data Acquisition Controls** 
-      - **Activity Threshold** – This control sets the Activity threshold for all axes of the [[http://www.analog.com/adxl362|ADXL362]].  When looking for activityany single sample that crosses this threshold will wake the accelerometer and cause it to begin searching for inactivity+            - **Click to Begin Continuous Sampling** This control starts the demonstration mode which measures the angle the PCB makes with the gravity vector and displays it
-        - This threshold is an absolute value; it is not referenced to acceleration reading. +      - **Single Sample** 
-      - **Inactivity Threshold** – This control sets the Inactivity threshold for all axes of the [[http://www.analog.com/adxl362|ADXL362]].  When looking for inactivity, number of samples (defined by the user ) must cross this threshold in order for the accelerometer to sleep and cause it to begin searching for activity+        - This control brings the user to the Sample Data tab and locks out unnecessary tabs.  
-        This threshold is referenced to the acceleration reading.  For exampleif the acceleration reads 0g, and the Inactivity threshold is set for 0.5g, the chart will display one solid line (the acceleration readingand two dotted lines (the acceleration reading +/0.5g).  +        - This control displays/hides the necessary controls in the Data Acquisition Controls tab
-      - **Inactivity Time (Samples)** – This control sets the number of acceleration samples for all three axes that must be inside of the threshold window for the [[http://www.analog.com/adxl362|ADXL362]] to enter the asleep state. +          - **Data Acquisition Controls** 
-      - **Measurement Range (g’s)** – This control sets the measurement range of the [[http://www.analog.com/adxl362|ADXL362]] in g’s Choices are ±2g, ±4g, ±8g+            - **Input Angle** - Having set the PCB at a specific angle, this control allows the user to input that angle and to compare the ADC result with the actual angle
-    - **Acceleration Data Plots** - This final section is the main tab of the software.  It contains a chart which graphically displays acceleration data for each axis as well as a numerical display showing the most recent acceleration conversion for each axis.  Lastly there is an LED indicating the current state of the device (Active-Green or Inactive-Red)+            - **Single Sample** - This control instructs the ADC to sample and convert one acceleration reading from each axis
-      X-Axis Plot Disabled/EnabledThis control disables or enables the graphical display for the X-axis+            - **Clear Data** This control clears the X-Y plot. 
-      - Y-Axis Plot Disabled/Enabled- This control disables or enables the graphical display for the Y-axis. +            - **Remove Data Point** - This control removes the last data point from the X-Y plot. 
-      Z-Axis Plot Disabled/Enabled- This control disables or enables the graphical display for the Z-axis. +            - **Save Data** - This control prompts and allows the user to save their data to text file.     
- +===== Step by Step Instruction to Calibrate the Accelerometer ===== 
- +  - Select **Single Sample** in the **Conversion Mode Controls**.  Calibration can only be performed in the **Single Sample** mode
 +  Navigate to the **Calibrate** tab. 
 +  - To manually enter or change calibration coefficientspress the **Manual Coefficient Input** button and enter the appropriate offset and sensitivity values for each axis (in g's).{{ :resources:eval:user-guides:circuits-from-the-lab:cn0189:cn0189-evaluation_software-calibrationtab.jpg? |}} 
 +  To perform a four point calibration, press the **Four Point Calibration** button. 
 +    - Orient the PCB as displayed in the image below.{{ :resources:eval:user-guides:circuits-from-the-lab:cn0189:cn0189-hardware-calibrate-orientation_1gx_.jpg?200 |}} 
 +    Press **Sample Data** while rotating the PCB to find the largest output voltage for the X-axis.  This voltage corresponds to the +1g value for the X-axis. 
 +    - Orient the PCB as displayed in the image below.{{ :resources:eval:user-guides:circuits-from-the-lab:cn0189:cn0189-hardware-calibrate-orientation_-1gx_.jpg?200 |}} 
 +    - Press **Sample Data** while rotating the PCB to find the smallest output voltage for the X-axis.  This voltage corresponds to the -1g value for the X-axis
 +    Orient the PCB as displayed in the image below.{{ :resources:eval:user-guides:circuits-from-the-lab:cn0189:cn0189-hardware-calibrate-orientation_1gy_.jpg?200 |}} 
 +    Press **Sample Data** while rotating the PCB to find the largest output voltage for the Y-axis.  This voltage corresponds to the +1g value for the Y-axis. 
 +    Orient the PCB as displayed in the image below.{{ :resources:eval:user-guides:circuits-from-the-lab:cn0189:cn0189-hardware-calibrate-orientation_-1gy_.jpg?200 |}} 
 +    - Press **Sample Data** while rotating the PCB to find the smallest output voltage for the Y-axis.  This voltage corresponds to the -1g value for the Y-axis. 
 +    - Press **Calibrate** to calculate the offset and sensitivity values for each axis. 
 +    - Now any further calculations or conversions performed anywhere in the software (**Demonstration** tab or **Sampled Data** tab) will utilize the offset and sensitivity values calculated here.
  
 +=====Registration===== 
 +<WRAP round tip 80% >
 +Receive software update notifications, documentation updates, view the latest videos, and more when you register your hardware.  [[reg>EVAL-CN0189-SDPZ?&v=Rev B|Register]] to receive all these great benefits and more!</WRAP>
  
 +// End of document // 
resources/eval/user-guides/circuits-from-the-lab/cn0189.1350336114.txt.gz · Last modified: 15 Oct 2012 23:21 by Neil Wilson