Part 1
요약·해설
네 FDC model, I2C·shutdown·interrupt 배선과 두 channel configuration 출력을 보존합니다.
12 · 28 bit
2 · 4
MHz · pF
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
254DEC9C0646E5BC26964993CB0B8C8A0D37C8800CAAB474E00C3E5832E87141
.. _fdc2x1x:
FDC2X1X: Capacitance-to-Digital Converter
#########################################
Overview
********
This sample application periodically reads frequency and capacitance data from the
FDC2X1X sensor in polling mode or optionally with data ready trigger. It is able
to read the 12-Bit and 28-Bit, as well as the 2-Channel and 4-Channel versions
(FDC2112, FDC2114, FDC2212, FDC2214). The 4-channel versions are chosen through
devicetree properties. The default in this sample is the 2-channel version.
Capacitive sensing is a low-power, low-cost, high-resolution contactless sensing
technique that can be applied to a variety of applications ranging from proximity
detection and gesture recognition to remote liquid level sensing. The sensor in
a capacitive sensing system is any metal or conductor, allowing for low cost and
highly flexible system design.
The main challenge limiting sensitivity in capacitive sensing applications is
noise susceptibility of the sensors. With the FDC2x1x innovative EMI resistant
architecture, performance can be maintained even in presence of high-noise environments.
Wiring
*******
This sample uses the FDC2X1X sensor controlled using the I2C interface.
Connect supply **VDD** and **GND**. The supply voltage can be in
the 2.7V to 3.6V range.
Connect **SD** to a GPIO to control the Shutdown Mode.
Connect Interface: **SDA**, **SCL** and optionally connect **INTB** to a
interrupt capable GPIO.
For detailed description refer to the `FDC2X1X datasheet`_
at pages 4-5.
Building and Running
********************
This sample outputs sensor data to the console and can be read by any serial
console program. It should work with any platform featuring a I2C interface.
The platform in use requires a custom devicetree overlay.
In this example the :ref:`nrf9160dk_nrf9160` board is used. The devicetree
overlay of this board provides example settings for evaluation, which
you can use as a reference for other platforms.
.. zephyr-app-commands::
:zephyr-app: samples/sensor/fdc2x1x
:board: nrf9160dk/nrf9160
:goals: build flash
:compact:
Sample Output: 2-Channel, 28-Bit (FDC2212)
==========================================
.. code-block:: console
ch0: 5.318888 MHz ch1: 5.150293 MHz
ch0: 49.742308 pF ch1: 53.052260 pF
ch0: 5.318819 MHz ch1: 5.150307 MHz
ch0: 49.743612 pF ch1: 53.051964 pF
ch0: 5.318822 MHz ch1: 5.150200 MHz
ch0: 49.743548 pF ch1: 53.054176 pF
ch0: 5.318752 MHz ch1: 5.150265 MHz
ch0: 49.744860 pF ch1: 53.052828 pF
<repeats endlessly>
Sample Output: 4-Channel, 12-Bit (FDC2114)
==========================================
.. code-block:: console
ch0: 4.966171 MHz ch1: 4.946465 MHz ch2: 4.985879 MHz ch3: 4.907051 MHz
ch0: 57.059016 pF ch1: 57.514568 pF ch2: 56.608844 pF ch3: 58.442204 pF
ch0: 4.966171 MHz ch1: 4.946465 MHz ch2: 4.985879 MHz ch3: 4.907051 MHz
ch0: 57.059016 pF ch1: 57.514568 pF ch2: 56.608844 pF ch3: 58.442204 pF
ch0: 4.966171 MHz ch1: 4.946465 MHz ch2: 4.985879 MHz ch3: 4.907051 MHz
ch0: 57.059016 pF ch1: 57.514568 pF ch2: 56.608844 pF ch3: 58.442204 pF
ch0: 4.966171 MHz ch1: 4.946465 MHz ch2: 4.985879 MHz ch3: 4.907051 MHz
ch0: 57.059016 pF ch1: 57.514568 pF ch2: 56.608844 pF ch3: 58.442204 pF
<repeats endlessly>
References
**********
FDC2X1X Datasheet and Product Info:
https://www.ti.com/product/FDC2114
.. _FDC2X1X datasheet: https://www.ti.com/lit/gpn/fdc2114
Part 3
한국어 전문 번역
개요
이 sample application은 FDC2X1X sensor에서 frequency와 capacitance data를 polling mode로 주기적으로 읽거나, 선택적으로 data-ready trigger를 사용해 읽습니다. FDC2112·FDC2114·FDC2212·FDC2214처럼 12-bit와 28-bit, 2-channel과 4-channel version을 지원합니다. 4-channel version은 Devicetree property로 선택하며 이 sample의 default는 2-channel입니다.
Capacitive sensing은 저전력·저비용·고해상도 비접촉 sensing 기술입니다. Proximity detection과 gesture recognition부터 원격 liquid-level sensing까지 다양하게 적용할 수 있습니다. 금속이나 conductor라면 무엇이든 sensor가 될 수 있어 저렴하고 유연한 system을 설계할 수 있습니다.
Capacitive sensing의 sensitivity를 제한하는 주된 문제는 sensor가 noise에 취약하다는 점입니다. FDC2x1x의 EMI-resistant architecture는 noise가 큰 환경에서도 performance를 유지합니다.
배선
이 sample은 I2C interface로 제어하는 FDC2X1X sensor를 사용합니다. 전원 VDD와 GND를 연결하며 supply voltage 범위는 2.7 V부터 3.6 V까지입니다.
Shutdown Mode를 제어할 수 있도록 SD를 GPIO에 연결합니다. Interface의 SDA, SCL을 연결하고, 필요하면 INTB를 interrupt를 지원하는 GPIO에 연결합니다. 자세한 내용은 FDC2X1X datasheet 4~5쪽을 참고하십시오.
빌드 및 실행
Sample은 sensor data를 console에 출력하므로 어떤 serial console program으로도 읽을 수 있습니다. I2C interface가 있는 모든 platform에서 동작해야 하지만 사용하는 platform용 custom Devicetree overlay가 필요합니다.
아래 예는 nrf9160dk/nrf9160 board를 사용합니다. 이 board의 Devicetree overlay에는 evaluation용 example setting이 있어 다른 platform 구성의 참고 자료로 사용할 수 있습니다.
west build -b nrf9160dk/nrf9160 samples/sensor/fdc2x1x
west flash
2-channel, 28-bit(FDC2212) 출력 예
ch0: 5.318888 MHz ch1: 5.150293 MHz
ch0: 49.742308 pF ch1: 53.052260 pF
ch0: 5.318819 MHz ch1: 5.150307 MHz
ch0: 49.743612 pF ch1: 53.051964 pF
ch0: 5.318822 MHz ch1: 5.150200 MHz
ch0: 49.743548 pF ch1: 53.054176 pF
ch0: 5.318752 MHz ch1: 5.150265 MHz
ch0: 49.744860 pF ch1: 53.052828 pF
<repeats endlessly>
4-channel, 12-bit(FDC2114) 출력 예
ch0: 4.966171 MHz ch1: 4.946465 MHz ch2: 4.985879 MHz ch3: 4.907051 MHz
ch0: 57.059016 pF ch1: 57.514568 pF ch2: 56.608844 pF ch3: 58.442204 pF
ch0: 4.966171 MHz ch1: 4.946465 MHz ch2: 4.985879 MHz ch3: 4.907051 MHz
ch0: 57.059016 pF ch1: 57.514568 pF ch2: 56.608844 pF ch3: 58.442204 pF
ch0: 4.966171 MHz ch1: 4.946465 MHz ch2: 4.985879 MHz ch3: 4.907051 MHz
ch0: 57.059016 pF ch1: 57.514568 pF ch2: 56.608844 pF ch3: 58.442204 pF
ch0: 4.966171 MHz ch1: 4.946465 MHz ch2: 4.985879 MHz ch3: 4.907051 MHz
ch0: 57.059016 pF ch1: 57.514568 pF ch2: 56.608844 pF ch3: 58.442204 pF
<repeats endlessly>
참고 자료
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.