Skip to content
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
builds
lib
.gitignore
.travis.yml
LICENSE.md
Readme.md
Versions.md
airrohr-firmware.ino
build.sh
constants.h
flash.sh
platformio.ini
platformio_script.py

Readme.md

Build Status

Airrohr Firmware

Strip down firmware based on version NRZ-2017-100 of the luftdaten.info airrohr-firmware:

https://github.com/opendata-stuttgart/sensors-software/tree/master/airrohr-firmware

Building and Flashing

Build the image with the build script:

./build.sh

The image is stored in the builds folder.

The flash script flashes the indicated image to the ESP8266 module:

./flash /dev/cu.wchusbserial1420 builds/airrohr-fw-0.3.0.bin

The first argument denotes the device file name, the second argument denotes the firmware to be flashed.

Wiring

Tools

Arduino IDE Settings

  • Board: NodeMCU 1.0 (ESP-12E Module)
  • CPU Frequency: 80MHz
  • Flash Size: 4M (3M SPIFFS)

Dependencies

The project has the following external dependencies:

  • ArduinoJson@5.8.4
  • DHT sensor library@1.3.0
  • EspSoftwareSerial@3.3.1
  • Adafruit Unified Sensor@1.0.2

Wiring

SDS011

  • Pin 1 (TX) → Pin D1 (GPIO5)
  • Pin 2 (RX) → Pin D2 (GPIO4)
  • Pin 3 (GND) → GND
  • Pin 4 (2.5m) → unused
  • Pin 5 (5V) → VU
  • Pin 6 (1m) → unused

DHT22

  • Pin 1 → 3V3
  • Pin 2 → Pin D7 (GPIO13)
  • Pin 3 → unused
  • Pin 4 → GND

Luftdaten.info API Pins

The luftdaten.info API needs for each sample type a specific pin number to correctly match the measurements:

  • DHT22 → Pin 7
  • SDS011 → Pin 1
You can’t perform that action at this time.