#PMS3003
Explore tagged Tumblr posts
pakmingw · 8 years ago
Text
Creating a Pollution Sensor based on Plantower Particulate Sensors (PMS3003)
Creating a Pollution Sensor based on Plantower Particulate Sensors (PMS3003)
If you already have Arduino board hanging around and would like to create your own PM2.5 / PM10 particulate sensor, here’s a recipe on how to do this. Note that I have pulled together a lot of other resources from the web that were badly organised here into one document. My code is based heavily on code from DFRobot.com’s sample code (all references included at the end of this post). Here’s a…
View On WordPress
15 notes · View notes
arduinosensor · 8 years ago
Text
PMS5003 sensor in action
I suceed to build my second sensor. This time it is more expensive. PMS5003 is not analog sensor like Sharp GP2Y1010AU0F.  PMS5003 is laser-based sensor with built in microcontroller that performs all required calculations and sends digital data messages to its TXD pin5. You could use other sensors like  PMS6003,  PMS7003 and even older ones like PMS1003 or PMS3003. They all could be connected in the same way, just pay attention at message length in the source code (If I am not wrong PMS5003/6003/7003 uses 32byte long messages but PMS3003 uses 24bit).
My first workingh prototype was connected to NodeMCU by only 3 wires: +5V, GND and RX. It was enough to activate sensor and start receiving some data on RX line. 
PMS5003 requres +5V but data lines should be connected to 3.3V levels which is used by NodeMCU 
* Be aware if you would like to connect PMS5003 to Arduino you should use 5<=>3.3v logic level converter.
 Also please note that some NodeMCU versions dont support 5V on Vin pin. In my case I have chinese clone LoLin NodeMCU V3 board that has 5V on reserved pins. The simpliest test is to connect power to PMS5003  PIN1 and PIN2 and you should hear a fan noise immediately.
I’ve built my 1st prototype and succesfully programmed using article from DFRobot: https://www.dfrobot.com/wiki/index.php/PM2.5_laser_dust_sensor_SKU:SEN0177
Although their sample code is for Arduino it works fine on NodeMCU too.
Following diagram has some additional pin connected to digital output but it is not requred for prototype. I used it to force PMS5003 to sleep and save a bit power between measurements. I will describe ti in my next post, together with my source code.
Tumblr media
Usefull links:
https://www.dfrobot.com/wiki/index.php/PM2.5_laser_dust_sensor_SKU:SEN0177
http://aqicn.org/sensor/pms5003-7003/
https://github.com/vlytsus/demcusensor/blob/master/dust_wifi.ino
1 note · View note