39 lines
1011 B
Org Mode
39 lines
1011 B
Org Mode
* Homeostasis
|
|
|
|
Temperature and humidity sensor that communicates via MQTT. The project is implemented using a Wemos D1 mini ESP32 board with a DHT22 sensor.
|
|
|
|
#+ATTR_HTML: :width 60%
|
|
[[./result.png]]
|
|
|
|
** Pinout of the board
|
|
|
|
#+ATTR_HTML: :width 40%
|
|
[[./pinout.png]]
|
|
** Dependencies
|
|
- [[https://github.com/adafruit/DHT-sensor-library][Adafruit DHT sensor library]]
|
|
- [[https://github.com/adafruit/Adafruit_Sensor][Adafruit Unified Sensor Driver]]
|
|
- [[https://github.com/marvinroger/async-mqtt-client][Async MQTT client]]
|
|
- [[https://github.com/bblanchon/ArduinoJson][ArduinoJSON]]
|
|
** Configuration
|
|
** Deployment
|
|
|
|
The software uses the Arduino framework and the development environment of [[https://platformio.org/][PlatformIO]], which offers better tools than the Arduino IDE.
|
|
|
|
1. Upload the configuration file to the board:
|
|
|
|
#+begin_src shell
|
|
pio run -t uploadfs
|
|
#+end_src
|
|
|
|
2. Compile the project
|
|
|
|
#+begin_src shell
|
|
pio run -t compile
|
|
#+end_src
|
|
|
|
3. Upload firmware
|
|
|
|
#+begin_src shell
|
|
pio run -t upload
|
|
#+end_src
|