2021-11-15 19:07:58 +01:00
|
|
|
# Homie Room Sensor
|
|
|
|
located in IKEAs Vindriktning
|
|
|
|
|
|
|
|
after this upgrade it will measure:
|
|
|
|
* air quality
|
2021-11-27 15:22:05 +01:00
|
|
|
* temperature
|
2021-11-15 19:07:58 +01:00
|
|
|
* pressure
|
|
|
|
* altitude
|
|
|
|
|
2021-11-15 19:11:41 +01:00
|
|
|
The system can be powered by USB-C or Micro-USB, attached at ESP8266 board.
|
|
|
|
|
2021-11-15 19:03:27 +01:00
|
|
|
## Filesystem
|
|
|
|
### Configuration
|
|
|
|
Use the config-example.json from the host folder and create here a config.json file.
|
|
|
|
### HowTo upload
|
|
|
|
Start Platform.io
|
|
|
|
Open a new Atom-Terminal and generate the filesystem with the following command :
|
|
|
|
```pio run -t buildfs```
|
|
|
|
Upload this new generated filesystem with:
|
|
|
|
```pio run -t uploadfs```
|
|
|
|
|
|
|
|
### Command pio
|
|
|
|
Can be found at ```~/.platformio/penv/bin/pio```
|
|
|
|
|
|
|
|
# Hardware
|
|
|
|
ESP8266 version ESP12 was used.
|
|
|
|
|
|
|
|
The prototype was based on the Witty board
|
|
|
|
```
|
|
|
|
REST | TXD
|
|
|
|
ADC LDR | RXD
|
|
|
|
CH_PD | GPIO05
|
|
|
|
GPIO16 | BTN GPIO04
|
|
|
|
GPIO14 | GPIO00
|
|
|
|
GPIO12 RGB-G | GPIO02
|
|
|
|
GPIO13 RGB-B | RGB-R GPIO15
|
|
|
|
VCC | GND
|
|
|
|
USB
|
|
|
|
```
|
|
|
|
|
|
|
|
The following pins are used:
|
2021-12-04 23:09:07 +01:00
|
|
|
* GPIO4 PM1006 particle sensor PIN REST on Vindriktning board
|
2021-12-06 20:18:23 +01:00
|
|
|
* GPIO2 WS2812 stripe out of three LEDs, replacing the original LEDs at front
|
2021-11-15 19:11:41 +01:00
|
|
|
* GPIO15 Red LED (optional)
|
2021-12-04 23:09:07 +01:00
|
|
|
* GPIO12 Green LED (optional) Used as 3.3V Supply for the I2C sensor
|
2021-11-15 19:11:41 +01:00
|
|
|
* GPIO13 Blue LED (optional)
|
2021-11-15 19:33:00 +01:00
|
|
|
* GPIO13 VCC of I2C (3.3 V)
|
2021-11-15 19:07:58 +01:00
|
|
|
* GPIO14 I2C clock
|
|
|
|
* GPIO5 I2C data pin
|
2021-11-15 19:03:27 +01:00
|
|
|
|
2021-11-15 19:11:41 +01:00
|
|
|
# Bill of materials
|
|
|
|
* IKEA Vindriktning
|
|
|
|
* ESP8266 (e.g. Witty board)
|
|
|
|
* BMP280 sensor
|
|
|
|
* some wire
|
|
|
|
|
2021-11-15 19:03:27 +01:00
|
|
|
# Sources
|
2021-12-04 18:46:17 +01:00
|
|
|
For the Witty board
|
2021-11-27 15:22:05 +01:00
|
|
|
* [https://github.com/amkuipers/witty Witty pinout]
|
2021-12-04 18:46:17 +01:00
|
|
|
* [https://arduino.ua/products_pictures/large_AOC361-5.jpg Schematics]
|