avaldebe / AQmon

DIY Air Quality Monitor
47 stars 13 forks source link

PMS5003 i2c? #8

Open avaldebe opened 7 years ago

avaldebe commented 7 years ago

The PMS5003 pinout on the LOGOELE datasheet indicate that when PIN8 is low, PIN4/PIN5 form an ì2c bus. When contacted about further information they could not say more.

pinout

Is this true? What is the address? And are the registers? I have long searched the web for information on this issue without success. A few days ago, I had a bit of success. I'll use this tread to dump the information as I find it.

avaldebe commented 7 years ago

Plantower's Chinese website shows their products on the PMS line up. It contains 6 different variants of the PMS5003. Among them, the PMS500I is listed with i2c interface and the PMS500P with UART and PWM interfaces.

This suggests that there LOGOLE datasheet refers to either, an earlier product version with all the above mentioned capabilities... or this mixed up the information.

Is the PMS500I vaporware? Is it a firmware variant?

PMS line up

avaldebe commented 7 years ago

SenseIOT lists almost all the variants on the plantower site and some extra. It even contains datasheets (in Chinese) to some of the PMS5003 variants:

The lack of PMS5003I datasheet might be a vaporware indication...

herjulf commented 7 years ago

Well we have the I2C variant we bought from china via one colleague. There is a pull request (PR) for a driver for Contiki. Works. But is missing the dustbin counters. Which we like to have to recalc the mass conversion for PM 2.5/10.

avaldebe commented 7 years ago

@herjulf Thanks for the heads up.

herjulf commented 7 years ago

BTW. I did some recalc of PM values (mass) from the dustbin counters. Approximation. Got close to BAM instrument 1m away. But Plantower PM10 was a factor 4 to low. PM2.5 as OK. You did this to? Just 1H snapshot data is on github. But we're waiting to have node permanently installed to get some more data.

avaldebe commented 7 years ago

I have about 13 months of data recorded every 10 min from my test station on my balcony. The PMS3003 does not report the bin counts, and only kept the TSI PM outputs (0.1, 2.5 and 10). There is a road side monitoring station about 500m away, which I want to compare my results with, but have not got around to do it. On the next version of the hardware/software will use a PMS5003 and log locally all the outputs on a higher frequency.

herjulf commented 7 years ago

OKi. We can keep in sync and compare results. Manages yesterday to mount a PMS5003 very close to a BAM stattion in the city of Uppsala. We're collecting the dustbin values and will try to find mass to this instrument As I said an 1 Hour snapshot was promising.

Also note I was wrong regarding the lack of dustbin sensors on the I2C version. Dustbin counters exist. The problem was on our side. We were duty-cycling the sensor in a way that those values did not appear. We'll look into this. The work we're doing is city air-quality monitoring using WSN network. Project name is GreenIoT.

84evan commented 5 years ago

OKi. We can keep in sync and compare results. Manages yesterday to mount a PMS5003 very close to a BAM stattion in the city of Uppsala. We're collecting the dustbin values and will try to find mass to this instrument As I said an 1 Hour snapshot was promising.

Also note I was wrong regarding the lack of dustbin sensors on the I2C version. Dustbin counters exist. The problem was on our side. We were duty-cycling the sensor in a way that those values did not appear. We'll look into this. The work we're doing is city air-quality monitoring using WSN network. Project name is GreenIoT.

If you happen to remember your source of the I2C variant in China, I'd love to know. I'm trying to buy one online and I can't seem to find anything.

avaldebe commented 5 years ago

@herjulf ?

eadmaster commented 5 years ago

i've just found this that claims to have both serial and I2C interfaces, i'm considering getting one...

avaldebe commented 5 years ago

All datasheets I have found use the same pinout table. Therefore, it is not a given that it would have an I2C interface.

herjulf commented 5 years ago

The I2C variant we have has extra i in the serial number. PMS5003I seen under the barcode.

herjulf commented 5 years ago

Some results: PM2.5 very OK. Dustbin should be interesting to compare.

http://kth.diva-portal.org/smash/record.jsf?pid=diva2%3A1250978&dswid=9626