pjgueno / AirRohrFirmwareNextPM

Custom version for the Tera Sensor Next PM
GNU General Public License v3.0
1 stars 0 forks source link

airRohr Sensor Firmware for SPS30, SDS011, DHT22, BMP180, BMP/E 280, NEO-6M and many more

Features:

Contributing

Please refer to Contributing README for details.

WiFi configuration

For German Version see: Konfiguration der Sensoren

If a (previously) configured WiFi is not reachable within 20 seconds after power-on, the firmware flips itself into AP mode and creates a WiFi network in the form airRohr-\[Sensor-ID\].

This WiFi network is by default unencrypted. When a client connects to this, it will get redirected to the sensors web server http://192.168.4.1/ which allows initial configuration.

Configurable is

The unencrypted Access Point for initial configuration will turn itself off after about 10 minutes. In order to reactivate please power cycle the board.

DHT22 Humidity Reporting

The DHT22 sensor is originally an Indoor sensor. For outdoor use it appears to be rather sensitive to water condensation after 100% rel.Humidity that keep it for very long time (sometimes forever) at 99.9% value. Also it appears to be sensitive to high UV light, which tends to cause the sensor to crash until hard power-loss restarted.

Better experiences have been made with a BME280 or SHT3x sensor, so consider those instead.

Debug via USB-Serial

Connecting/Powering via a computer USB will provide USB serial with the settings 9600 baud 8N1. By default the sensor will provide human readable debug information of configurable granularity there.

Save as CSV

All measurements can also be read as CSV via USB-Serial when using the USB port in the settings 9600 Baud 8N1. In order to avoid interfering of debug options (see earlier section) set debug to None in the configuration.

Wiring

https://raw.githubusercontent.com/opendata-stuttgart/meta/master/files/nodemcu-v3-schaltplan-sds011.jpg

Please refer to the Pinout of NodeMCU v2 and v3 for much more detailed information about the individual pin functions.

SDS011 (serial)

Note: Serial connections are always crossed (RX on one side is connected with TX on other side)

DHT22

DS18B20 (OneWire interface)

Please check your version (pinout) at [https://datasheets.maximintegrated.com/en/ds/DS18B20.pdf] Uses the same PIN D7 as DHT22, so DHT22 OR DS18B20 can be used.

PMS1003 to PMS6003

Pinout: 8 7 6 5 4 3 2 1

PMS7003

Pinout PMS7003: 9 7 5 3 1 10 8 6 4 2

Honeywell PM sensor

Pinout: 8 7 6 5 4 3 2 1

BMP180 / BMP280 / BME280 / HTU21D / SHT3x (I2C)

SPS30 (I2C, 5V)

Pinout: 1 2 3 4 5

LCD1602 (I2C, 5V - check your version)

OLED displays with SSD1306 (I2C, 128x64 pixels)

GPS NEO 6M (serial)

VCC and GND can be provided by board board (use 3.3v!)

Note: Serial connections are always crossed (RX on one side is connected with TX on other side)

Luftdaten.info API "Pins"

For use of multiple sensors with Luftdaten.info, you need to specify a virtual API Pin for the use of Luftdaten.info in the Luftdaten.info sensor registration. The firmware uses the following API pins hardcoded. These match what the Luftdaten.info expect and will use by default when selecting the correct sensor model.