English
Language : 

UG-065 Datasheet, PDF (4/12 Pages) Analog Devices – Battery-powered for portable applications
UG-065
USING THE BOARD
GETTING STARTED
The development board comes preprogrammed as a datalogger
at a 100 Hz datarate. To log data, do the following:
1. Insert two AAA batteries into the battery holder.
2. Insert the MicroSD card into the slot. The card should be
formatted with a FAT32 file system; most MicroSD cards
come this way.
3. Push the on/off switch to the on position to power up the
board. The red LED turns on, and the green LED blinks to
indicate that the board is logging data.
4. When logging is completed, slide the on/off switch to the
off position.
5. Remove the card from the slot and insert it into the card
reader.
6. Insert the card reader into the USB port on your computer.
The acceleration log file is written to the path
\XL345\DATA0000.TXT on the MicroSD card. The data in the
text file consists of a set of comma-separated t, x, y, and z values,
where t corresponds to time and x, y, and z correspond to the x-, y-,
and z-axis acceleration data for each time point. Refer to the
Appendix: Sample Output File for an example of a data file.
Acceleration values are logged in LSB, where the nominal scale
factor is 3.9 mg/LSB. To convert an acceleration value from LSB to
mg, simply multiply by 3.9 (nominally, or measure the sensitivity
of the part for a more accurate conversion).
To plot the logged data using Microsoft® Excel, download the
Plotting Tool (XL345DB_DataPlotter.xls) from the ADXL345
product page (under the Development Board heading) and
follow the instructions described in the file. Users are prompted
to browse to their logged data file (DATA0000.TXT), the data is
imported and plotted in a new workbook, and users are then
prompted to save that workbook.
PROGRAMMING THE BOARD
The board can be repurposed with no programming required
using the .hex files provided on the ADXL345 product page. The
.hex files are uploaded onto the board using the ARMWSD program,
which can be downloaded at www.analog.com/static/imported-
files/eval_boards/ARMWSDv1.8.zip. Simply unzip the folder to
a known location and open the ARMWSD.exe file to use the
program. No installation is required.
To reprogram the board, use the cable provided with the board and
follow these instructions:
1. Download the desired .hex file from the ADXL345 product
page to a known location, or locate it on your machine.
2. Open ARMWSD.
Evaluation Board User Guide
3. Click Configure… (see Figure 3) and select the Parts tab,
shown in Figure 4. Make sure the ADuC7024 is selected in
the Select Part pull-down list (see Figure 4). Additionally, in
the Comms tab, make sure the Baudrate is set to 115200,
and the Serial Port is set to COM1, and then click OK.
4. In the ARMWSD window, click Browse… (see encircled in
Figure 3) and navigate to the location of the .hex file to be
loaded onto the board. Select the file and click Open.
Figure 3. ARMWSD Window
Figure 4. ARMWSD Configure Window: Parts Tab
5. Connect the programming cable to the serial port on the
PC and to the 4-pin header near the on/off switch on
the board, matching up the corresponding pins.
6. In the ARMWSD window, click Start. The Status
frame then prompts users to Press Download and
pulse Reset on Hardware. Follow the illustrations in
Figure 2.
7. When download is complete, click the Reset button on
the evaluation board. Users can now close the
ARMWSD program.
Rev. A | Page 4 of 12