Warning: Illegal string offset 'name' in [path]/includes/functions.php on line 6439
Plantower PMS3003 putekļu sensors(Arduino Uno)
+

thread: Plantower PMS3003 putekļu sensors(Arduino Uno)

  1. #1
    Junior Member
    Feb 2013
    16

    Plantower PMS3003 putekļu sensors(Arduino Uno)

    Labdien! Pieslēdzu Plantower PMS3003 pie Arduino Uno(kur Plantower PMS3003 kontakti VCC,GND, RX, TX pievienoti Arduino Uno VCC(5V), GND, TX,RX). Izmantoju GitHub biblotēku
    :
    https://github.com/fu-hsi/PMS
    :
    #include "PMS.h"

    PMS pms(Serial);
    PMS::DATA data;

    void setup()
    {
      
    Serial.begin(9600);   // TX/RX pin)
    }

    void loop()
    {
      if (
    pms.read(data))
      {
        
    Serial.print("PM 1.0 (ug/m3): ");
        
    Serial.println(data.PM_AE_UG_1_0);

        
    Serial.print("PM 2.5 (ug/m3): ");
        
    Serial.println(data.PM_AE_UG_2_5);

        
    Serial.print("PM 10.0 (ug/m3): ");
        
    Serial.println(data.PM_AE_UG_10_0);

        
    Serial.println();
      }

      
    // Do other stuff...


    Rezultātā ieguvu šādu izejas informāciju:
    :
    14:17:58.904 -> !!⸮Cggw⸮ļ
    ⸮ 
    ⸮⸮
    14
    :18:28.864 -> ⸮w)9⸮4⸮θ⸮H筨⸮⸮⸮Ľ⸮⸮⸮⸮⸮Cؽs⸮K⸮⸮9⸮0⸮⸮⸮⸮.⸮⸮X
    14
    :19:29.704 -> !!⸮Cggw⸮ļ
    ⸮ 
    ⸮⸮
    14
    :19:59.655 -> ⸮w)9⸮4⸮θ⸮H筨⸮⸮⸮Ľ⸮⸮⸮⸮⸮Cؽs⸮K⸮⸮9⸮0⸮⸮⸮⸮.⸮⸮X
    14
    :21:00.504 -> !!⸮Cggw⸮ļ
    ⸮ 
    ⸮⸮
    14
    :21:30.475 -> ⸮w)9⸮4⸮θ⸮H筨⸮⸮⸮Ľ⸮⸮⸮⸮⸮Cؽs⸮K⸮⸮9⸮0⸮⸮⸮⸮.⸮⸮X
    14
    :22:31.335 -> !!⸮Cggw⸮ļ
    ⸮ 
    ⸮⸮
    14
    :23:01.245 -> ⸮w)9⸮4⸮θ⸮H筨⸮⸮⸮Ľ⸮⸮⸮⸮⸮Cؽs⸮K⸮⸮9⸮0⸮⸮⸮⸮.⸮⸮X
    14
    :24:02.125 -> !!⸮Cggw⸮ļ
    ⸮ 
    ⸮⸮
    14
    :24:32.065 -> ⸮w)9⸮4⸮θ⸮H筨⸮⸮⸮Ľ⸮⸮⸮⸮⸮Cؽs⸮K⸮⸮9⸮0⸮⸮⸮⸮.⸮⸮X
    14
    :25:32.934 -> !!⸮Cggw⸮ļ
    ⸮ 
    ⸮⸮
    14
    :26:02.885 -> ⸮w)9⸮4⸮θ⸮H筨⸮⸮⸮Ľ⸮⸮⸮⸮⸮Cؽs⸮K⸮⸮9⸮0⸮⸮⸮⸮.⸮⸮X
    14
    :27:03.724 -> !!⸮Cggw⸮ļ
    ⸮ 
    ⸮⸮
    14
    :27:33.685 -> ⸮w)9⸮4⸮θ⸮H筨⸮⸮⸮Ľ⸮⸮⸮⸮⸮Cؽs⸮K⸮⸮9⸮0⸮⸮⸮⸮.⸮⸮X
    14
    :28:34.525 -> !!⸮Cggw⸮ļ
    ⸮ 
    ⸮⸮
    14
    :29:04.485 -> ⸮w)9⸮4⸮θ⸮H筨⸮⸮⸮Ľ⸮⸮⸮⸮⸮Cؽs⸮K⸮⸮9⸮0⸮⸮⸮⸮.⸮⸮X
    14
    :30:05.365 -> !!⸮Cggw⸮ļ
    ⸮ 
    ⸮⸮
    14
    :30:35.295 -> ⸮w)9⸮4⸮θ⸮H筨⸮⸮⸮Ľ⸮⸮⸮⸮⸮Cؽs⸮K⸮⸮9⸮0⸮⸮⸮⸮.⸮⸮X
    14
    :31:36.145 -> !!⸮Cggw⸮ļ
    ⸮ 
    ⸮⸮
    14
    :32:06.105 -> ⸮w)9⸮4⸮θ⸮H筨⸮⸮⸮Ľ⸮⸮⸮⸮⸮Cؽs⸮K⸮⸮9⸮0⸮⸮⸮⸮.⸮⸮X
    14
    :33:06.975 -> !!⸮Cggw⸮ļ
    ⸮ 
    ⸮⸮
    14
    :33:36.885 -> ⸮w)9⸮4⸮θ⸮H筨⸮⸮⸮Ľ⸮⸮⸮⸮⸮Cؽs⸮K⸮⸮9⸮0⸮⸮⸮⸮.⸮⸮X
    14
    :34:37.764 -> !!⸮Cggw⸮ļ
    ⸮ 
    ⸮⸮
    14
    :35:07.685 -> ⸮w)9⸮4⸮θ⸮H筨⸮⸮⸮Ľ⸮⸮⸮⸮⸮Cؽs⸮K⸮⸮9⸮0⸮⸮⸮⸮.⸮⸮X
    14
    :36:08.565 -> !!⸮Cggw⸮ļ
    ⸮ 
    ⸮⸮
    14
    :36:38.485 -> ⸮w)9⸮4⸮θ⸮H筨⸮⸮⸮Ľ⸮⸮⸮⸮⸮Cؽs⸮K⸮⸮9⸮0⸮⸮⸮⸮.⸮⸮X
    14
    :37:39.365 -> !!⸮Cggw⸮ļ
    ⸮ 
    ⸮⸮
    14
    :38:09.284 -> ⸮w)9⸮4⸮θ⸮H筨⸮⸮⸮Ľ⸮⸮⸮⸮⸮Cؽs⸮K⸮⸮9⸮0⸮⸮⸮⸮.⸮⸮X
    14
    :39:10.184 -> !!⸮Cggw⸮ļ
    ⸮ 
    ⸮⸮
    14
    :39:40.114 -> ⸮w)9⸮4⸮θ⸮H筨⸮⸮⸮Ľ⸮⸮⸮⸮⸮Cؽs⸮K⸮⸮9⸮0⸮⸮⸮⸮.⸮⸮X
    14
    :40:40.965 -> !!⸮Cggw⸮ļ
    ⸮ 
    ⸮⸮ 
    Nevar saprast kas tas ir? Kur varētu būt kļūda?

  2. #2
    Senior Member
    Mar 2011
    697

    Tev saziņas ātrums pareizs? Tas ir, konsolē arī ir 9600 tā pat kā programmā?

+