Wiki

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
resources:eval:user-guides:inertial-mems:accelerometers:adxl362:eval-adxl362z-db [18 Oct 2012 07:45] – Added Tilt sensor instructions Nitzan Gadishresources:eval:user-guides:inertial-mems:accelerometers:adxl362:eval-adxl362z-db [25 Jan 2021 05:22] (current) – update renesas links after their web site update Robin Getz
Line 1: Line 1:
 ====== ADXL362 Datalogger & Development Board ====== ====== ADXL362 Datalogger & Development Board ======
  
-<note important>Thanks for visiting!\\ This page is UNDER CONSTRUCTION.</note>+<WRAP important>Thanks for visiting!\\ This page is UNDER CONSTRUCTION.\\ If your board does not look like the one pictured below, you may have a Rev 0 board. Instructions for Rev 0 of the Datalogger Board have been moved [[resources:eval:user-guides:inertial-mems:accelerometers:adxl362:eval-adxl362z-db_rev0|here]].</WRAP>
  
 ===== Resources ===== ===== Resources =====
 +
 +==== PDF User Guides ====
 +| {{:resources:eval:user-guides:inertial-mems:accelerometers:adxl362:eval-adxl362z-db_full_user_guide.pdf|English}} | {{:resources:eval:user-guides:inertial-mems:accelerometers:adxl362:eval-adxl362z-db_jp.pdf|Japanese}} |
  
 ==== Kit Contents ==== ==== Kit Contents ====
Line 13: Line 16:
 1 x Piece of double-sided foam tape\\ 1 x Piece of double-sided foam tape\\
  
-==== Not Included ==== +=== Not Included === 
-1 x CR2450 coin cell battery, required only if stand-alone operation is desired. Full functionality of the board is availabe using USB power.+1 x CR2450 coin cell battery, required only if stand-alone operation is desired. Full functionality of the board is availabe using USB power.\\ 
 +Multimeter or ammeter for measuring current consumption 
 + 
 +==== System Requirements ==== 
 +PC running Windows\\ 
 +USB 2.0 Port 
 ==== Design and Integration Files ==== ==== Design and Integration Files ====
-^Schematics: |{{:resources:eval:user-guides:inertial-mems:accelerometers:adxl362:eval-adxl362z-db_schematic.pdf|PDF}} |^ +^Schematics: |{{:resources:eval:user-guides:inertial-mems:accelerometers:adxl362:adxl362z-db_rev_2_schematic.pdf|PDF}} |^ 
-^Layouts:   |{{:resources:eval:user-guides:inertial-mems:accelerometers:adxl362:eval-adxl362z-db_layout.pdf|PDF}} |{{:resources:eval:user-guides:inertial-mems:accelerometers:adxl362:eval-adxl362z-db_layout.zip|CAM}}^+^Layouts:   || {{:resources:eval:user-guides:inertial-mems:accelerometers:adxl362:adxl362z-db_rev_2_layout.pdf|PDF}} |{{:resources:eval:user-guides:inertial-mems:accelerometers:adxl362:adxl362z-db_rev2_cam.zip|CAM}}^
  
 +==== Drivers ====
 +
 +Download and install these drivers to connect the board to your PC, then follow these **[[resources:eval:user-guides:inertial-mems:evalsystem:installdrivers|written instructions]]** or **[[adi>static/imported-files/eval_boards/InstallDrivers.zip|video instructions]]** for installation.\\
 +{{:resources:eval:user-guides:inertial-mems:accelerometers:adxl362:vcomusbdriver_v2040a_32bit.zip|32-bit}} or {{:resources:eval:user-guides:inertial-mems:accelerometers:adxl362:vcomusbdriver_v2040a_64bit.zip|64-bit}}
 ==== Programming Environment ==== ==== Programming Environment ====
 The firmware for the EVAL-ADXL362Z-DB was developed for the Renesas RL78/G13 microcontroller using the Renesas Electronics CubeSuite+ environment. The links below offer downloads and installation instructions for these tools:\\ The firmware for the EVAL-ADXL362Z-DB was developed for the Renesas RL78/G13 microcontroller using the Renesas Electronics CubeSuite+ environment. The links below offer downloads and installation instructions for these tools:\\
 \\ \\
 [[http://www.renesas.eu/products/tools/evaluation_software/downloads.jsp]]  (Global site)\\ [[http://www.renesas.eu/products/tools/evaluation_software/downloads.jsp]]  (Global site)\\
-[[http://am.renesas.com/products/tools/evaluation_software/downloads.jsp]]  (US site)+[[https://www.renesas.com/us/en/design-support/software-and-tool]]  (US site)
  
-===== Getting Started =====+====== Getting Started ======
  
-===== Using the Board =====+If this is your first time using this board, you will need to follow these steps to get started. 
 + 
 +  - Assemble the board.\\ <wrap> 
 +- Insert the EInk display in to the connector by lifting the brown tab on the connector, inserting the tail of the display, and pressing the brown tab back into place.\\ 
 +- Optional: use the double-sided tape to fix the display in place. Stick the foam square to the board first, then gently press the display down onto the tape.\\ 
 +</wrap> 
 +  - Power the board.\\ <wrap> 
 +- This board ships pre-programmed with the MultiDemo firmware that allows is to be used as a motion switch, data logger, or input to a real-time PC-connected user interface. The motion switch functionality can be used with the coin cell battery alone, without downloading any drivers or connecting to USB. Just insert a CR2450 coin cell batter in the holder on the back of the board, ensure all jumpers and switches are in the appropriate positions, and turn the board on. (this shows the back side of the board with the battery orientation - positive side of battery facing out{{:resources:eval:user-guides:inertial-mems:accelerometers:adxl362:adxl326_battery.jpg?300|}}) 
 +\\ 
 +- To use the data logger or real-time evaluation functionality, you will need to install drivers and other files. Proceed to the next step for instructions.\\ 
 +</wrap> 
 +  - Install the drivers and verify COM port.\\ - Download drivers [[#Drivers|above]].\\ - For instructions on verifying your COM port, click [[resources:eval:user-guides:inertial-mems:evalsystem:findyourcomport|here]]. 
 +====== Using the Board ======
  
 ==== Firmware Options ==== ==== Firmware Options ====
 Analog Devices has developed firmware for implementing the following functions via the EVAL-ADXL362Z-DB: Analog Devices has developed firmware for implementing the following functions via the EVAL-ADXL362Z-DB:
  
-  * **Datalogger and GUI (includes real-time data viewer and tilt sensor)**: logs data onto (supplied) microSD card. {{:resources:eval:user-guides:inertial-mems:accelerometers:adxl362:adxl362db_datalogger_and_gui.zip|ZIP}} //(includes .hex firmware and .exe GUI)//+  * **Datalogger and GUI (includes real-time data viewer and tilt sensor)**: logs data onto (supplied) microSD card.  //(includes .hex firmware and .exe GUI)//[[ftp://ftp.analog.com/pub/iMEMS_Sensor_Eval/EVAL-ADXL362Z-DB/]]
   * **Tilt Sensor**: shows tilt measurement on E-Ink display. {{:resources:eval:user-guides:inertial-mems:accelerometers:adxl362:adxl362db_inclinometer.zip|HEX}} | {{:resources:eval:user-guides:inertial-mems:accelerometers:adxl362:adxl362db_inclinometer_proj.zip|Source Code}}    * **Tilt Sensor**: shows tilt measurement on E-Ink display. {{:resources:eval:user-guides:inertial-mems:accelerometers:adxl362:adxl362db_inclinometer.zip|HEX}} | {{:resources:eval:user-guides:inertial-mems:accelerometers:adxl362:adxl362db_inclinometer_proj.zip|Source Code}} 
   * **Ultralow Power Motion switch**: turns display icons on or off based on presence or absence of motion. {{:resources:eval:user-guides:inertial-mems:accelerometers:adxl362:adxl362db_motionswitch.zip|HEX}} | {{:resources:eval:user-guides:inertial-mems:accelerometers:adxl362:adxl362db_motionswitch_proj.zip|Source Code}}    * **Ultralow Power Motion switch**: turns display icons on or off based on presence or absence of motion. {{:resources:eval:user-guides:inertial-mems:accelerometers:adxl362:adxl362db_motionswitch.zip|HEX}} | {{:resources:eval:user-guides:inertial-mems:accelerometers:adxl362:adxl362db_motionswitch_proj.zip|Source Code}} 
   * Pedometer & fall detector coming soon   * Pedometer & fall detector coming soon
- 
 ===== Reconfiguring the Board ===== ===== Reconfiguring the Board =====
  
-The EVAL-ADXL362Z-DB firmware can be rewritten using the Renesas Flash Programmer (click [[#programming_environment|here]] for download links). Instructions for rewriting the firmware are as follows: \\+The EVAL-ADXL362Z-DB firmware can be rewritten using the Renesas Flash Programmer (click [[#programming_environment|here]] for download links). Follow these instructions to flash a firmware ''.hex'' file to the board.\\
 \\ \\
-  - Download the desired firmware .hex file from [[#firmware_options|here]]. Save it in a known location. +  - If you haven't done so already, download the desired firmware ''.hex'' file from [[#firmware_options|here]], or create one of your own. Save it in a known location. 
-  - Set jumpers: J6, J7, J8, and J9 (between the USB connector and the switchto the 1-2 positionSet jumper J2 (near the display connector) to the 2-3 position for USB power.<WRAP>\\ <wrap indent>:!: //We know the jumpers are a pain and we apologize in advance.//</wrap> \\  +  - Set the programming switch to the PROG setting, as shown in the image below. (The setting of the ON/OFF switch is ignored when using USB power.<WRAP>\\  
- +{{ :resources:eval:user-guides:inertial-mems:accelerometers:adxl362:adxl362z-db_rev_2.jpg?direct&600 |Front of board showing switch settings}}
-|**Jumper** | **Position** ||| {{ :resources:eval:user-guides:inertial-mems:accelerometers:adxl362:board_front_jumpers_labeled.png?direct&400 |}} |  +
-| J2    | 1 ^ 2 ^ 3 |:::| +
-| J6    ^ 1 ^ 2 | 3 |:::| +
-| J7    ^ 1 ^ 2 | 3 |:::| +
-| J8    ^ 1 ^ 2 | 3 |:::| +
-| J9    ^ 1 ^ 2 | 3 |:::|+
 </WRAP> </WRAP>
 +  - If a battery is plugged in to the board, remove it or ensure that jumper J2 is in the USB position.
   - Plug the USB cable in to the computer and to the USB port on the board.   - Plug the USB cable in to the computer and to the USB port on the board.
-  - Launch the **Renesas Flash Programmer V1.03** (download [[#programming_environment|here]]) +  - Launch the **Renesas Flash Programmer V1.03** (download [[#programming_environment|here]]). If you followed the default install configuration, the programmer will be under ''Start'' --> ''All Programs'' --> ''Renesas Electronics CubeSuite+'' --> ''Programming Tools'' --> ''Renesas Flash Programmer V1.03''. 
-  - Choose "Create new workspace" +  - Set up the programming environment in one of two ways: 
-  - Input RL78/G13 in the Filter text box. Select the entry with Device Name "R5F100LJ", and enter a workspace name. Click Next. +    - If you have programmed the board before, choose "Open latest workspace" and click Next. Skip to step 7. 
-  - In the "Select Communication Interface" screen, use the pull-down menu next to "Select Tool" to choose the appropriate COM port for the board. Click Next. +    - If this is your first time programming the board, or if the above does not work, follow these steps to set up the programming environment: 
-  - On the "Setting Power Supply" screen, leave the default settings and click Next. +        - Choose "Create new workspace" 
-  - On the "Setting Oscillator" screen, and select the corresponding COM port for the board. Click Next. +        - Input RL78/G13 in the Filter text box. Select the entry with Device Name "R5F100LJ", and enter a workspace name. Click Next. 
-  - The "Information Settings" screen shows a summary of inputted settings. Click Complete. +        - In the "Select Communication Interface" screen, use the pull-down menu next to "Select Tool" to choose the appropriate COM port for the board. Click Next. 
-  - The Workspace is now set up. Next to "User/Data area", browse to the desired .hex file (that you downloaded and saved in step **1.**)+        - On the "Setting Power Supply" screen, leave the default settings and click Next. 
 +        - On the "Setting Oscillator" screen, and select the corresponding COM port for the board. Click Next. 
 +        - The "Information Settings" screen shows a summary of inputted settings. Click Complete. The Workspace is now set up. 
 +  - Next to "User/Data area", browse to the desired ''.hex'' file (see step **1**.)
   - Click “Start”.   - Click “Start”.
-  - When flashing is complete, disconnect the USB cable (to power the board off) and set jumpers J6 - J9 back to the 2-3 position. Leave J2 where it is to USB power, or move it to the 1-2 position to power the board from the coin cell<WRAP> \\  +  - When flashing is complete, disconnect the USB cable (to power the board off) and set the programming switch back to the VIEW position. Leave J2 where it is for USB power, or move it to the 1-2 position for battery power. 
- +
-|**Jumper** | **Position** ||| {{ :resources:eval:user-guides:inertial-mems:accelerometers:adxl362:board_front_jumpers_labeled.png?direct&400 |}} | +
-| J2    | 1 | 2 | 3 | :::| +
-| J6    | 1 ^ 2 ^ 3 |:::| +
-| J7    | 1 ^ 2 ^ 3 |:::| +
-| J8    | 1 ^ 2 ^ 3 |:::| +
-| J9    | 1 ^ 2 ^ 3 |:::| +
- +
-</WRAP>+
   - Reconnect the USB cable OR plug in the battery and turn on the switch to begin using the board.   - Reconnect the USB cable OR plug in the battery and turn on the switch to begin using the board.
-\\ +
-\\ +
-\\+
 ====== Firmware User Guides ====== ====== Firmware User Guides ======
  
 This section describes operation of the firmware options provided by Analog Devices for this development board. To download firmware, click [[#firmware_options|here]] or scroll up to the Firmware Options section above. This section describes operation of the firmware options provided by Analog Devices for this development board. To download firmware, click [[#firmware_options|here]] or scroll up to the Firmware Options section above.
  
 +===== Multi-Demo Firmware =====
 +
 +The Multi-Demo firmware is pre-programmed onto the Datalogger Board, so out of the box, the behavior of the board will match the description in this section. This firmware may always be re-programmed onto the board using [[#Reconfiguring_The_Board|these instructions]] and the .hex file posted [[#Firmware_Options|here]].
 + 
 +To use the MultiDemo firmware:
 +  - On power-up, the board behaves as a motion switch: the entire display lights up when the board is moved. When the board is still for a few seconds, most icons turn off and only the logos, power and battery icons remain on. Initial power up state: {{ :resources:eval:user-guides:inertial-mems:accelerometers:adxl362:poweridle.jpg?300 |}}  After movement, all of the logos, digits, power and battery icons will light: {{ :resources:eval:user-guides:inertial-mems:accelerometers:adxl362:poweractive.jpg?300 |}}
 +  - To log data, at any time, insert the microSD card into the slot and press the SW3 button in the top right-hand corner of the board. The word "LOg" will be shown on the display. The hand icon, if present, indicates a logging error. Generally this appears when the microSD card is not inserted fully into the slot. If no hand icon lights up, data logging begins when the word "LOg" is shown, and continues until power is removed from the board.
 +  - To download logged data onto a computer, use the GUI provided here. Installation of the GUI is straightforward: 
 +  - The GUI also enables adjustment of output data rate and measurement range for data logging. 
 +  - 
 ===== Motion Switch ===== ===== Motion Switch =====
  
Line 107: Line 128:
  
 Note that tilt measurement is, in general, a slow measurement. This is because at any given moment, the motion of your hand, for example, could be producing acceleration that would interfere with the tilt measurement. If we average the total acceleration measurement over time, we can get rid of the transient, or AC, effects, such as those due to your hand moving, and we are left only with long-term, or DC, effects -- in this case, gravity. So for best results, tilt slowly and wait for the display to refresh. Note that tilt measurement is, in general, a slow measurement. This is because at any given moment, the motion of your hand, for example, could be producing acceleration that would interfere with the tilt measurement. If we average the total acceleration measurement over time, we can get rid of the transient, or AC, effects, such as those due to your hand moving, and we are left only with long-term, or DC, effects -- in this case, gravity. So for best results, tilt slowly and wait for the display to refresh.
 +
 +===== Write your own software =====
 +Talking to the development board can be done using your own program with the following commands:
 +
 +Baud rate: 153600 8N1
 +
 +Commands:
 +0xAA  - Enable PC control, the board should respond (500+ ms) 0x55 and Eink display will show "PC"
 +
 +0xB1 to start collecting data
 +    Start collection can be augmented with additional commands which specify different modes
 +       
 +    0xB1 0x0L 0x00 0xGS 0xN2
 +    Where L is the length: 1 for 8-bit; 0 for 12-bit
 +    G is the maximum G: 1 - 2G; 5 - 4G; 9 - 8G
 +    S is the sampling rate: 0-12.5hz;1-25hz;2-50hz;3-100hz;4-200hz;5-400hz
 +    N is the filtering: 0-Normal; 1-Low Noise; 2-Ultra low noise
 +    
 +    EG: 0xB1 0x00 0x00 0x15 0x02   would be start, 12-bit samples, 2G max, 400hz sampling, normal noise mode.    
 +    
 +0xB2 to end collecting data
 +
 +
 +Data is transmitted 16-bits for each direction, 2's compliment, little-endian, in groups of XYZ (48-bits at a time, or 6 bytes).
 +The first block of data will be 8-bytes and can be discarded.
 +
resources/eval/user-guides/inertial-mems/accelerometers/adxl362/eval-adxl362z-db.1350539142.txt.gz · Last modified: 18 Oct 2012 07:45 by Nitzan Gadish