Part 1
요약·해설
8개 board 구성, 10개 build 명령과 7줄 7-value output을 보존합니다.
FXOS8700 + MMA
Basic · Motion
A ×3 · M ×3 · T
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
2B7914A3E1900555EC6D58F90F21E98E8E86D432D68D23218B2A3FB69950CCB8
.. _fxos8700:
FXOS8700 Accelerometer/Magnetometer Sensor
##########################################
Overview
********
This sample application shows how to use the FXOS8700 driver.
The driver supports FXOS8700 accelerometer/magnetometer and
MMA8451Q, MMA8652FC, MMA8653FC accelerometers.
Building and Running
********************
This project outputs sensor data to the console. FXOS8700
sensor is present on the :ref:`frdm_k64f`, :ref:`frdm_k22f`,
:ref:`frdm_kw41z`, :ref:`hexiwear`, and :ref:`twr_ke18f` boards.
Accelerometer only devices are present on the :ref:`frdm_kl25z`,
:ref:`bbc_microbit`, and :ref:`reel_board` boards. It does not work on
QEMU.
Building and Running for FRDM-K64F
==================================
FRDM-K64F is equipped with FXOS8700CQ accelerometer and magnetometer.
Sample can be built and executed for the FRDM-K64F as follows:
.. zephyr-app-commands::
:zephyr-app: samples/sensor/fxos8700
:board: frdm_k64f
:goals: build flash
:compact:
Example building for the FRDM-K64F with motion detection support:
.. zephyr-app-commands::
:zephyr-app: samples/sensor/fxos8700
:board: frdm_k64f
:conf: "prj.conf overlay-motion.conf"
:goals: build flash
:compact:
Building and Running for FRDM-K22F
==================================
FRDM-K22F is equipped with FXOS8700CQ accelerometer and magnetometer.
Sample can be built and executed for the FRDM-K22F as follows:
.. zephyr-app-commands::
:zephyr-app: samples/sensor/fxos8700
:board: frdm_k22f
:goals: build flash
:compact:
Example building for the FRDM-K22F with motion detection support:
.. zephyr-app-commands::
:zephyr-app: samples/sensor/fxos8700
:board: frdm_k22f
:conf: "prj.conf overlay-motion.conf"
:goals: build flash
:compact:
Building and Running for TWR-KE18F
==================================
TWR-KE18F is equipped with FXOS8700CQ accelerometer and magnetometer.
The FXOS8700CQ IRQ lines, however, are not connected by default, so
motion detection is not supported.
Sample can be built and executed for the TWR-KE18F as follows:
.. zephyr-app-commands::
:zephyr-app: samples/sensor/fxos8700
:board: twr_ke18f
:goals: build flash
:compact:
Building and Running for FRDM-KL25Z
===================================
FRDM-KL25Z is equipped with MMA8451Q accelerometer.
Sample can be built and executed for the FRDM-KL25Z as follows:
.. zephyr-app-commands::
:zephyr-app: samples/sensor/fxos8700
:board: frdm_kl25z
:conf: "prj_accel.conf"
:goals: build flash
:compact:
Building and Running for Micro Bit
==================================
Micro Bit is equipped with MMA8653FC accelerometer.
Sample can be built and executed for the Micro Bit as follows:
.. zephyr-app-commands::
:zephyr-app: samples/sensor/fxos8700
:board: bbc_microbit
:conf: "prj_accel.conf"
:goals: build flash
:compact:
Building and Running for reel board
===================================
The reel board is equipped with MMA8652FC accelerometer.
Sample can be built and executed for the reel board as follows:
.. zephyr-app-commands::
:zephyr-app: samples/sensor/fxos8700
:board: reel_board
:conf: "prj_accel.conf"
:goals: build flash
:compact:
Building and Running for MIMXRT685-EVK
======================================
MIMXRT685-EVK is equipped with FXOS8700CQ accelerometer and magnetometer.
Sample can be built and executed for the MIMXRT685-EVK as follows:
.. zephyr-app-commands::
:zephyr-app: samples/sensor/fxos8700
:board: mimxrt685_evk/mimxrt685s/cm33
:goals: build flash
:compact:
Building and Running for MIMXRT595-EVK
======================================
MIMXRT595-EVK is optionally equipped with FXOS8700CQ accelerometer and magnetometer.
Please confirm the FXOS8700CQ(U6) is populated on your board.
Sample can be built and executed for the MIMXRT595-EVK as follows:
.. zephyr-app-commands::
:zephyr-app: samples/sensor/fxos8700
:board: mimxrt595_evk/mimxrt595s/cm33
:goals: build flash
:compact:
Sample Output
=============
.. code-block:: console
AX= -0.191537 AY= 0.067037 AZ= 9.902418 MX= 0.379000 MY= 0.271000 MZ= -0.056000 T= 22.080000
AX= -0.162806 AY= 0.143652 AZ= 9.940725 MX= 0.391000 MY= 0.307000 MZ= -0.058000 T= 22.080000
AX= -0.172383 AY= 0.134075 AZ= 9.969455 MX= 0.395000 MY= 0.287000 MZ= -0.017000 T= 22.080000
AX= -0.210690 AY= 0.105344 AZ= 9.911994 MX= 0.407000 MY= 0.306000 MZ= -0.068000 T= 22.080000
AX= -0.153229 AY= 0.124498 AZ= 9.950302 MX= 0.393000 MY= 0.301000 MZ= -0.021000 T= 22.080000
AX= -0.153229 AY= 0.095768 AZ= 9.921571 MX= 0.398000 MY= 0.278000 MZ= -0.040000 T= 22.080000
AX= -0.162806 AY= 0.105344 AZ= 9.902418 MX= 0.372000 MY= 0.300000 MZ= -0.046000 T= 22.080000
<repeats endlessly>
Part 3
한국어 전문 번역
개요
이 sample application은 FXOS8700 driver 사용법을 보여 줍니다. Driver는 FXOS8700 accelerometer·magnetometer와 MMA8451Q, MMA8652FC, MMA8653FC accelerometer를 지원합니다.
빌드 및 실행
이 project는 sensor data를 console에 출력합니다. FXOS8700 sensor는 FRDM-K64F, FRDM-K22F, FRDM-KW41Z, Hexiwear와 TWR-KE18F board에 있습니다. Accelerometer-only device는 FRDM-KL25Z, BBC micro:bit와 reel board에 있습니다. QEMU에서는 동작하지 않습니다.
FRDM-K64F용 빌드 및 실행
FRDM-K64F에는 FXOS8700CQ accelerometer와 magnetometer가 장착되어 있습니다. 기본 sample:
west build -b frdm_k64f samples/sensor/fxos8700
west flash
Motion detection을 지원하도록 build하는 예:
west build -b frdm_k64f samples/sensor/fxos8700 -- -DCONF_FILE="prj.conf overlay-motion.conf"
west flash
FRDM-K22F용 빌드 및 실행
FRDM-K22F에는 FXOS8700CQ accelerometer와 magnetometer가 장착되어 있습니다. 기본 sample:
west build -b frdm_k22f samples/sensor/fxos8700
west flash
Motion detection을 지원하도록 build하는 예:
west build -b frdm_k22f samples/sensor/fxos8700 -- -DCONF_FILE="prj.conf overlay-motion.conf"
west flash
TWR-KE18F용 빌드 및 실행
TWR-KE18F에는 FXOS8700CQ accelerometer와 magnetometer가 장착되어 있습니다. 그러나 FXOS8700CQ IRQ line은 기본 연결되지 않으므로 motion detection을 지원하지 않습니다.
west build -b twr_ke18f samples/sensor/fxos8700
west flash
FRDM-KL25Z용 빌드 및 실행
FRDM-KL25Z에는 MMA8451Q accelerometer가 장착되어 있습니다. Accelerometer-only configuration을 사용합니다.
west build -b frdm_kl25z samples/sensor/fxos8700 -- -DCONF_FILE="prj_accel.conf"
west flash
Micro Bit용 빌드 및 실행
Micro Bit에는 MMA8653FC accelerometer가 장착되어 있습니다.
west build -b bbc_microbit samples/sensor/fxos8700 -- -DCONF_FILE="prj_accel.conf"
west flash
reel board용 빌드 및 실행
Reel board에는 MMA8652FC accelerometer가 장착되어 있습니다.
west build -b reel_board samples/sensor/fxos8700 -- -DCONF_FILE="prj_accel.conf"
west flash
MIMXRT685-EVK용 빌드 및 실행
MIMXRT685-EVK에는 FXOS8700CQ accelerometer와 magnetometer가 장착되어 있습니다.
west build -b mimxrt685_evk/mimxrt685s/cm33 samples/sensor/fxos8700
west flash
MIMXRT595-EVK용 빌드 및 실행
MIMXRT595-EVK에는 FXOS8700CQ accelerometer와 magnetometer가 선택적으로 장착됩니다. Board의 U6 위치에 FXOS8700CQ가 실제 실장되어 있는지 확인하십시오.
west build -b mimxrt595_evk/mimxrt595s/cm33 samples/sensor/fxos8700
west flash
출력 예
AX= -0.191537 AY= 0.067037 AZ= 9.902418 MX= 0.379000 MY= 0.271000 MZ= -0.056000 T= 22.080000
AX= -0.162806 AY= 0.143652 AZ= 9.940725 MX= 0.391000 MY= 0.307000 MZ= -0.058000 T= 22.080000
AX= -0.172383 AY= 0.134075 AZ= 9.969455 MX= 0.395000 MY= 0.287000 MZ= -0.017000 T= 22.080000
AX= -0.210690 AY= 0.105344 AZ= 9.911994 MX= 0.407000 MY= 0.306000 MZ= -0.068000 T= 22.080000
AX= -0.153229 AY= 0.124498 AZ= 9.950302 MX= 0.393000 MY= 0.301000 MZ= -0.021000 T= 22.080000
AX= -0.153229 AY= 0.095768 AZ= 9.921571 MX= 0.398000 MY= 0.278000 MZ= -0.040000 T= 22.080000
AX= -0.162806 AY= 0.105344 AZ= 9.902418 MX= 0.372000 MY= 0.300000 MZ= -0.046000 T= 22.080000
AX·AY·AZ는 acceleration, MX·MY·MZ는 magnetic field의 세 축 값이고 T는 temperature입니다. 출력은 끝없이 반복됩니다.
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.