2020-01-18 22:06:26 +01:00
|
|
|
# Almost universal controller board for outdoor applications
|
|
|
|
This usermod is using ideas from @mrVanboy and @400killer
|
2020-04-08 14:35:32 +02:00
|
|
|
|
2020-04-15 23:52:10 +02:00
|
|
|
Installation of file: Copy and replace file in wled00 directory.
|
|
|
|
|
|
|
|
For BME280 sensor use usermod_bme280.cpp. Copy to wled00 and rename to usermod.cpp
|
|
|
|
|
2020-01-20 00:54:48 +01:00
|
|
|
## Project repository
|
|
|
|
- [Original repository](https://github.com/srg74/Controller-for-WLED-firmware) - Main controller repository
|
2020-01-18 22:06:26 +01:00
|
|
|
## Features
|
2020-04-15 23:52:10 +02:00
|
|
|
- SSD1306 128x32 and 128x64 I2C OLED display
|
|
|
|
- On screen IP address, SSID and controller status (e.g. ON or OFF, recent effect)
|
2022-12-10 16:12:55 +01:00
|
|
|
- Auto display shutoff for extending display lifetime
|
2020-04-15 23:52:10 +02:00
|
|
|
- Dallas temperature sensor
|
|
|
|
- Reporting temperature to MQTT broker
|
2020-01-18 22:06:26 +01:00
|
|
|
|
|
|
|
## Hardware
|
|
|
|
![Hardware connection](assets/controller.jpg)
|
|
|
|
|
2020-01-18 23:45:11 +01:00
|
|
|
## Functionality checked with
|
2020-04-15 23:52:10 +02:00
|
|
|
- ESP-07S
|
|
|
|
- PlatformIO
|
|
|
|
- SSD1306 128x32 I2C OLED display
|
|
|
|
- DS18B20 (temperature sensor)
|
|
|
|
- BME280 (temperature, humidity and pressure sensor)
|
|
|
|
- KY-022 (infrared receiver)
|
|
|
|
- Push button (N.O. momentary switch)
|
2020-01-18 22:06:26 +01:00
|
|
|
|
2020-04-15 23:52:10 +02:00
|
|
|
For Dallas sensor uncomment `U8g2@~2.27.3`,`DallasTemperature@~3.8.0`,`OneWire@~2.3.5 under` `[common]` section in `platformio.ini`:
|
2020-01-18 22:06:26 +01:00
|
|
|
```ini
|
|
|
|
# platformio.ini
|
|
|
|
...
|
2020-04-08 14:40:44 +02:00
|
|
|
[platformio]
|
|
|
|
...
|
|
|
|
default_envs = esp07
|
2020-04-15 23:52:10 +02:00
|
|
|
; default_envs = d1_mini
|
2020-04-08 14:40:44 +02:00
|
|
|
...
|
2020-01-18 22:06:26 +01:00
|
|
|
[common]
|
|
|
|
...
|
|
|
|
lib_deps_external =
|
|
|
|
...
|
2022-12-10 16:12:55 +01:00
|
|
|
#To use the SSD1306 OLED display, uncomment following
|
2020-01-18 22:06:26 +01:00
|
|
|
U8g2@~2.27.3
|
2022-12-10 16:12:55 +01:00
|
|
|
#For Dallas sensor, uncomment the following 2 lines
|
2020-01-18 22:06:26 +01:00
|
|
|
DallasTemperature@~3.8.0
|
|
|
|
OneWire@~2.3.5
|
|
|
|
...
|
2020-01-18 23:40:52 +01:00
|
|
|
```
|
2020-04-15 23:52:10 +02:00
|
|
|
|
2022-12-10 16:12:55 +01:00
|
|
|
For BME280 sensor, uncomment `U8g2@~2.27.3`,`BME280@~3.0.0 under` `[common]` section in `platformio.ini`:
|
2020-04-15 23:52:10 +02:00
|
|
|
```ini
|
|
|
|
# platformio.ini
|
|
|
|
...
|
|
|
|
[platformio]
|
|
|
|
...
|
|
|
|
default_envs = esp07
|
|
|
|
; default_envs = d1_mini
|
|
|
|
...
|
|
|
|
[common]
|
|
|
|
...
|
|
|
|
lib_deps_external =
|
|
|
|
...
|
2022-12-10 16:12:55 +01:00
|
|
|
#To use the SSD1306 OLED display, uncomment following
|
2020-04-15 23:52:10 +02:00
|
|
|
U8g2@~2.27.3
|
|
|
|
#For BME280 sensor uncomment following
|
|
|
|
BME280@~3.0.0
|
|
|
|
...
|
|
|
|
```
|