@alowhum I am not sure the recalculated figures are correct so I am just going to modify the code and send the raw values.
Posts made by Gavin Nicholson
RE: Next generation dust sensor for MySensors
@alowhum Firstly thanks for the code! Just a question to see if this is a cut and paste error. In the section under /* MEASUREMENT */ should the second and third serial.println be Dust2_5 and Dust10_0?
Also I cant get my head around one thing. The RAW data seems logical in that your comments say that the 0.3 micron values will be the largest as it is measuring everything bigger than that. The 10 should be larger than 25 which will be larger than 100. In my case the raw values match that relationship. HOWEVER, the values sent back (concPMx_y_CF1) are reversed. They start small and go bigger? Is this correct?
Power supply for PMS-7003
First time poster here! I am dabbling with some of these great mysensors projects. I have successfully setup an Arduino UNO Gateway which is connected via Ethernet to my network and via the radio module to a PIR sensor. All good!
Now I am trying to setup a PMS-7003 dust sensor. I wasn't sure of the range from my existing Gateway so I thought I would try and setup another Gateway this time using a LoLin V3 NodeMcu and connecting via my WiFi. So I have used the code from here https://www.mysensors.org/build/esp8266_gateway and that is working fine. My plan is to connect the dust sensor directly to this Gateway. Thus I inserted the code from here: https://forum.mysensors.org/topic/6404/next-generation-dust-sensor-for-mysensors
This compiles and loads fine. HOWEVER, when I connect the dust sensor the board seems to crash or shuts down until I unplug it and leave it for a while. When the dust sensor is plugged in I can hear the fan inside working. I am plugging the dust sensor into VU and the GND pin beside it for power. Then I have modified the code and I am using pins 7 and 8 for the serial communication (I have also tried pins 1 and 2).
From the discussion here: https://community.particle.io/t/dust-sensor-pms-5003-6003-7003/24221/49
I thought this would work but it isn't. Ideas? Do I have to supply with a separate power supply (the specs say it draws less than 100mA though?)
Edit: Could it be my laptop isn't supplying enough current?