Part 1
요약·해설
1.8~3.6 V 전원·I2C 배선, pull-up과 QEMU 제한을 설명합니다.
3 seconds
I2C
T · P · H · G
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
6590F926314B2E336EF79C6C8A268556E481479B44CE7D6BBD342E483542257B
.. _bme680:
BME680: Integrated environmental sensor
#####################################################
Description
***********
This sample application periodically (every 3s) measures the ambient temperature
in degrees Celsius, atmospheric pressure in kilopascal, relative humidity in percentage,
and gas sensor resistance in ohms. The result is written to the console.
References
**********
- BME680: https://www.bosch-sensortec.com/bst/products/all_products/bme680
Wiring
*******
This sample uses the BME680 sensor controlled using the I2C interface.
Connect Supply: **VDD**, **VDDIO**, **GND** and Interface: **SDA**, **SCL**.
The supply voltage can be in the 1.8V to 3.6V range.
Depending on the baseboard used, the **SDA** and **SCL** lines require Pull-Up
resistors.
Building and Running
********************
This project outputs sensor data to the console. It requires a BME680
sensor. It should work with any platform featuring a I2C peripheral interface.
It does not work on QEMU.
In this example below the :ref:`nrf52840dk_nrf52840` board is used.
.. zephyr-app-commands::
:zephyr-app: samples/sensor/bme680
:board: nrf52840dk/nrf52840
:goals: build flash
Sample Output
=============
.. code-block:: console
Device 0x20002b74 name is BME680
T: 23.988877; P: 97.648568; H: 53.689533; G: 1035.211466
T: 24.168500; P: 97.648866; H: 53.565966; G: 1046.677896
T: 24.336533; P: 97.648596; H: 53.353663; G: 1058.656533
T: 24.589696; P: 97.648366; H: 53.958864; G: 1072.155863
T: 24.856631; P: 97.648322; H: 53.553669; G: 1096.448788
<repeats endlessly>
Part 3
한국어 전문 번역
설명
이 sample application은 3초마다 주변 temperature를 섭씨로, atmospheric pressure를 kPa로, relative humidity를 백분율로, gas sensor resistance를 ohm으로 측정합니다. 결과는 console에 출력합니다.
참고 자료
배선
이 sample은 I2C interface로 제어하는 BME680 sensor를 사용합니다. 전원 VDD, VDDIO, GND와 interface의 SDA, SCL을 연결합니다.
Supply voltage 범위는 1.8 V부터 3.6 V까지입니다. 사용하는 baseboard에 따라 SDA와 SCL line에 pull-up resistor가 필요합니다.
빌드 및 실행
이 project는 sensor data를 console에 출력하며 BME680 sensor가 필요합니다. I2C peripheral interface가 있는 모든 platform에서 동작해야 하지만 QEMU에서는 동작하지 않습니다. 아래 예에서는 nrf52840dk/nrf52840 board를 사용합니다.
# From the root of the zephyr repository
west build -b nrf52840dk/nrf52840 samples/sensor/bme680
west flash
출력 예
Device 0x20002b74 name is BME680
T: 23.988877; P: 97.648568; H: 53.689533; G: 1035.211466
T: 24.168500; P: 97.648866; H: 53.565966; G: 1046.677896
T: 24.336533; P: 97.648596; H: 53.353663; G: 1058.656533
T: 24.589696; P: 97.648366; H: 53.958864; G: 1072.155863
T: 24.856631; P: 97.648322; H: 53.553669; G: 1096.448788
<repeats endlessly>
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.