Commit Graph

27 Commits

Author SHA1 Message Date
Theo Arends 94992f0597 Revert changes DHT11 timing 2021-06-27 14:20:00 +02:00
Theo Arends 83518a9c38 Update timing DHT11, AM2301 (DHT21, DHT22, AM2302, AM2321), SI7021 (#12488) 2021-06-27 13:25:26 +02:00
amunra68 5c329713fe
Update xsns_06_dht.ino
the DHT22/AM2301 did not work on Sonoff S20 and NodeMCU (possibly microsecond delay not exact enough??) and gave only "null" values for temperature and humidity.
So I changed the way to determine if a bit is "0" or "1" by measuring the time in microseconds until state changes. If time > 50 usec (in data sheet it should be 80 usec), it is recognized as "1", otherwise (a "0" should be 26-28 usec by specs from data sheet) it is treated as "0". 
Also, the old version omitted the first bit (by waiting the sequence 0 - 1 - 0, I have changed it to the only first "0" 
This change has been tested on Sonoff S20 (on GPIO 3) and on NodeMCU (GPIO 2) on Tasmota version 9.3.1.4 (on version 9.5. it should make no difference) with a DHT22 with included pull-up resistor
2021-06-27 08:45:57 +02:00
AlfaBravoX 6182df2726
Update xsns_06_dht.ino
as per https://github.com/arendst/Tasmota/issues/12180 adjusting slightly timers
2021-06-01 13:35:17 +02:00
Theo Arends e6bff6bf9e Standardize on unconnected pin being -1 2021-02-14 13:06:19 +01:00
Theo Arends 7cb17713d7 Refactor DHT negative temps 2021-02-14 12:03:49 +01:00
Theo Arends ac054ea666 Refactor AddLog usage 2021-01-23 17:10:06 +01:00
Theo Arends dcbb3f1e0e Happy New Year 2021-01-01 13:44:04 +01:00
Theo Arends bafcee4b05 Effort to get rid of PrepLog_P
Effort to get rid of PrepLog_P now syslog and mqttlog are async
2020-12-18 16:49:11 +01:00
Roberto Bonacina 5c7680fb58 Fix a typo in comments
Replaced "Humidy" with "Humidity" in the initial description of some
temperature and humidity sensor files.
2020-11-29 21:08:08 +01:00
Theo Arends fa7fdbd51a Consolidate `AddLog_P`
Consolidate `AddLog_P` into `AddLog_P2` and rename to `AddLog_P`
2020-11-06 17:09:13 +01:00
Theo Arends 280f0a9de7 Use global struct 2020-10-29 13:37:09 +01:00
Theo Arends b93b719108 Use global struct 2020-10-28 17:32:07 +01:00
Theo Arends f4adce5fb1 Add ESP32 DHT support
Add ESP32 DHT support (#8503)
2020-06-24 15:36:54 +02:00
Theo Arends 9d70a194d9 Change delay(2) to delayMicroseconds(2000)
Change delay(2) to delayMicroseconds(2000) and see if it helps (#7468)
2020-06-22 11:14:12 +02:00
Theo Arends 58435fb0c9 Revert "Change delay(2) to delayMicroseconds(2000)"
This reverts commit 252dddef7c.
2020-06-22 11:13:31 +02:00
Theo Arends 252dddef7c Change delay(2) to delayMicroseconds(2000)
Change delay(2) to delayMicroseconds(2000) and see if it helps (#7568)
2020-06-22 11:12:46 +02:00
Theo Arends c939077514 Change pin handling part 3 2020-04-27 12:54:07 +02:00
Theo Arends 0a0afe3615 Add Dew point to more sensors
Add Dew point to more sensors and refactor JSON Temperature and Humidity message
2020-03-17 16:29:59 +01:00
Theo Arends 566bc47af4 Add Dewpoint to Temp/Hum sensors Prt. 1
- Add Dewpoint to Temp/Hum sensors Prt. 1
- Update AHT10 driver (#7930)
2020-03-16 16:52:22 +01:00
Theo Arends bf86700e90 Consolidate DHT sensor driver 2020-03-08 12:28:14 +01:00
Theo Arends 7cc783a532 Add another new DHT driver based on ESPEasy
Add another new DHT driver based on ESPEasy. The old driver can still be used using define USE_DHT_OLD. The previous new driver can be used with define USE_DHT_V2 (#7717)
2020-02-13 17:02:07 +01:00
Theo Arends 7d0577eb31 Add new DHT driver
Add new DHT driver. The old driver can still be used using define USE_DHT_OLD (#7468)
2020-02-10 16:29:17 +01:00
Theo Arends 12f603cc59 Add support for sensor DHT family using Shelly Add-On
- Fix Hass sensor discovery part 1/4 by Federico Leoni (#7582, #7548)
- Add support for sensor DHT family on Shelly 1 and Shelly 1PM using Shelly Add-On adapter (#7469)
2020-02-06 12:42:31 +01:00
Theo Arends 8aa9109656 Happy New Year
Happy New Year
2019-12-31 14:23:34 +01:00
localhost61 b2ac6c8ed7 Allow 4 DHT sensors 2019-12-10 00:51:08 +01:00
Theo Arends 0e07397ff7 Change Sonoff-Tasmota to Tasmota 2019-10-27 12:04:08 +01:00