Honeywell sensors
Warning
This sensors are 3.3V devices. They require 5V power to operate the laser and fan. However, the I/O pins are not 5V tolerant and the sensor will be damaged by 5V logic.
Connector
8 pin Molex 1.25mm "PicoBlade" 51021 compatible, found online as 1.25mm JST.
Pin | Name | Voltage | Function |
---|---|---|---|
1 | VOUT | 3.3V | power output: max 100 mA |
2 | VCC | 5V±0.2V | power input: max 600 mA, ripple < 20 mV |
3/4 | NC | not connected | |
5 | RES | reserved for future use | |
6 | TX | 3.3V TTL | serial port |
7 | RX | 3.3V TTL | serial port |
8 | GND | 0V |
5x2 1.27mm female header: Samtec SFSD-05-28-H-5.00-SR (cable assembly) or SFM-105-02-H-D (surface mount).
Pin | Name | Voltage | Function |
---|---|---|---|
1 | VOUT | 5V | power output: max 300 mA |
2 | VCC | 5V±0.2V | power input: max 600 mA, ripple < 20 mV |
3/4 | GND | 0V | |
5 | RES | reserved for future use | |
6 | NC | not connected | |
7 | RX | 3.3V TTL | serial port |
8 | NC | not connected | |
9 | TX | 3.3V TTL | serial port |
10 | SET | reserved for future use |
Protocol
Serial protocol is UART 9600 8N1 3.3V TTL.
All the Honeywell PM sensors can be fully controlled with serial commands:
Command | Description | message |
---|---|---|
active_mode |
continuous operation | 68 01 40 57 |
passive_mode |
single-shot operation | 68 01 20 77 |
passive_read |
trigger single-shot measurement | 68 01 04 93 |
sleep |
sleep mode | 68 01 02 95 |
wake |
wake up from sleep mode | 68 01 01 96 |
Messages containing measurements consist of unsigned short integers.
The last bit of the message should contain sum(message[3:-1])%0x100
.
message |
HPMA115S0 | HPMA115C0 |
---|---|---|
8 bits (32b on active mode) | 16 bits (32b on active mode) | |
header | 3 bits | 3 bits |
40 05 04 |
40 05 04 |
|
body | 4 bits | 12 bits |
2 values | 4 values, 2 reserved | |
checksum | 1 bit | 1 bit |
The message body (message[3:7]
) contains 2 values:
- pm25, pm10: PM2.5, PM10 [μg/m³]
The message body (message[3:7]
) contains 4 values:
- pm01, pm25, pm04, pm10: PM1.0, PM2.5, PM4.0 PM10 [μg/m³]
HPMA115S0
About the HPMA115S0 sensor (-m HPMA115S0
)
pms -m HPMA115S0 info
Honeywell HPMA115S0 sensor observations
time measurement time [seconds since epoch]
pm25, pm10 PM2.5, PM10 [μg/m3]
String formats: pm (default), csv and header
Read 10 samples (-n 10
), one sample every 10 seconds (-i 10
)
pms -m HPMA115S0 -n 10 -i 10 serial
Print on CSV format (-f csv
)
pms -m HPMA115S0 -n 10 -i 10 serial -f csv
Print on hexdump format (-f hexdump
)
pms -m HPMA115S0 -n 10 -i 10 serial -f hexdump
HPMA115C0
About the HPMA115S0 sensor (-m HPMA115C0
)
pms -m HPMA115C0 info
Honeywell HPMA115C0 sensor observations
time measurement time [seconds since epoch]
pm01, pm25, pm04, pm10 PM1.0, PM2.5, PM4.0 PM10 [μg/m3]
String formats: pm (default), csv and header
Read 10 samples (-n 10
), one sample every 10 seconds (-i 10
)
pms -m HPMA115C0 -n 10 -i 10 serial
2021-09-24 15:46:40: PM1 4.0, PM2.5 7.0, PM4 9.0, PM10 23.0 μg/m3
2021-09-24 15:46:50: PM1 3.0, PM2.5 4.0, PM4 4.0, PM10 4.0 μg/m3
2021-09-24 15:47:00: PM1 4.0, PM2.5 6.0, PM4 6.0, PM10 7.0 μg/m3
2021-09-24 15:47:10: PM1 5.0, PM2.5 6.0, PM4 6.0, PM10 7.0 μg/m3
2021-09-24 15:47:20: PM1 4.0, PM2.5 5.0, PM4 5.0, PM10 5.0 μg/m3
2021-09-24 15:47:30: PM1 5.0, PM2.5 6.0, PM4 6.0, PM10 8.0 μg/m3
2021-09-24 15:48:20: PM1 5.0, PM2.5 7.0, PM4 7.0, PM10 8.0 μg/m3
2021-09-24 15:48:30: PM1 5.0, PM2.5 7.0, PM4 7.0, PM10 8.0 μg/m3
2021-09-24 15:48:40: PM1 4.0, PM2.5 6.0, PM4 6.0, PM10 7.0 μg/m3
2021-09-24 15:48:50: PM1 4.0, PM2.5 6.0, PM4 7.0, PM10 8.0 μg/m3
Print on CSV format (-f csv
)
pms -m HPMA115C0 -n 10 -i 10 serial -f csv
time, pm01, pm25, pm04, pm10
1632491200, 4.0, 7.0, 9.0, 23.0
1632491210, 3.0, 4.0, 4.0, 4.0
1632491220, 4.0, 6.0, 6.0, 7.0
1632491230, 5.0, 6.0, 6.0, 7.0
1632491240, 4.0, 5.0, 5.0, 5.0
1632491250, 5.0, 6.0, 6.0, 8.0
1632491300, 5.0, 7.0, 7.0, 8.0
1632491310, 5.0, 7.0, 7.0, 8.0
1632491320, 4.0, 6.0, 6.0, 7.0
1632491330, 4.0, 6.0, 7.0, 8.0
Print on hexdump format (-f hexdump
)
pms -m HPMA115C0 -n 10 -i 10 serial -f hexdump
00000000: 40 0d 04 00 04 00 07 00 09 00 17 00 00 00 00 84 @...............
00000010: 40 0d 04 00 03 00 04 00 04 00 04 00 00 00 00 a0 @...............
00000020: 40 0d 04 00 04 00 06 00 06 00 07 00 00 00 00 98 @...............
00000030: 40 0d 04 00 05 00 06 00 06 00 07 00 00 00 00 97 @...............
00000040: 40 0d 04 00 04 00 05 00 05 00 05 00 00 00 00 9c @...............
00000050: 40 0d 04 00 05 00 06 00 06 00 08 00 00 00 00 96 @...............
00000060: 40 0d 04 00 05 00 07 00 07 00 08 00 00 00 00 94 @...............
00000070: 40 0d 04 00 05 00 07 00 07 00 08 00 00 00 00 94 @...............
00000080: 40 0d 04 00 04 00 06 00 06 00 07 00 00 00 00 98 @...............
00000090: 40 0d 04 00 04 00 06 00 07 00 08 00 00 00 00 96 @...............