# 디바이스 연결 방법

## Connection DIAGRAM (UART)

<figure><img src="https://1534755138-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8USAZVpjShlBinaURjim%2Fuploads%2Fgit-blob-6165660ec6fb90eb9b4c1026dc3d0f2735275da1%2Fconnetion_uart_diagram.PNG?alt=media" alt=""><figcaption></figcaption></figure>

## *PMS A003A, PMS A003C, PMS 7003, PMS 7003M*

[올센싱 PCB](https://allsensing.com/product/detail.html?product_no=1171\&cate_no=65\&display_group=1)

* 올센싱 PCB 사용시 *PMS A003A, PMS A003C, PMS 7003, PMS 7003M* 제품과 연결에 용이함

<figure><img src="https://1534755138-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8USAZVpjShlBinaURjim%2Fuploads%2Fgit-blob-ce3c71f1b26828cfcea353698c6802bd7f32223a%2FPMS_allsensing_PCB.png?alt=media" alt=""><figcaption></figcaption></figure>

\- 아래 디바이스 연결 방법은 올센싱 PCB 사용 기준으로 작성

{% tabs %}
{% tab title="Arudino Uno" %}

<figure><img src="https://1534755138-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8USAZVpjShlBinaURjim%2Fuploads%2Fgit-blob-eb5330855341a8b15b184094d57ad309dfc51bc8%2FPMSA003_with_Arduino.PNG?alt=media" alt=""><figcaption></figcaption></figure>

| 항목           | Arduino Uno | PMSA003A |
| ------------ | ----------- | -------- |
| VCC          | 5V          | VCC      |
| GND          | GND         | GND      |
| TX           | 12          | RX       |
| RX           | 13          | TX       |
| {% endtab %} |             |          |

{% tab title="Arudino MKR" %}

<figure><img src="https://1534755138-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8USAZVpjShlBinaURjim%2Fuploads%2Fgit-blob-f5fd097d08c15b93bbdf778d01b4a77041c593e9%2FPMSA003_with_Arduino_mkr.PNG?alt=media" alt=""><figcaption></figcaption></figure>

| 항목           | Arduino MKR | PMSA003A |
| ------------ | ----------- | -------- |
| VCC          | 5V          | VCC      |
| GND          | GND         | GND      |
| TX           | 12          | RX       |
| RX           | 13          | TX       |
| {% endtab %} |             |          |

{% tab title="ESP32" %}

<figure><img src="https://1534755138-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8USAZVpjShlBinaURjim%2Fuploads%2Fgit-blob-965d28269bf95955ed1272540db03eefa07c4aba%2FPMSA003_with_esp32.PNG?alt=media" alt=""><figcaption></figcaption></figure>

| 항목           | ESP32 | PMSA003A |
| ------------ | ----- | -------- |
| VCC          | 5V    | VCC      |
| GND          | GND   | GND      |
| TX           | 8     | RX       |
| RX           | 6     | TX       |
| {% endtab %} |       |          |

{% tab title="ESP8266" %}

<figure><img src="https://1534755138-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8USAZVpjShlBinaURjim%2Fuploads%2Fgit-blob-b7cd2dc224096d71f2230999d013af2661008935%2FPMSA003_with_esp8266.PNG?alt=media" alt=""><figcaption></figcaption></figure>

| 항목            | ESP8266 | PMSA003A |
| ------------- | ------- | -------- |
| VCC           | 5V      | VCC      |
| GND           | GND     | GND      |
| TX            | D7      | RX       |
| RX            | D6      | TX       |
| {% endtab %}  |         |          |
| {% endtabs %} |         |          |

## *PMS 5003, PMS 9003M*

{% tabs %}
{% tab title="Arudino Uno" %}

<figure><img src="https://1534755138-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8USAZVpjShlBinaURjim%2Fuploads%2Fgit-blob-04804057e832e2e47ca5014922e32c84c350eed9%2FPMS5003_with_Arudino.PNG?alt=media" alt=""><figcaption></figcaption></figure>

| 항목           | Arduino Uno | PMS5003 |
| ------------ | ----------- | ------- |
| VCC          | 5V          | VCC     |
| GND          | GND         | GND     |
| TX           | 12          | RX      |
| RX           | 13          | TX      |
| {% endtab %} |             |         |

{% tab title="Arudino MKR" %}

<figure><img src="https://1534755138-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8USAZVpjShlBinaURjim%2Fuploads%2Fgit-blob-d9a53752186e96442b9af445ccba8cbc704780a3%2FPMS5003_with_Arudino_mkr.PNG?alt=media" alt=""><figcaption></figcaption></figure>

| 항목           | Arduino MKR | PMS5003 |
| ------------ | ----------- | ------- |
| VCC          | 5V          | VCC     |
| GND          | GND         | GND     |
| TX           | 12          | RX      |
| RX           | 13          | TX      |
| {% endtab %} |             |         |

{% tab title="ESP32" %}

<figure><img src="https://1534755138-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8USAZVpjShlBinaURjim%2Fuploads%2Fgit-blob-18b5acd0c9df7e8b38b30552461f76c6235611cf%2FPMS5003_with_ESP32.PNG?alt=media" alt=""><figcaption></figcaption></figure>

| 항목           | ESP32 | PMS5003 |
| ------------ | ----- | ------- |
| VCC          | 5V    | VCC     |
| GND          | GND   | GND     |
| TX           | 5     | RX      |
| RX           | 6     | TX      |
| {% endtab %} |       |         |

{% tab title="ESP8266" %}

<figure><img src="https://1534755138-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8USAZVpjShlBinaURjim%2Fuploads%2Fgit-blob-6dd95e2f901e301dc3efeb78d28ef45ac94f058e%2FPMS5003_with_ESP8266.PNG?alt=media" alt=""><figcaption></figcaption></figure>

| 항목            | ESP8266 | PMS5003 |
| ------------- | ------- | ------- |
| VCC           | 5V      | VCC     |
| GND           | GND     | GND     |
| TX            | D7      | RX      |
| RX            | D6      | TX      |
| {% endtab %}  |         |         |
| {% endtabs %} |         |         |

## *PMS 5003IB*

{% tabs %}
{% tab title="Arudino Uno" %}

<figure><img src="https://1534755138-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8USAZVpjShlBinaURjim%2Fuploads%2Fgit-blob-0b69aa1e8e919fc82cac1aff00b4064783c3f9c7%2FPMS_5003IB_with-Arudino.PNG?alt=media" alt=""><figcaption></figcaption></figure>

| 항목           | Arduino Uno | PMS5003IB |
| ------------ | ----------- | --------- |
| VCC          | 5V          | VCC       |
| GND          | GND         | GND       |
| SDA          | A4          | SDA       |
| SCL          | A5          | SCL       |
| {% endtab %} |             |           |

{% tab title="Arudino MKR" %}

<figure><img src="https://1534755138-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8USAZVpjShlBinaURjim%2Fuploads%2Fgit-blob-918cc3c4814b45fcba500d32945ce75fe9c380f2%2FPMS_5003IB_with-Arudino_MKR.PNG?alt=media" alt=""><figcaption></figcaption></figure>

| 항목           | Arduino MKR | PMS5003 |
| ------------ | ----------- | ------- |
| VCC          | 5V          | VCC     |
| GND          | GND         | GND     |
| SDA          | D12         | SDA     |
| SCL          | D11         | SCL     |
| {% endtab %} |             |         |

{% tab title="ESP32" %}

<figure><img src="https://1534755138-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8USAZVpjShlBinaURjim%2Fuploads%2Fgit-blob-bdb2780114c9c6f0188b917657198cf178b02eb7%2FPMS_5003IB_with-ESP32.PNG?alt=media" alt=""><figcaption></figcaption></figure>

| 항목           | ESP32 | PMS5003 |
| ------------ | ----- | ------- |
| VCC          | 5V    | VCC     |
| GND          | GND   | GND     |
| SDA          | 12    | SDA     |
| SCL          | 13    | SCL     |
| {% endtab %} |       |         |

{% tab title="ESP8266" %}

<figure><img src="https://1534755138-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8USAZVpjShlBinaURjim%2Fuploads%2Fgit-blob-ed75357a02db63415d59219cccc53b32a265e5f4%2FPMS_5003IB_with-ESP8266.PNG?alt=media" alt=""><figcaption></figcaption></figure>

| 항목            | ESP8266 | PMS5003 |
| ------------- | ------- | ------- |
| VCC           | 5V      | VCC     |
| GND           | GND     | GND     |
| SDA           | D6      | SDA     |
| RX            | D5      | SCL     |
| {% endtab %}  |         |         |
| {% endtabs %} |         |         |
