-
Notifications
You must be signed in to change notification settings - Fork 20
How to use SDS011 as a mobile PM sensor
● You can simply output the sensor data on a screen.
● You need to choose the one you have among the 4 screens given in the configuration:
● You also need to connect the screen to the NodeMCU:
Screen | NodeMCU | |
---|---|---|
VCC | -> | Pin 3V3 |
GND | -> | Pin GND |
SCL | -> | Pin D4 (GPIO2) |
SDA | -> | Pin D3 (GPIO0) |
Inconvenient:
- The screen display many different information in a loop (Wifi network, name of Sensor, temp...) so you will need to wait for the loop to complete to get your PM value
- If there is no wifi network to which the NodeMCU can connect, it will first goes in "access point mode". By default, it will stay 10 minutes in this mode before starting to measure the PM value. The time spent in Access point mode can be set to a lower value in Configuration > "Duration router mode" (but under some circonstance, if you set a value too low, it can result in unwanted situation: cf this issue)
You need:
- an SDS011 and a NodeMCU with the Luftdaten firmware installed
- a way to power the sensor (ex: battery, USB charger...)
How it works:
The SDS011 is connected via a USB cable adapter to an Android device and the data are retrieved in an app.
Advantages:
- live measurement
- no NodeMCU
- the Android device powers the sensor via USB so no need for an external battery or a USB charger
Inconvenient:
- the sensor is always switched on and there is no interval between the measurements ― ⚠ this significantly reduces the sensor life span ⚠― but you can simply plug the USB cable for a couple of seconds to get a reading and then unplug it
- it doesn't save the data
You need:
- an SDS011 with its USB key + data cable
- an android device
- a Micro-USB-to USB Adapter
- the MobileFeinstaub.apk: you can find it here(the link is provided by https://airlogger.de/measuring-particle-matter-with-your-android-phone/ and the source code is on GitHub: https://github.com/opendata-stuttgart/sensors-software/tree/master/MobileFeinstaub)
Steps:
- Download the MobileFeinstaub.apk, transfer it on your Android, an install.
- Connect together the SDS011, the data cable, the USB key, the Micro-USB-to USB Adapter, your Android
- Open MobileFeinstaub app. If needed allow the USB connection
How that work: The SDS011 is connected to a NodeMCU with the Luftdaten software installed and the data are sent to a phone via it Wifi hotspot (a connection to the internet isn't required unless you want to save the PM values).
Advantages:
- intervals between measurement (this saves the lifespan of the sensor)
Inconvenient:
- you need a way to power the sensor: USB charger or battery
In brief: first you create a hotspot on your phone. When the NodeMCU starts, it looks for a Wifi connection, if it can't connect to a Wifi, the NodeMCU creates its own hotspot. With your smartphone, you connect to this hotspot which allows you to change the settings of the network it should connect. When you restart the NodeMCU, it will connect to the network (in this case your phone hotspot). Then you get the PM values via the web page generated by the NodeMCU.
You need:
- an SDS011 and a NodeMCU with the Luftdaten firmware installed
- a device with Wifi hotspot capacity (ex: a smartphone, a tablet, a laptop...)
- a way to power the sensor (ex: battery, USB charger...)
Steps:
- On your device, create a hotspot. Copy the name and the password. Do not switch the hotspot ON yet
- On Windows 10 you can create a hotspot by going Settings > Network & Internet > Mobile hotspot
- On Android, go to Settings > Wireless & Networks > More > Tethering & portable hotspot
If you can access your sensor via its IP address(ex: you sensor is already connected to your Home wifi):
- Go to the configuration page (it should be something like http://192.168.1.15/config)
- Change the name and the password under "WiFi Settings" to your hotspot name and password
If you don't know your sensor IP:
- If your sensor is connected to a Wifi, switch the wifi off, or change the wifi password or take the sensor out the range of the wifi
- Restart your NodeMCU (by unplugging/re-plugging it or pressing the "reset" button). The NodeMCU will create a hotspot (it switch to "access point mode")
- On your device (smartphone, laptop...), go to the list of available Wifi and click on "Feinstaubsensor-ID",
- On your device, open a browser and go to the URL 192.168.4.1
- Enter your hotspot name and password and click "save and restart", wait 30 secs.
- Unplug your NodeMCU, switch on your hotspot, plug the NodeMCU and wait 30 sec.
- To see if the NodeMCU is connected to your hotspot:
- on an Android: open a terminal app and enter
IP neigh
, you should see something like this https://i.stack.imgur.com/lR8Qxl.png. Copy the IP address (in this example 192.168.43.72) [for other methods to retrieve the IP address: see StackExchange or StackExchange]
- on an Android: open a terminal app and enter
- On your device, open a browser, enter the IP address of your sensor: you should see the home page of Luftdaten where you can get the PM values by clicking on "Current Data" (the data and the HTML formating are generated by the NodeMCU)
- If you have an internet connection on your device (ex: 3G/4G/5G), the measurement will be transmitted to Madavi (and Luftdaten map if you registered) and the other APIs you added (like OpenSenseMap). If there is no connection, the measurements will be only displayed but not saved.
- Wiki home, EN
- Bezugsquellen Einzelteile, EN
- Firmware einspielen, EN
- Zusammenbau der Komponenten (Schaltung), EN
- Zusammenbau der Komponenten (Montage Einzelteile), EN
- Sensor-Konfiguration, EN
- Eintrag in der Datenbank, EN
- Links (Grafiken, Sensor-Infos), EN
- Translations
- Data format
- APIs, EN
- Anschluss weitere Sensoren und Hardware
- Senden an Sensor.Community (z.B. mit Raspberry Pi)
- NodeMCU Pinouts v2, v3
- Datenblätter, Spezifikationen
- Unterstützte Sensoren
- Studien
- ähnliche Projekte
- Korrektur Luftfeuchte, EN
- EN: How to use the SDS011 as a mobile sensor
- FR: Comment utiliser SDS011 comme capteur PM mobile
- 2020-04-0 Stadtbücherei - Weihnachtsferien
- 2020-04-0 Shackspace
- 2020-03-24 Stadtbücherei - Weihnachtsferien
- 2020-03-10 Shackspace
- 2020-02-23 Stadtbücherei
- 2020-02-09 Shackspace
- 2020-01-0 Stadtbücherei
- 2020-01-0 Shackspace
- 2019-12-24 Stadtbücherei - Weihnachtsferien
- 2019-12-10 Shackspace
- 2019-11-26 Stadtbücherei
- 2019-11-12 Shackspace
- 2019-10-22 Stadtbücherei
- 2019-10-08 Shackspace
- 2019-09-24 Stadtbücherei
- 2019-09-10 Shackspace
- 2019-09-24 Stadtbücherei
- 2019-09-10 Shackspace
- 2019-08-27 Stadtbücherei
- 2019-08-13 Shackspace - Sommerferien
- 2019-07-23 Stadtbücherei
- 2019-07-09 Shackspace
- 2019-06-25 Stadtbücherei
- 2019-06-11 Shackspace - Pfingstferien
- 2019-05-28 Stadtbücherei
- 2019-05-14 Shackspace
- 2019-04-23 Stadtbücherei - Osterferien
- 2019-04-09 Shackspace
- 2019-03-26 Stadtbücherei
- 2019-03-12 Shackspace
- 2019-02-26 Stadtbücherei
- 2019-02-12 Shackspace
- 2019-01-22 Stadtbücherei
- 2019-01-08 Shackspace
- 2018-12-18 Stadtbücherei - Weihnachtsferien
- 2018-12-11 Shackspace
- 2018-11-27 Stadtbücherei
- 2018-11-13 Shackspace
- 2018-10-23 Stadtbücherei
- 2018-10-09 Shackspace
- 2018-09-25 Stadtbücherei
- 2018-09-11 Shackspace
- 2018-08-28 Stadtbücherei
- 2018-08-14 Shackspace - Sommerpause
- 2018-07-24 Stadtbücherei
- 2018-07-10 Shackspace
- 2018-06-26 Stadtbücherei
- 2018-06-12 Shackspace
- 2018-05-22 Stadtbücherei
- 2018-05-08 Shackspace
- 2018-04-24 Stadtbücherei
- 2018-04-10 Shackspace
- 2018-03-27 Stadtbücherei
- 2018-03-13 Shackspace
- 2018-03-03 Open Data Day 2018
- 2018-02-27 Stadtbücherei
- 2018-02-13 Shackspace
- 2018-01-23 Stadtbücherei
- 2018-01-09 Shackspace
- 2017-12-26 Stadtbücherei
- 2017-12-12 Shackspace
- 2017-11-28 Stadtbücherei
- 2017-11-14 Shackspace
- 2017-10-24 Stadtbücherei
- 2017-10-10 Shackspace
- 2017-09-26 Stadtbücherei
- 2017-09-12 Shackspace
- 2017-08-22 Stadtbücherei
- 2017-08-08 Shackspace
- 2017-07-25 Stadtbücherei
- 2017-07-11 Shackspace
- 2017-06-27 Stadtbücherei
- 2017-06-13 Shackspace
- 2017-05-23 Stadtbücherei
- 2017-05-09 Shackspace
- 2017-04-25 Stadtbücherei
- 2017-04-11 Shackspace
- 2017-03-28 Stadtbücherei
- 2017-03-14 Shackspace
- 2017-03-04 Open Data Day 2017
- 2017-02-28 Stadtbücherei
- 2017-02-14 Shackspace
- 2017-01-24 Stadtbücherei
- 2017-01-10 Shackspace
- 2016-12-20 Stadtbücherei
- 2016-12-13 Shackspace
- 2016-11-22 Stadtbücherei
- 2016-11-08 Shackspace
- 2016-10-25 Stadtbücherei
- 2016-10-11 Shackspace
- 2016-09-27 Stadtbücherei
- 2016-09-13 Shackspace
- 2016-08-23 Stadtbücherei
- 2016-08-09 Shackspace
- 2016-07-26 Stadtbücherei
- 2016-07-12 Shackspace
for more, see Protokolle