The purpose of this project is to provide a cheap solution to provide the measurement values of Bosch's BME680 sensor via 1-Wire.
The main purpose is to integrate the BME680 sensor into Loxone via 1-Wire. But there shouldn't be any problems to use the project with other systems out of the box, as 1-Wire is a standardized, commonly used protocol.
The project was developed for a WEMOS/Lolin D1 mini. But it should work on other ESP8266 microcontrollers too.
The red thing up there is a level shifter. This is needed because Wemos/Lolin D1 mini works with 1-Wire at 3.3V but Loxone expects 1-Wire at 5V. So the level shifter converts the signals bidirectional. In our setup we used this article, but feel free to use a similar article from another store/manufacturer.
- https://www.instructables.com/id/Wemos-ESP8266-Getting-Started-Guide-Wemos-101/ Additionally you have to add some linker arguments in the config files of the Arduino Studio linker. The whole process of that you can find in the BME680 manual. You can download that from the Bosch BSEC library website. Within the library there is a PDF under
integration_guide/BST-BME680-Integration-Guide-AN008-47.pdf
from page 15 and the following pages.
During development we used those two tools. Maybe there is way to flash the project directly with Arduino Studio.
Refer to the following guidlines how to use those products:
One of the current major problems is that every value is presented as a separate DS18B20 sensor. That means that every value is presented a separate 1-Wire sensor with a dedicated address. If you want to use more than one sensor on the 1-Wire bus you have to change all four addresses on the second and every following microcontroller before compiling the project. This is because every 1-Wire address has to be uniqe per bus.
-
Store the calibration data of the sensor on the integrated flash storage of the microcontroller. Refer to issue #2 for more info on that progress.
-
Publish BME680's data as DS2438. This means that all sensor values get published as a single 1-Wire sensor. Instead of four different sensors with four different addresses. Refer to issue #1 for more info on that progress.
Feel free to contribute to the project!