This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
resources:eval:user-guides:inertial-mems:accelerometers:adxl362:eval-adxl362z-db [12 Oct 2012 23:50] – [Reconfiguring the Board] Nitzan Gadish | resources: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> | + | <WRAP important> |
===== Resources ===== | ===== Resources ===== | ||
+ | |||
+ | ==== PDF User Guides ==== | ||
+ | | {{: | ||
==== Kit Contents ==== | ==== Kit Contents ==== | ||
Line 12: | Line 15: | ||
1 x E-Ink electronic paper display\\ | 1 x E-Ink electronic paper display\\ | ||
1 x Piece of double-sided foam tape\\ | 1 x Piece of double-sided foam tape\\ | ||
+ | |||
+ | === 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.\\ | ||
+ | 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: | + | ^Schematics: |
- | ^Layouts: | + | ^Layouts: |
+ | |||
+ | ==== Drivers ==== | ||
+ | Download and install these drivers to connect the board to your PC, then follow these **[[resources: | ||
+ | {{: | ||
==== 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:// | [[http:// | ||
- | [[http://am.renesas.com/ | + | [[https://www.renesas.com/ |
- | ===== 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.\\ < | ||
+ | - 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.\\ | ||
+ | </ | ||
+ | - Power the board.\\ < | ||
+ | - 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{{: | ||
+ | \\ | ||
+ | - To use the data logger or real-time evaluation functionality, | ||
+ | </ | ||
+ | - Install the drivers and verify COM port.\\ - Download drivers [[# | ||
+ | ====== 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. {{: | + | * **Datalogger and GUI (includes real-time data viewer and tilt sensor)**: logs data onto (supplied) microSD card. //(includes .hex firmware and .exe GUI)//[[ftp:// |
- | * **Tilt Sensor**: shows tilt measurement on E-Ink display. {{: | + | * **Tilt Sensor**: shows tilt measurement on E-Ink display. {{: |
- | * **Ultralow Power Motion switch**: turns display icons on or off based on presence or absence of motion. {{: | + | * **Ultralow Power Motion switch**: turns display icons on or off based on presence or absence of motion. {{: |
* 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 [[# | + | The EVAL-ADXL362Z-DB firmware can be rewritten using the Renesas Flash Programmer (click [[# |
\\ | \\ | ||
- | - Set jumpers: J6, J7, J8, and J9 (between | + | - If you haven' |
+ | - Set the programming switch to the PROG setting, as shown in the image below. | ||
+ | {{ : | ||
+ | </ | ||
+ | - 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 | ||
+ | - Launch the **Renesas Flash Programmer V1.03** (download [[# | ||
+ | - Set up the programming environment in one of two ways: | ||
+ | - If you have programmed the board before, choose "Open latest workspace" | ||
+ | - If this is your first time programming | ||
+ | - Choose " | ||
+ | - Input RL78/G13 in the Filter text box. Select the entry with Device Name " | ||
+ | - In the " | ||
+ | - On the " | ||
+ | - On the " | ||
+ | - The " | ||
+ | - Next to " | ||
+ | | ||
+ | - When flashing is complete, disconnect the USB cable (to power the board off) and set the programming switch back to the VIEW position. | ||
+ | - Reconnect | ||
- | |**Jumper** | **Position** ||| | + | ====== Firmware User Guides ====== |
- | | J2 | 1 ^ 2 ^ 3 ^ | + | |
- | | J6 ^ 1 ^ 2 | 3 | | + | This section describes operation of the firmware options provided by Analog Devices for this development board. To download firmware, click [[# |
- | | J7 ^ 1 ^ 2 | 3 | | + | |
- | | J8 ^ 1 ^ 2 | 3 | | + | ===== Multi-Demo Firmware ===== |
- | | J9 ^ 1 ^ 2 | 3 | | + | |
+ | 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 [[# | ||
+ | |||
+ | 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: {{ : | ||
+ | - 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 " | ||
+ | - 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 ===== | ||
+ | |||
+ | This firmware implements a simple motion switch. When the board is moving, all of the display icons turn on. When the board is stationary for about 10 seconds, most icons turn off and only the power icon and the EInk and Analog Devices logos remain on. | ||
+ | |||
+ | The neat thing about this board is how little power it consumes. Between the low-power Renesas microcontroller, | ||
+ | |||
+ | <WRAP left round tip 40%> | ||
+ | Can you tell us how much current consumption you measure, when the board is in motion and when it's not? Just edit the page and add your findings to the table! | ||
</ | </ | ||
- | - Launch Renesas Flash Programmer V1.03 (download [[# | ||
- | - Create new workspace | ||
- | - Input RL78/G13 in filter, select R5F100LJ, input workspace name as below. | ||
- | - Next and select the corresponding COM port for the board. | ||
- | - Next and browse to the desired .hex file | ||
- | - Click “Start” | ||
- | - Configure J6-J9 in position 2-3 for virtual UART | ||
+ | ^ Current Consumption [µA] ^^ ::: ^ | ||
+ | ^ In Motion | ||
+ | | //Your measurement// | ||
+ | | //Your measurement// | ||
+ | |||
+ | ===== Tilt Sensor ===== | ||
+ | |||
+ | Gravity makes tilt sensing easy for an accelerometer. The earth' | ||
+ | |||
+ | The tilt sensor demo uses the 1// | ||
+ | |||
+ | To begin using the tilt sensor, first load the firmware onto the board. Turn the board on (you can power the board using either USB or a coin cell), and place it on a flat surface, with the display facing up. The screen will display **CAL**, indicating that it is performing an offset calibration. Do not move the board during this time. When calibration is complete, the screen will display **0°**, and you can begin measuring tilt! | ||
+ | |||
+ | To measure tilt, stand the board up so that it is perpendicular to the floor (parallel to your computer monitor, probably) with the USB connector on the left. This is the 0° position, in which the sensitive axis is exactly perpendicular to the gravity vector, so none of the acceleration due to gravity is felt by the sensitive axis. | ||
+ | |||
+ | From this point, rotate the board clockwise and counter-clockwise, | ||
+ | |||
+ | 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 " | ||
+ | |||
+ | 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; | ||
+ | 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, | ||
+ | The first block of data will be 8-bytes and can be discarded. | ||