Part 1
요약·해설
I2C·interrupt overlay, range-window 재설정과 32줄 실제 출력을 보존합니다.
ISL29035
±50 lux
I2C + IRQ
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
907B3195D3C5C2D6601D404E5997CABEC419BB1EE3ADC977ECC0F2465E2C7157
.. _isl29035:
ISL29035: Digital Light Sensor
##############################
Overview
********
If trigger is not enabled the sample displays measured light intensity
every 2 seconds.
If trigger is enabled the sample displays light intensity from the
ISL29035 sensor every 10 seconds if it is within +/- 50 lux of the last
read sample. If the sensor detects an intensity outside that range the
application wakes, displays the intensity, resets the intensity range
window to center on the new value, then continues as before.
Requirements
************
This sample uses an external breakout for the sensor. A devicetree
overlay must be provided to connect the sensor to the I2C bus and
identify the interrupt signal.
Building and Running
********************
.. zephyr-app-commands::
:zephyr-app: samples/sensor/isl29035
:board: nrf52dk/nrf52832
:goals: build
:compact:
Sample Output
=============
.. code-block:: console
*** Booting Zephyr OS build zephyr-v2.1.0-335-gfe020d937d43 ***
ALERT 365 lux outside range centered on 0 lux.
Next alert outside 315 .. 415
[0:00:00.018] Ambient light sense: 365.234
[0:00:10.023] Ambient light sense: 361.084
ALERT 302 lux outside range centered on 365 lux.
Next alert outside 252 .. 352
[0:00:13.276] Ambient light sense: 302.734
ALERT 247 lux outside range centered on 302 lux.
Next alert outside 197 .. 297
[0:00:14.619] Ambient light sense: 247.62
ALERT 187 lux outside range centered on 247 lux.
Next alert outside 137 .. 237
[0:00:16.141] Ambient light sense: 187.927
ALERT 126 lux outside range centered on 187 lux.
Next alert outside 76 .. 176
[0:00:16.410] Ambient light sense: 126.953
ALERT 181 lux outside range centered on 126 lux.
Next alert outside 131 .. 231
[0:00:17.843] Ambient light sense: 181.03
ALERT 235 lux outside range centered on 181 lux.
Next alert outside 185 .. 285
[0:00:18.022] Ambient light sense: 235.779
ALERT 301 lux outside range centered on 235 lux.
Next alert outside 251 .. 351
[0:00:23.126] Ambient light sense: 301.758
ALERT 353 lux outside range centered on 301 lux.
Next alert outside 303 .. 403
[0:00:23.305] Ambient light sense: 353.333
[0:00:33.310] Ambient light sense: 365.112
<repeats as necessary>
Part 3
한국어 전문 번역
개요
Trigger를 활성화하지 않으면 sample은 측정한 light intensity를 2초마다 표시합니다.
Trigger를 활성화하면 마지막으로 읽은 sample을 중심으로 ±50 lux 범위 안에 있는 동안 ISL29035 light intensity를 10초마다 표시합니다. Sensor가 이 범위를 벗어난 intensity를 감지하면 application이 깨어나 값을 표시하고, 새 값을 중심으로 intensity range window를 다시 설정한 뒤 이전과 같은 동작을 계속합니다.
요구 사항
이 sample은 외부 sensor breakout을 사용합니다. Sensor를 I2C bus에 연결하고 interrupt signal을 식별하는 Devicetree overlay를 제공해야 합니다.
빌드 및 실행
west build -b nrf52dk/nrf52832 samples/sensor/isl29035
출력 예
*** Booting Zephyr OS build zephyr-v2.1.0-335-gfe020d937d43 ***
ALERT 365 lux outside range centered on 0 lux.
Next alert outside 315 .. 415
[0:00:00.018] Ambient light sense: 365.234
[0:00:10.023] Ambient light sense: 361.084
ALERT 302 lux outside range centered on 365 lux.
Next alert outside 252 .. 352
[0:00:13.276] Ambient light sense: 302.734
ALERT 247 lux outside range centered on 302 lux.
Next alert outside 197 .. 297
[0:00:14.619] Ambient light sense: 247.62
ALERT 187 lux outside range centered on 247 lux.
Next alert outside 137 .. 237
[0:00:16.141] Ambient light sense: 187.927
ALERT 126 lux outside range centered on 187 lux.
Next alert outside 76 .. 176
[0:00:16.410] Ambient light sense: 126.953
ALERT 181 lux outside range centered on 126 lux.
Next alert outside 131 .. 231
[0:00:17.843] Ambient light sense: 181.03
ALERT 235 lux outside range centered on 181 lux.
Next alert outside 185 .. 285
[0:00:18.022] Ambient light sense: 235.779
ALERT 301 lux outside range centered on 235 lux.
Next alert outside 251 .. 351
[0:00:23.126] Ambient light sense: 301.758
ALERT 353 lux outside range centered on 301 lux.
Next alert outside 303 .. 403
[0:00:23.305] Ambient light sense: 353.333
[0:00:33.310] Ambient light sense: 365.112
<repeats as necessary>
ALERT는 조도가 현재 ±50 lux window를 벗어났음을 뜻합니다. 이어지는 Next alert outside가 새 중심값을 기준으로 계산한 다음 interrupt 범위를 보여 주며, 필요한 만큼 측정과 범위 재설정을 반복합니다.
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.