xoseperez / sonoffsc

Itead Studio SonoffSC custom firmware with MQTT and Domoticz support
GNU General Public License v3.0
104 stars 35 forks source link

Replacing the DHT with a BME680 #38

Closed rbm78bln closed 3 years ago

rbm78bln commented 5 years ago

In your blog-posting about the Sonoff SC you were mentioning to better replace the DHT11 by a DHT22, @xoseperez

Would it be possible to "replace" the DHT11 also by a BME680 by using the ISP connector of the atmega328?

This would massively empower the Sonoff SC for just ten bugs and with almost no effort.

xoseperez commented 5 years ago

Hi

It is possible but you will have to do some changes in the wiring and the firmware, of course. The DHT11/22 use one digital IO but the BME680 is a I2C device and it needs two digital IO. The Atmega328 has a single hardware I2C and I think it's not available, so you will have to use a softwareI2C library to use two random IO to connect the BME. Then you will probably have to modify the BME680 library to use that I2C library instead of the default Wire lkbrary.

So, yes it's possible but it's somewhat involved...

On Fri, 2 Nov 2018, 09:59 Ralf M, notifications@github.com wrote:

In you blog-posting about the Sonoff SC you were mentioning to better replace the DHT11 by a DHT22, @xoseperez https://github.com/xoseperez

Would it be possible to "replace" the DHT11 also by a BME680 https://www.aliexpress.com/item/BME680-temperature-and-humidity-temperature-pressure-high-altitude-sensor/32909028283.html by using the ISP connector of the atmega328?

This would massively empower the Sonoff SC for just ten bugs and with almost no effort.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/xoseperez/sonoffsc/issues/38, or mute the thread https://github.com/notifications/unsubscribe-auth/AArHt4R3EcqXYoiV60xmD6CGdSZWu3qBks5urAl6gaJpZM4YLRHJ .

--

Xose Pérez @xoseperez http://linkedin.com/in/xoseperez http://tinkerman.cat

rbm78bln commented 5 years ago

Oh yes, that's right! I was especially thinking about the "air quality rating" feature of that sensor :-D