KlausMu / esp32-fan-controller

ESP32 fan controller with temperature sensor and MQTT
272 stars 48 forks source link

DS18B20 Temperature probe #2

Closed thomasesr closed 2 years ago

thomasesr commented 3 years ago

It would be nice to also have the DS18B20 (1-wire) temperature sensor since you can have multiple sensors in the same IO pin you would be able to have a temperature sensor for each Fan and an ambient temperature sensor.

KlausMu commented 3 years ago

There are so many temperature sensors out there, it is impossible to support all of them. It should be very easy to adapt the code to support other sensors than the BME280 used by me. Just have a look at "sensorBME280.h" and "sensorBME280.cpp".

lrascao commented 3 years ago

biggest advantage of DS18B20 is that it uses the 1-wire protocol, with 1 GPIO you can read from several of these

KlausMu commented 3 years ago

Ok, I see. The BME280 sensors uses I2C, so with only 2 GPIOs you can also have up to 127 sensors.

thomasesr commented 3 years ago

DS18B20 its way cheaper, specially for a simple fan control and you only need to monitor temperature and not pressure and humidity. Also it has a wider range of temperature to measure. Which is nice.

tricoos commented 3 years ago

The main advantage for me is that the DS18B20 is available with a longer cable and waterproof so you can position it way easier than the non-waterproof BME board.