본문 바로가기
Arduino Sensors/Chapter 2 Fine dust sensor

PMS7003 Fine Dust Sensor [Arduino Sensors for Everyone]

by 로니킴 2021. 6. 7.


This chapter explains how to use the PMS7003 sensor. You will learn its features, operating principles, specifications, connection pin arrangement, output values, and connect Arduino and the sensor together to measure the air around you easily using the library.

 

Contents

     


    PMS7003 Fine Dust Sensor

     

     

     

     


    PMS7003 Sensor?

    The PMS7003 fine dust sensor is a laser-type fine dust measurement sensor that is manufactured and sold by PLANTOWER. It can reliably measure PM2.5 (ultra-fine dust) and is also small. It is widely used in fine dust simple measuring instruments sold on the market. 

     

     

     

    DS_PMS7003.pdf
    0.72MB

     

     

     

     

    PLANTOWER Company has other sensors such as PMS3003, PMS5003, PMS6003, PMS7003, and PMSA003.

     

    These sensors have different sizes and functions, but all are similar in their measuring method and performance. The PMS5003 and PMS7003 sensors are often used in air quality sensors and simple measuring instruments. 

     

     

     

     


    Purchasing the PMS7003 sensor

    As follows, the [PMS7003] sensor used in the book [Arduino Sensors for Everyone] can be purchased at Ali Express, Amazon.  

     

     

     

     

     


    Software Coding

    Run the example file in Steamedu123_Sensor-master > examples.

    /*
       @202 PMS7003 Fine Dust Sensor
    */
    
    #include <C202_Steam_Air_PMS7003_Dust.h>    // Internal library header file
    #define RxPIN 3
    #define TxPIN 2
    
    SteamPMS7003 pms7003(RxPIN, TxPIN);   // RX/TX pin number
    
    void setup() {
      Serial.begin(9600);     // Start serial communication at a speed of 9600bps.
      pms7003.begin();        // (1) Initialize the sensor.
    }
    
    void loop() {
      if (pms7003.read()) {   // (2) Measure the value of the sensor.
        pms7003.display();    // (3) Output the sensor value.
      }
    }

     

     

     

     


     

    PMS7003 Arduino sensor operation check

    When the hardware connection and software coding are completed, you can check the operation screen as follows.

     

    ------------------------------------------------------ 
    Development environment: WINDOWS 10
    Arduino IDE: 1.8.13
    ------------------------------------------------------ 

     

    01 library copy

    You can easily check the operation by using the  library.  
    The libraries \Steamedu123_Sensor-master folder is copied to the folder below.
    * This folder is created automatically after installing Arduino C:\Users\s\Documents\Arduino\libraries


    02 *. ino file execution
    -Connect Arduino and PC
    -Run Arduino IDE
    -Menu → Tools → Board: Check Arduino UNO
    -Menu → Sketch → Check/Compile

    03 Check compilation

    Select Sketch>OK/Compile (CTRL+R) to compile.


    04 Arduino Uno upload

    When the compilation is completed without any problems, select Sketch>Upload (CTRL+U) to upload the compiled file.


    05 Operation check

    You can check the operation as follows.
     

     


     

    Wrap-up

    You can connect Arduino and [PMS7003] sensor and practice the sensor easily with simple coding.

     

     

     


    Purchasing a book

    [Arduino Sensors for Everyone] The book is available for purchase on Google Book and Apple Books.

    In this book, you will learn how to use the PMS7003, GP2Y1010AU0F, PPD42NS, SDS011 Fine Dust Sensor, DHT22 temperature/humidity sensor, MH-Z19B carbon dioxide sensor, ZE08-CH2O formaldehyde sensor, CCS811 total volatile organic compound (TVOC) sensor , GDK101 radiation (gamma ray) sensor, MQ-131 ozone (O3) sensor, MQ-7 carbon monoxide sensor, MICS-4514 nitrogen dioxide sensor, MICS-6814 ammonia sensor, DGS-SO2 sulfur dioxide (SO2) sensor, BME280 atmospheric pressure sensor, GUVA-S12SD ultraviolet (UV) sensor, MD0550 airflow sensor, and QS-FS01 wind speed sensor.

     

    [Google play book]

     

    Arduino Sensors for Everyone, 저자: Ronnie Kim - Google Play 도서

    Arduino Sensors for Everyone - 저자가 Ronnie Kim인 eBook입니다. PC, Android, iOS 기기에서 Google Play 북 앱을 사용해 이 책을 읽어 보세요. 책을 다운로드하여 오프라인으로 읽거나 Arduino Sensors for Everyone을(를)

    play.google.com

     

     



    댓글0