Why this is a BAD design: my wireless temperature sensor!

  Рет қаралды 12,724

MrDIY

MrDIY

Күн бұрын

Пікірлер: 54
@1_HighDuke
@1_HighDuke 2 жыл бұрын
I've been using BME/BMP280 and SHT30 for my projects which are plug-ins, not battery operated. Maybe they'll fit your needs.
@dans-designs
@dans-designs 2 жыл бұрын
I agree, cannot recommend the BME280 enough!
@chrisduvar508
@chrisduvar508 2 жыл бұрын
For my part, I use HDC1080 for precision: 2% in RH and 0.2% in T°C, low conversion consumption: 1.3µA and conversion speed: 7ms for each sensor. (In standby it consumes 100nA!) And if we add the TPL5110 (System Timer for Power Gating) we can do without the ATtiny13A (150nA) since it consumes 35nA in Operation Mode. It's the perfect combo for a powerful wireless battery application !
@_Chris_
@_Chris_ 2 жыл бұрын
Why do you cut power to the DHT22? If you'd leave it powered it would be ready for the esp8266 to read the data without waiting 2 full seconds. Its power consumption is negligible.
@Roedy_Coedy
@Roedy_Coedy 2 жыл бұрын
BME280 are what I plan on using for my various DIY sensors. NOTE - They are noticeably more expensive! And I haven't looked into their power use as mine will be wired...
@patrickmaartense7772
@patrickmaartense7772 2 жыл бұрын
and can supply pressure as well
@nyeleskettes
@nyeleskettes 2 жыл бұрын
i used bme280 and also tried the htu21. while both are good i would recommend the HTU21 the precision is crazy. i measure 0.040°C variation and lower consumption. the only drawback is the temp conversion takes longer so i initiate a temp conversion and go to sleep, then the next cycle starts reading it (1minute offset in case of 1 minute sampling)
@EdHayes3
@EdHayes3 2 жыл бұрын
I forget if you have mentioned it before... Have you tried the built-in sleep function of the ESP device? I have something turning on every 10 min, reporting a temperature, and going to sleep. So far it works quite well. It is using the DS18B20.
@greg----8672
@greg----8672 2 жыл бұрын
I've been using BME280 sensors in outdoor (harsh humid) condition for over a year. Temperature and pressure readings are stable, however humidity readings are getting less and less accurate over time in high humidity conditions. After carefully reading datasheets from different humidity sensor manufacturers I realized that it's a common problem for humidity sensors. I'm planning to "bake" them and re-calibrate. I'm also using DS18B20 bare and watertight models with good results for air and ground temperature measurements. I'm using ESP8266 deep sleep mode and powering sensors from GPIO pins with minimal additional components to save power. With ESP-NOW and even highest resolution the wake time and power consumption are minimal. Let me know if you are interested in additional details.
@FuzzyScaredyCat
@FuzzyScaredyCat 6 ай бұрын
I must be the outlier in this. I use ESP32 + DHT11 on battery powered (LP103395) sensors taking readings every 10 minutes pushing it via wifi to an MQTT server and I'm getting around 8 months per charge on the battery. I also have an SH31 variant that I'm testing, The variance between the sht31 and DHT11 is 0.5 degrees, which IMO is negligible in a domestic environment. I don't use an AT Tiny or anything to wake the esp32 I just deep sleep it - I might look more into it. I'm getting ~24uA drain when sleeping, I have a resistor divider for battery measurement (no switching) so without that I suspect it'd get to 12uA. I don't power down the dht11 at all it's power drain is tiny and the least of my current usage issues. I've seen a couple of your ESP-NOW videos and might try it out to see how it goes, my wake time is about 3.5 seconds, so I'd like to cut that as much as possible. I'm still using dhcp addressing rather than fixed IP addressing so that might account for some of it but it makes it very flexible so there's a trade off. I guess I'll also be building my own gateway, given the esp32 prices I'm happy to use 2 of them and was quite interested in your design too but I think rather than an SD card I'd use a remote config pulled at boot - or even config stored on the MQTT server.
@albkirk
@albkirk 2 жыл бұрын
Hi there! Thanks for sharing your experience! One way to save precious battery juice is to start and keep the esp8266 Rado OFF, power the DHT ON, wait the 2 seconds, take the temperature and humidity measurement and only then enable the wifi to send the data. If your board don't control the DHT power, you don't even need to wait those 2 seconds. Like many have commented here, the atiny isn't necessary.
@UnCoolDad
@UnCoolDad 2 жыл бұрын
Have a look what sensors the inexpensive Sonoff Zigbee sensors are using. They run for a year off a coin battery. Bit of investigation says they are using the SHT30. Others are using the STHC3 or S8305
@АлексейЛаврентьев-ч2п
@АлексейЛаврентьев-ч2п 2 жыл бұрын
I found that Senserion SHT family is very reliable. I'm using SHT11 in a very high humidity enviroment.
@ChristophLaimer
@ChristophLaimer 2 жыл бұрын
I think it's wrong to assume, that the "resistance" of the coil can't change immediately, if that resistance is a model of the behavior of the current change in the inductor (I'm not talking about the parasitic resistance). It's like pushing a heavy car on the rails: if that car moves at a constant speed, it feels like that car has no weight, and as soon as you want to accelerate it, it gets instantaneously heavy. The more you push, the heavier the car feels ... of course, we all know, the car has a constant mass, and we don't feel the mass, but the force needed for the acceleration.
@uldiskurpnieks8189
@uldiskurpnieks8189 2 жыл бұрын
You can use aht10, it is TWI (two wire interface) temperature and humidity sensor. The ranges if I am not wrong are the same as Dht22, but the AHT10 uses almost no electricity compared to DHT22.
@scienceoftheuniverse9155
@scienceoftheuniverse9155 2 жыл бұрын
Perhaps you might try using AHT20 which is a very accurate temperature humidity sensor or bme680 which is also good at energy saving.
@jensschroder8214
@jensschroder8214 2 жыл бұрын
Why waste a Tiny13 when the ESP12F or ESP12S (ESP07s too) already has an RTC clock? You just need to connect GPIO16=D0 to RESET, then the ESP can reset itself to wake up. The rest is software. Only the variables in RAM are deleted. In the RTC there is a tiny possibility to put a variable continuous there in the RAM. Otherwise just via the EEPROM of the program memory.
@KillerShadow07
@KillerShadow07 Жыл бұрын
Why not have the attiny also control the power to the dht? After 15 min first power up the sensor, wait 2 seconds and then power up the esp. When the espdone signal comes both will be powered down. That should give the dht the time to stabilize and keep the power consumption of the esp minimal.
@MrDIYca
@MrDIYca Жыл бұрын
that is a valid idea
@saikatsadhukha7669
@saikatsadhukha7669 2 жыл бұрын
why don't you try aht10
@collin239
@collin239 2 жыл бұрын
While not a full up climate sensor, I'd like to see how the temperature compares to a sparkfun tmp102, since I use that in one of my projects.
@patrickdk77
@patrickdk77 2 жыл бұрын
i used bme280 for temp and pressure its humidity isnt highly accurate but probably enough. it has a sleep mode. i personally use a sht35 and bme280 to get accurate temp and humidity and pressure for my hvac systems. cause 1% humidity matters a lot for those reading and i also need pressure. also you could just turn the sensor on wait x seconds and power up the esp. normally the sensors are like 1ma usage vs the 70ma for the eap. can also use a 1wire realtime clock module to handle wakups for long periods with low battery usage.
@mauriciobaum
@mauriciobaum 2 жыл бұрын
Amazing project! Congrats! Quick question: Why the AtTiny is needed to wake-up the ESP? Why dont you simply connect GPIO16 to RST and use ESP.deepSleep(900e6) for waking-up in 15 minutes? Any efficiency using AtTiny?
@diegog_io
@diegog_io 2 жыл бұрын
ESP.deepSleep() actually turns off the system clock on the ESP8266. ESP.modemSleep() would prevent the clock from turning off but would probably use more energy than this AtTiny does.
@mauriciobaum
@mauriciobaum 2 жыл бұрын
I don't know if the clock is turned off, but I'm sure the ESP wakes-up after 15min with ESP.deepSleep(time)
@johanholmberg1561
@johanholmberg1561 Жыл бұрын
What is the name of the product that you are using to measure and show the current consumption graphs?
@MrDIYca
@MrDIYca Жыл бұрын
I am using this - kzbin.info/www/bejne/p6upmGiZYqdkl9U
@ziomalZparafii
@ziomalZparafii 2 жыл бұрын
Looks like I was lucky? I use DHT22 with my Wemos D1 (so ESP8266) in my DIY car dongle so it wakes up every ~30 minutes, reads voltage, temperature and humidity, sends via MQTT and goes to sleep. No need to use external uC for waking up and fancy internal counting and no problem with temperature reading. I have 2 DS18B20 outside and all readings seems to be similar, so no garbage data.
@imotelica
@imotelica 2 жыл бұрын
Hi Man, I really enjoy your projects, please keep doing it further and i would like to give you an idea of another project, "people counter" sensor, I did a prototype project out of a wemos d1 mini and two of "E18-D80NK Infrared Obstacle Avoidance", but is very power hungry and I don't have enough time for research ro make it battery powered, The obstical sensors can be replaced with "vl53l1x" ToF sensor, If you are interested of a such idea, I can share more info how i implemented my prototype project.
@denislamarche224
@denislamarche224 10 ай бұрын
Have the atTiny wake up the sensor via mosfet 2 seconds before waking the esp.
@mich29sm
@mich29sm Жыл бұрын
Sensirion SHT11 series of humidity and temperature sensor does it well.
@dkeinys
@dkeinys 2 жыл бұрын
Any updates on this project with better sensors and battery life updates how long do batterys last?
@MrDIYca
@MrDIYca 2 жыл бұрын
It is in the works. DHT22 is lasting around 4-5 months on a 230mAh LiPo battery
@donnerruebe
@donnerruebe 2 жыл бұрын
I would also, like the others, suggest that you use the bme280 with I2C interface, it also gives you the air pressure. There is also a Bosch sensor for air quality, maybe that's a good idea for the next project.
@nnighthawk
@nnighthawk 2 жыл бұрын
The BME680 is also not suitable for battery operated devices at all. It basically needs to be powered all the time, because the cold boot time (until you get stable readings) is somewhere in the minutes range - my experience, no clue what the datasheet says.
@donnerruebe
@donnerruebe 2 жыл бұрын
@@nnighthawk Thanks for that Information, maybe that is a solution for high capacity mobile applications with lipo cells. The sensors from Bosch are known for their low energy consuption, but nevertheless they may draw a significant current in operation.
@nnighthawk
@nnighthawk 2 жыл бұрын
@@donnerruebe I ran an ESP8266 with a BME280 attached to it off a 2.2 Ah 18650 cell for a while. Firmware was absolutely minimal including deep sleep (wake up every 15 minutes) with all the bells and whistles and I still had to recharge it every few days. That was too often for my liking, but I didn't have the tools to find out what's eating the battery. Could be the BME280, could also be the ESP8266 board I used. Anyways, just don't be disappointed if your project doesn't have the battery lifetime you were expecting either. :)
@fraenkli
@fraenkli 2 жыл бұрын
I‘m using a SHT31. Way stabler result than the BMP280 and BME680 which I‘ve tried a long side with an DHT22 (which degraded after 1/2 year of use)
@goldenrebel1st
@goldenrebel1st 2 жыл бұрын
Use the BME280, but use the TMP117 for temperature - it's a pre-calibrated 0.1deg sensor.
@Akya2120
@Akya2120 9 ай бұрын
I just ordered a BME680 to use as a barometer in my Benz project car.
@JohnDoe-ex8gf
@JohnDoe-ex8gf 2 жыл бұрын
Haha, just seeing the thumbnail brings back memories of my own fuckup 2 years ago. And I even took the effort to implement a little "wall" between the esp and the temp sensor. Still the temperature was several degrees higher because of the esp-heat. In the end I put the esp to sleep for 5min between each sensor update to "fix" the problem.
@MrDIYca
@MrDIYca 2 жыл бұрын
I had a similar issue with ESP and PIR - lots of false triggers. Learned to keep the monster asleep :)
@TheoWillemse
@TheoWillemse 2 жыл бұрын
I don't know what sensor is used by Philips in their but that thing is crazy efficient. Even though it is also a motion sensor. Still think that sensor is one of the best out there. To bad they do ask an insane amount of money for it though.
@ZillionPrey
@ZillionPrey 2 жыл бұрын
You should take a look at ESPHome. This requires almost no real programming knowledge. And it's easily implementable and OTA updateable via WiFi.
@mrskeletton8653
@mrskeletton8653 2 жыл бұрын
I use the BME280 sensor and it is very tiny but accurate it works over I2C.
@vaneay
@vaneay 2 жыл бұрын
try the bme280
@morozovmihail90
@morozovmihail90 2 жыл бұрын
Привет. Можешь сделать аналогичный проект для твердотельного реле? Такая круглая плата диаметром 50-60мм отлично умещается в подрозетник и может управлять светом. У готовых решений китайских друзей на плате блок питания 220в-5в, я хочу сделать без него, а питание 5в привести к выключателю дополнительно. Друг, помоги нарисовать такую плату пожалуйста.
@FrankGraffagnino
@FrankGraffagnino 2 жыл бұрын
looking forward to a followup to this video.
@Syrek1989
@Syrek1989 2 жыл бұрын
You can try AHT10
@mayankraichura
@mayankraichura 2 жыл бұрын
HTU21D is also a good and cheap option. However, it will also require I2C.
@jovialcupid9687
@jovialcupid9687 Жыл бұрын
how using attiny as timer is better choice then just use esp32 timers? It must use more energy, because esp in deepsleep still have some timers power on anyway. Don't use this shitty DHT sensors, use SHT30/31. They are really not worth using if u need accurate data. They are only good to control humidity to prevent mold, nothing more
@MohamedAfzal
@MohamedAfzal Жыл бұрын
use SHT35 its very accurate and fast
@JoeRadiation
@JoeRadiation 2 жыл бұрын
BME/BMPXXX are good sensors
@j83telbatalv
@j83telbatalv 2 жыл бұрын
BME680 is a good sensor with many features
ESP8266 as Window Sensor with years of battery life
17:57
MakerMeik
Рет қаралды 180 М.
Forget WiFi! This Wireless Method is WAY Better?
12:14
GreatScott!
Рет қаралды 682 М.
From Small To Giant 0%🍫 VS 100%🍫 #katebrush #shorts #gummy
00:19
1, 2, 3, 4, 5, 6, 7, 8, 9 🙈⚽️
00:46
Celine Dept
Рет қаралды 116 МЛН
快乐总是短暂的!😂 #搞笑夫妻 #爱美食爱生活 #搞笑达人
00:14
朱大帅and依美姐
Рет қаралды 13 МЛН
Meshtastic Native on the Raspberry Pi
5:59
Meshtastic
Рет қаралды 15 М.
Why Did I Pick Wi-Fi over ESPNow?
4:53
MrDIY
Рет қаралды 21 М.
Every Apartment needs this Upgrade! (WhatsApp/Telegram Notifications)
10:05
The new ESP32-S3 module - Extreme low power 1nA! ELPM-S3 by OBJEX
10:00
Salvatore Raccardi
Рет қаралды 31 М.
Best Temperature Sensors for Home Assistant (WATCH before you BUY!)
29:14
Monitor Room Temperature Remotely with Arduino & MQTT
15:23
Gary Explains
Рет қаралды 22 М.
Raspberry Pi Pico W: Wireless Weather Station
17:13
ExplainingComputers
Рет қаралды 296 М.
Contact Sensor 3 - an ESP8266 Door & Window Sensor
5:31
From Small To Giant 0%🍫 VS 100%🍫 #katebrush #shorts #gummy
00:19