Skip to content

Commit

Permalink
Stop advertising PPD42NS sensor
Browse files Browse the repository at this point in the history
This is very rarely used sensor (by less than 0.05% of the users)
and removing it would save 2kb of flash space and resolve
a pin conflict with GPS (aka makes GPS more stable). For now
just do the documentation removal.
  • Loading branch information
dirkmueller committed Jan 5, 2020
1 parent 0b20501 commit 3d06a3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 49 deletions.
10 changes: 1 addition & 9 deletions airrohr-firmware/Readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# airRohr Sensor Firmware for PPD42NS, SDS011, DHT22, BMP180, BMP/E 280, NEO-6M and many more
# airRohr Sensor Firmware for SPS30, SDS011, DHT22, BMP180, BMP/E 280, NEO-6M and many more

## Features:
* many environmental and air quality sensors can be used concurrently
Expand Down Expand Up @@ -68,13 +68,6 @@ Please refer to the [Pinout of NodeMCU v2 and v3](https://github.com/opendata-st
* Pin 5 (5V) -> VU
* Pin 6 (1m) -> unused

### PPD42NS
* Pin 1 => GND
* Pin 2 => Pin D5 (GPIO14)
* Pin 3 => VU
* Pin 4 => Pin D6 (GPIO12)
* Pin 5 => unused

### DHT22
* Pin 1 => 3V3
* Pin 2 => Pin D7 (GPIO13)
Expand Down Expand Up @@ -171,7 +164,6 @@ will use by default when selecting the correct sensor model.

* HPM/PMS/SDS011/SPS30 => Pin 1
* BMP180/BMP280 => Pin 3
* PPD42NS => Pin 5
* DHT22/HTU21D/SHT3x => Pin 7
* GPS(Neo-6M) => Pin 9
* BME280 => Pin 11
Expand Down
43 changes: 3 additions & 40 deletions airrohr-firmware/airrohr-firmware.ino
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
************************************************************************
* *
* airRohr firmware *
* Copyright (C) 2016-2018 Code for Stuttgart a.o. *
* Copyright (C) 2016-2020 Code for Stuttgart a.o. *
* Copyright (C) 2019-2020 Dirk Mueller *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
Expand All @@ -27,56 +28,18 @@
* - Nova SDS0111 *
* http://inovafitness.com/en/Laser-PM2-5-Sensor-SDS011-35.html *
* *
* Wiring Instruction: *
* - SDS011 Pin 1 (TX) -> Pin D1 / GPIO5 *
* - SDS011 Pin 2 (RX) -> Pin D2 / GPIO4 *
* - SDS011 Pin 3 (GND) -> GND *
* - SDS011 Pin 4 (2.5m) -> unused *
* - SDS011 Pin 5 (5V) -> VU *
* - SDS011 Pin 6 (1m) -> unused *
* Wiring Instruction see included Readme.md *
* *
************************************************************************
* *
* Alternative *
* - nodemcu-LoLin board *
* - Shinyei PPD42NS *
* http://www.sca-shinyei.com/pdf/PPD42NS.pdf *
* *
* Wiring Instruction: *
* Pin 2 of dust sensor PM2.5 -> Digital 6 (PWM) *
* Pin 3 of dust sensor -> +5V *
* Pin 4 of dust sensor PM1 -> Digital 3 (PMW) *
* *
* - PPD42NS Pin 1 (grey or green) => GND *
* - PPD42NS Pin 2 (green or white)) => Pin D5 /GPIO14 *
* counts particles PM25 *
* - PPD42NS Pin 3 (black or yellow) => Vin *
* - PPD42NS Pin 4 (white or black) => Pin D6 / GPIO12 *
* counts particles PM10 *
* - PPD42NS Pin 5 (red) => unused *
* *
************************************************************************
* Extension: DHT22 (AM2303) *
* http://www.aosong.com/en/products/details.asp?id=117 *
* *
* DHT22 Wiring Instruction *
* (left to right, front is perforated side): *
* - DHT22 Pin 1 (VDD) -> Pin 3V3 (3.3V) *
* - DHT22 Pin 2 (DATA) -> Pin D7 (GPIO13) *
* - DHT22 Pin 3 (NULL) -> unused *
* - DHT22 Pin 4 (GND) -> Pin GND *
* *
************************************************************************
* Extensions connected via I2C: *
* HTU21D (https://www.sparkfun.com/products/13763), *
* BMP180, BMP280, BME280, OLED Display with SSD1306 (128x64 px) *
* *
* Wiring Instruction *
* (see labels on display or sensor board) *
* VCC -> Pin 3V3 *
* GND -> Pin GND *
* SCL -> Pin D4 (GPIO2) *
* SDA -> Pin D3 (GPIO0) *
* *
************************************************************************
* *
Expand Down

0 comments on commit 3d06a3c

Please sign in to comment.