Particles sensor of opendata-stuttgart

Shopping list

  1. Shinyei PPD42NS: http://www.aliexpress.com/wholesale?SearchText=shinyei+ppd42ns [12€]

  2. NodeMCU: http://www.aliexpress.com/wholesale?SearchText=nodemcu [4€]

  3. two 87°C plastic tubes: http://www.hornbach.de/shop/HT-Bogen-DN-75-87-Grad/266682/artikel.html [2€]

  4. cable fixer: http://www.amazon.de/Br%C3%BCder-Mannesmann-M13050-Kabelbinder-Sortiment-300-tlg/dp/B003XUIGQO [5€]

  5. Micro usb cable [1€]

Assembling

  1. drill two holes for the sensor and 2 to 4 for the nodemcu

plastic tube image
  1. assemble ppd42ns with cable fixer to tube

  2. the same for nodemcu.

  3. 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

  1. final version

final tube image

Software

German version: https://github.com/opendata-stuttgart/sensors-software/blob/master/BeginnersGuide/Guide.md

  1. Download Arduino software (tested is version 1.6.5): https://www.arduino.cc/en/Main/OldSoftwareReleases#previous

  2. Add esp8266 boards to Arduino software: https://github.com/esp8266/Arduino#installing-with-boards-manager

  3. 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

  4. Change wifi settings if no Freifunk is available.

  5. Upload software to nodemcu

Register sensor on API

  1. Watch serial console to see chipid

  2. Send chipid to one of the admins of api.dusti.xyz. For example me.

  3. Describe in the email the location you apply the sensor to. Should be outdoor!