• Witaj na Forum Arduino Polska! Zapraszamy do rejestracji!
  • Znajdziesz tutaj wiele informacji na temat hardware / software.
Witaj! Logowanie Rejestracja


Ocena wątku:
  • 0 głosów - średnia: 0
  • 1
  • 2
  • 3
  • 4
  • 5
PMS3003 - czujnik pyłu i suma kontrolna
#1
Cześć!

  Kupiłem PMS3003, podpiąłem akurat do ESP32, nie Arduino, ale to bez znaczenia. Chciałem zrobić coś na bazie tego  projektu https://mikrokontroler.pl/2017/06/14/pro...i-arduino/

Tam jest opis ramki, ale u mnie nie zgadzało się, więc szperałem. W końcu znalazłem to https://how2electronics.com/interfacing-...r-arduino/ I zgadza się o tyle, że ja też mam jako rozmiar ramki zwracane 0x20. Ale niestety nie zgadza się suma kontrolna.

Wyniki z kolejnych pomiarów też skaczą od czapy (czasem się trzymają, czasem skaczą).

No i teraz zastanawiam się, czy to czujnik jest uszkodzony czy coś źle robię.

Pozdrawiam,
Marcin

Kod:
11:10:48 -> ---------------------------------------
11:10:48 -> Concentration Units (standard)
11:10:48 -> PM 1.0: 9        PM 2.5: 12        PM 10: 12
11:10:48 -> ---------------------------------------
11:10:48 -> Concentration Units (environmental)
11:10:48 -> PM 1.0: 519        PM 2.5: 65535        PM 10: 65535
11:10:48 -> ---------------------------------------
11:10:49 -> .......Checksum failure
11:10:57 ->
11:10:57 -> ---------------------------------------
11:10:57 -> Concentration Units (standard)
11:10:57 -> PM 1.0: 233        PM 2.5: 524        PM 10: 12
11:10:57 -> ---------------------------------------
11:10:58 -> Concentration Units (environmental)
11:10:58 -> PM 1.0: 519        PM 2.5: 2        PM 10: 38656
11:10:58 -> ---------------------------------------
11:10:59 -> .................................Checksum failure
11:11:38 ->
11:11:38 -> ---------------------------------------
11:11:38 -> Concentration Units (standard)
11:11:38 -> PM 1.0: 9        PM 2.5: 12        PM 10: 252
11:11:38 -> ---------------------------------------
11:11:38 -> Concentration Units (environmental)
11:11:39 -> PM 1.0: 8223        PM 2.5: 663        PM 10: 2
11:11:39 -> ---------------------------------------
11:11:40 -> ............................................Checksum failure
11:12:32 ->
11:12:32 -> ---------------------------------------
11:12:33 -> Concentration Units (standard)
11:12:33 -> PM 1.0: 265        PM 2.5: 12        PM 10: 12
11:12:33 -> ---------------------------------------
11:12:33 -> Concentration Units (environmental)
11:12:33 -> PM 1.0: 500        PM 2.5: 2        PM 10: 38656
11:12:33 -> ---------------------------------------
11:12:34 -> ............................................Checksum failure
11:13:27 ->
11:13:27 -> ---------------------------------------
11:13:27 -> Concentration Units (standard)
11:13:27 -> PM 1.0: 8        PM 2.5: 11        PM 10: 11
11:13:27 -> ---------------------------------------
11:13:27 -> Concentration Units (environmental)
11:13:27 -> PM 1.0: 8        PM 2.5: 203        PM 10: 16665
11:13:27 -> ---------------------------------------
11:13:28 -> .Checksum failure
11:13:29 ->
11:13:29 -> ---------------------------------------
11:13:29 -> Concentration Units (standard)
11:13:29 -> PM 1.0: 65346        PM 2.5: 65535        PM 10: 65534
11:13:29 -> ---------------------------------------
11:13:29 -> Concentration Units (environmental)
11:13:29 -> PM 1.0: 65534        PM 2.5: 65535        PM 10: 65535
11:13:29 -> ---------------------------------------
11:13:31 -> ................Checksum failure
11:13:50 ->
11:13:50 -> ---------------------------------------
11:13:50 -> Concentration Units (standard)
11:13:50 -> PM 1.0: 65532        PM 2.5: 65535        PM 10: 65535
11:13:50 -> ---------------------------------------
11:13:50 -> Concentration Units (environmental)
11:13:50 -> PM 1.0: 65535        PM 2.5: 65535        PM 10: 65346
11:13:50 -> ---------------------------------------
11:13:51 -> ....Checksum failure
11:13:56 ->
11:13:56 -> ---------------------------------------
11:13:56 -> Concentration Units (standard)
11:13:56 -> PM 1.0: 231        PM 2.5: 9        PM 10: 10
11:13:56 -> ---------------------------------------
11:13:56 -> Concentration Units (environmental)
11:13:56 -> PM 1.0: 486        PM 2.5: 2        PM 10: 38656
11:13:56 -> ---------------------------------------
11:13:57 -> ........................................
 
Odpowiedź
  


Wiadomości w tym wątku
PMS3003 - czujnik pyłu i suma kontrolna - przez cho_mik - 16-08-2021, 14:40

Skocz do:


Przeglądający: 2 gości