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.

106 lines
2.9 KiB

7 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:
* ~50mA @ 5V
* (31mA idle + fan + wifi)
CAD files (OpenSCAD) and source code included.
7 years ago
7 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) |
7 years ago
## Installation Instructions
7 years ago
1. git clone https://dev.xd0.de/hendrik/esp-weatherstation.git
2. cd esp-weatherstation
7 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
7 years ago
RSV (5)D1 ----------------------- TXD
RSV (4)D2 ----------------------- RXD
RSV (0)D3 -- BMP_SDA .---- GND
RSV (2)D4 -- BMP_SCL | ...
RSV 3V3 -- BMP_VCC | .--- 5V
RSV .-GND -- BMP_GND | | ...
GND =C= D5 | | ...
3V3 '- D6 ------------. | |
7 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
-
7 years ago
- 5V -> 5V
-
-
7 years ago
DHT22:
- 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:
BAT+ --+--------------.
\R\ |
\1\ '
>---+--------------------------------- A0
/R/ | . ________________
/2/ === C1 +---| buck converter |---- 5V
BAT- --'------+-----------|________________|---- GND
Example values: R1=1MΩ, R2=100kΩ, C1=some ceramic capacitor (optional)
measures up to ~30V
7 years ago
## ToDo
7 years ago
* https://tinker.yeoman.com.au/2016/05/29/running-nodemcu-on-a-battery-esp8266-low-power-consumption-revisited/
7 years ago
* deep_sleep (connect D0 to RST)
7 years ago
* https://hackaday.com/2014/10/25/use-a-cheap-pin-diode-as-a-geiger-counter/ (opengeiger.de/elektronik.html)
* Solar power
7 years ago
## License
### Code
WTFPL: http://www.wtfpl.net/about/
7 years ago
### Sensor Data
Public Domain: https://opendatacommons.org/licenses/pddl/summary/