A weather station
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

107 lines
3.1 KiB

6 years ago
# ESP8266 WeatherStation
Compact outdoor weather station.
Features:
* Temperature
* Humidity
* Pressure
* dust particles PM10 (10µm) and PM2.5 (ultrafine, 2.5µm)
* radioactivity
* WiFi
* needs 5V power supply
* opensensemap.org API
Power consumption:
6 years ago
* ~40mA @ 5V
* (31mA idle + fan + wifi)
CAD files (OpenSCAD) and source code included.
6 years ago
6 years ago
![Weatherstation](cad/img/weatherstation.jpg)
| geiger counter and DHT22 | particle sensor and ESP8266 |
|---------------------------------------|-----------------------------------------|
| ![Weatherstation](cad/img/geiger.jpg) | ![Weatherstation](cad/img/particle.jpg) |
6 years ago
## Installation Instructions
6 years ago
1. git clone https://dev.xd0.de/hendrik/esp-weatherstation.git
2. cd esp-weatherstation
6 years ago
3. virtualenv -p python --no-site-packages .
4. source bin/activate
5. pip install -U platformio
6. platformio run --target upload && platformio device monitor -b 115200
## Wiring
NodeMCU v0.9
SDS011
A0 D0
6 years ago
RSV (5)D1 ----------------------- TXD
RSV (4)D2 ----------------------- RXD
2 years ago
RSV (0)D3 -- BME_SDA .---- GND
RSV (2)D4 -- BME_SCL | ...
RSV 3V3 -- BME_VCC | .--- 5V
RSV .-GND -- BME_GND | | ...
GND =C= D5 | | ...
3V3 '- D6 ------------. | |
6 years ago
GND D7 -- DHT_DATA \ +-| --------- GND
3V3 D8 \ | +---------- 5V
EN RX '- | ----------- VIN
RST TX | |
GND -. GND - DHT_GND | | GeigerCnt
.-- 5V | 3V3 - DHT_VDD | |
| '------------------------' |
'-----------------------------------'
SDS011:
- TXD -> D1
- RXD -> D2
- GND -> GND
-
6 years ago
- 5V -> 5V
-
-
2 years ago
DHT22: (WARNING: This sensor has proven to be unreliable outdoors!)
6 years ago
- VDD -> 3V3
- DATA -> D7
- ->
- GND -> GND
RadiationD-v1.1(CAJOE):
- GND -> GND
- 5V -> 5V
- VIN -> D6
12V power mod with step down converter and voltage divider for voltage measurement:
6 years ago
BAT+ --[FUSE]--+------------- Vin+| BUCK CONVERTER |Vout+ -- 5V
\R\ | |
\1\
>---+------------------------------------- A0
/R/ |
/2/ === C1 | |
BAT- ----------'------+------ Vin-| BUCK CONVERTER |Vout- -- GND
Example values: R1=1MΩ, R2=100kΩ, C1=some ceramic capacitor (optional)
measures up to ~30V
6 years ago
## ToDo
6 years ago
* https://tinker.yeoman.com.au/2016/05/29/running-nodemcu-on-a-battery-esp8266-low-power-consumption-revisited/
6 years ago
* deep_sleep (connect D0 to RST)
6 years ago
* https://hackaday.com/2014/10/25/use-a-cheap-pin-diode-as-a-geiger-counter/ (opengeiger.de/elektronik.html)
* Solar power
* https://odlinfo.bfs.de/DE/aktuelles/messstelle/051130004.html
6 years ago
6 years ago
## License
### Code
WTFPL: http://www.wtfpl.net/about/
6 years ago
### Sensor Data
Public Domain: https://opendatacommons.org/licenses/pddl/summary/