Particles sensor of opendata-stuttgart
Shopping list
Shinyei PPD42NS: http://www.aliexpress.com/wholesale?SearchText=shinyei+ppd42ns [12€]
NodeMCU: http://www.aliexpress.com/wholesale?SearchText=nodemcu [4€]
two 87°C plastic tubes: http://www.hornbach.de/shop/HT-Bogen-DN-75-87-Grad/266682/artikel.html [2€]
cable fixer: http://www.amazon.de/Br%C3%BCder-Mannesmann-M13050-Kabelbinder-Sortiment-300-tlg/dp/B003XUIGQO [5€]
Micro usb cable [1€]
Assembling
drill two holes for the sensor and 2 to 4 for the nodemcu
assemble ppd42ns with cable fixer to tube
the same for nodemcu.
Connect pins of PPD42NS to nodemcu
PPD42NS Pin 1 (grey or green) => GND
PPD42NS Pin 2 (green or white)) => Pin D5 / GPIO14
PPD42NS Pin 3 (black or yellow) => Vin
PPD42NS Pin 4 (white or black) => Pin D6 / GPIO12
PPD42NS Pin 5 (red) => unused
final version
Software
German version: https://github.com/opendata-stuttgart/sensors-software/blob/master/BeginnersGuide/Guide.md
Download Arduino software (tested is version 1.6.5): https://www.arduino.cc/en/Main/OldSoftwareReleases#previous
Add esp8266 boards to Arduino software: https://github.com/esp8266/Arduino#installing-with-boards-manager
We have more than one working version of the firmware. For example https://github.com/opendata-stuttgart/sensors-software/tree/master/esp8266-arduino/ppd42ns-wifi-dht
Change wifi settings if no Freifunk is available.
Upload software to nodemcu
Register sensor on API
Watch serial console to see chipid
Send chipid to one of the admins of api.dusti.xyz. For example me.
Describe in the email the location you apply the sensor to. Should be outdoor!
Links
Some analysis of the PPD42NS: http://blog.madflex.de/shinyei-ppd42ns-dust-sensor/