Quick jump:  What's new

 
Go to:
 
Weblog: air quality   
in Dobrica Pavlinušić's random unstructured stuff
DSM501A

datasheet: dsm501.pdf

DMS501A - 2mm pin pitch, DMS501B - 2.54 mm

5V, 90mA

1 minute stabilization after power up

sum time of low (0.7v) for measurement interval, divide by time

PINOUT I/O DESCRIPTION

Pin number Pin name Description
#1 Control Vout 1 control
#2 Vout 2 Vout 2 output factory calibrated PWM output for density of particles over 1 �m.
#3 Vcc Positive power supply DC 5V
#4 Vout 1 Vout 1 output (PWM)
#5 GND Ground

dms501-5pins.png

control pin 1

resistor between pin 1 and ground (square pin on board) to control vout 1 output (pin 4)

Resistor value Description
open Preset sensitivity (over 2.5 �m)
47K Half sensitivity (over 1.75 �m)
18.2K Equal sensitivity of Vout 2 (over 1 �m)

arduino

I tried both of them and on my module they don't report sane results when compared with other sensors.

platformio

https://primalcortex.wordpress.com/2020/05/23/an-esp8266-air-quality-monitor-based-on-the-dsm501a-dust-sensor/
https://github.com/fcgdam/ESP8266_AirQuality

dpavlin@nuc:/nuc/esp8266/ESP8266_AirQuality$ git remote -v
origin  https://github.com/fcgdam/ESP8266_AirQuality (fetch)
origin  https://github.com/fcgdam/ESP8266_AirQuality (push)

# edit config
dpavlin@nuc:/nuc/esp8266/ESP8266_AirQuality$ vi src/secrets.h

dpavlin@nuc:/nuc/esp8266/ESP8266_AirQuality$ pio run

dpavlin@nuc:/nuc/esp8266/ESP8266_AirQuality$ pio run -t upload --device-port /dev/ttyUSB2

Pins:

Wemos D1 +5V DSM501a +5V
Wemos D1 D6 DSM501a PM 1.0 pin
Wemos D1 D5 DSM501a PM 2.5 pin<
Wemos D1 GND DSM501a GND pin

description of similar sensor

https://github.com/opendata-stuttgart/meta/blob/master/files/ShinyeiPPD42NS_Deconstruction_TracyAllen.pdf

power supply

It really needs quiet power supply to get any readings which are not just noise.

dsm501-schema.png
permalink
MQ

Analog sensors

MQ-2

  • MQ-2 gas sensor has high sensitity to LPG, Propane and Hydrogen, also could be used to Methane

and other combustible steam

board markings: KS123-35Y00K
LM393

MQ-4

  • High sensitivity to CH 4 ,Natural gas.
  • Small sensitivity to alcohol, smoke.

board markings: LM-22
LM393

MQ-7

  • High sensitivity to carbon monoxide

board markings: LM-22
LM393

https://www.instructables.com/id/Arduino-CO-Monitor-Using-MQ-7-Sensor/

My changes for single-line NAME=value output https://github.com/dpavlin/mq7-co-monitor

permalink
GP2Y1010AU0F


Product Name: GP2Y1010AU0F dust sensor module

https://www.instructables.com/id/How-to-Interface-With-Optical-Dust-Sensor/

Too cheap to be useful? https://techblog.calvinboey.com/review-of-the-sharp-dust-sensor-gp2y1010au0f/

https://d.lij.uno/misc-dust-detector-with-arduino-serial-comm.html

Technical parameters

Power supply voltage: DC5 � 2V

Operating Current: 20mA (peak)

Sensitivity: 0.5V / (0.1mg / m3)

The minimum detection level of particles: 0.8 m

Clean air voltage: 0.9V typ.

Working temperature: -10 ~ 65

Storage temperature: -20 ~ 80

Size: 46mm � 30mm � 17.6mm

Size Weight: 15g

arduino

https://github.com/mickey9801/GP2Y1010AU0F

  calcVoltage = voMeasured * (this->_VCC / 1024.0);
  // linear equation taken from http://www.howmuchsnow.com/arduino/airquality/
  dustDensity = (0.17 * calcVoltage - 0.1) * 1000.0;

Source code here works much better if you do 10 readings and average them before sending result

tasmota

https://github.com/arendst/Tasmota/pull/7118

permalink
MH-Z19B

    Product model number: MH-Z19B
    Gas Detection: Carbon Dioxide
    Supply voltage: 4.5~5.5V DC
    Average current: <20mA (@5V power supply)
    Peak current: 150 mA (@5V supply)
    Interface level: 3.3V (5V compatible)
    Measurement range: 0~10000ppm can be selected within the range
    Warm-up time: 3min
    Response time: T90<120s
    Working temperature: 0~50°C
    Operating Humidity: 0 to 95% RH (non-condensing)

arduino

https://github.com/satr/arduino-with-co2-sensor-mh-z19b-and-lcd-display-nokia-5110

https://github.com/tobiasschuerg/MH-Z-CO2-Sensors

https://github.com/strange-v/MHZ19

https://github.com/arendst/Tasmota/wiki/MH-Z19B

permalink
PMS3003

http://git.rot13.org/?p=air-quality;a=blob;f=pms3003.pl;hb=HEAD

PMS3003 series data manual_English_V2.5.pdf

http://www.plantower.com/en/content/?107.html

http://aqicn.org/sensor/pms3003/

https://github.com/avaldebe/AQmon/blob/master/Documents/PMS3003_LOGOELE.pdf (different manufacturer)

http://download.kamami.pl/p563980-PMS3003%20series%20data%20manual_English_V2.5.pdf



spec

    Parameters :Index (Unit )
    Measuring range: 0.3-1.0um ; 1.0-2.5um ; 2.5-10um

Measurement units: ug/m3
3 Measurement accuracy: ug/m3
4 Response time: <10s
5 Work current: 5V200ma@ Work State 5V2ma@ Standby Fitness

    Counting efficiency :50%@0.3um 98% @> = 0.5 um
    Response time :≤ 10 sec
    DC supply voltage :5 V
    Operating current :120 mA
    Standby Current :≤ 200 µA
    Data interface level :L <0.8 @ 3.3 H> 2.7@3.3 V
    Operating temperature range :-20 ~ + 50 °C
    Operating humidity range :0 to 99%
    MTBF :≥ 3 Year
    Size :65 × 42 × 23 mm

pinout

    PIN1 :VCC :Power Supply (5V).
    PIN2 :GND :Ground.
    PIN3 :SET :Standby mode (when 0), operating mode (when 1) TTL 3V3
    PIN4 :RXD :Serial receive / TTL level @ 3.3V.
    PIN5 :TXD :Serial transmit / TTL level @ 3.3V.
    PIN6 :RESET :Module reset / TTL level @ 3.3V.
    PIN7,8 :NC :Not connected.

serial

9600

starts with 0x42 0x4d

Byte buffer index Description
1 – Constant value (0x42)
2 0 Constant value (0x4d)
3 1 Frame length
4 2
5 3 PM1.0 concentration unit (μg/m3)
6 4
7 5 PM2.5 concentration unit (μg/m3)
8 6
9 7 PM10 concentration unit (μg/m3)
10 8
11 9 PM1.0 concentration unit under atmospheric environment (μg/m3)
12 10
13 11 PM2.5 concentration unit under atmospheric environment (μg/m3)
14 12
15 13 PM10 concentration unit under atmospheric environment (μg/m3)
16 14
17 15 reserved
18 16
19 17 reserved
20 18
21 19 reserved
22 20
23 21 Control sum
24 22

code

Arduino

doesn't check checksum: https://github.com/suda/PMS3003/blob/master/src/PMS3003.cpp

much better library: https://github.com/fu-hsi/pms

Node MCU

https://github.com/avaldebe/AQmon/blob/master/lua_modules/pms3003.lua

permalink
ZPH02-PM2.5
ZPH02.pdf

http://git.rot13.org/?p=air-quality;a=blob;f=zph02.pl;hb=HEAD

Technical Parameters

Model ZPH02
Working voltage range 5 +/- 0.2 V (DC)
Output way Rate of low level%(recommending 30s)
Output signal voltage 5 +/- 0.2 V
Detection ability smallest particles 1 μm diameter
Warm-up time
Working current
Storage
Humidity
≤1min(device warming-up time)
≤90mA
≤95%RH
range Working ≤95%RH
Temperature
range Storage
Working -30 deg. C~50 deg. C
0�C~50�C
Size 59.5�44.5�20mm(L�W�H)
Physical interface EH2.54-5P

pinout

PIN No. PMW mode UART mode
PIN1 GND GND
PIN2 NC TXD
PIN3 VCC VCC
PIN4 PWM NC

| PIN5 | NC | Connects to GND |
permalink
Weblog Navigation
Loading...
Weblog Archives
  • Loading...