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

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 มี.ค. 2022
  • An overview video of my wireless climate sensor (temperature and humidity).
    Get 10 PCBs for $5 USD at www.pcbway.com
    Buy the Climate Sensor - store.mrdiy.ca/p/wireless-cli...
    Patreon - / mrdiyca
    Shopping for DS18B20+?
    =====================
    ■ Amazon.com - amzn.to/38aMlTF
    ■ AliExpress - s.click.aliexpress.com/e/_AWsAGd
    ■ Amazon.ca - amzn.to/3iJJ7IF
    Source Code - gitlab.com/MrDIYca/ultra-low-...
    Ultra Low Power Door Sensor - • Contact Sensor 3 - an ...
    3D Enclosure (STL) - www.printables.com/model/1650...
    I used an ESP8266, Attiny13a, DHT22 to send climate readings to my ESPNow gateway (MQTT over Wi-Fi).
    Music by ComaStudio from Pixabay. The links above usually are affiliate links that support the channel (no additional cost for you).
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 54

  • @1_HighDuke
    @1_HighDuke 2 ปีที่แล้ว +16

    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 ปีที่แล้ว +1

      I agree, cannot recommend the BME280 enough!

  • @chrisduvar508
    @chrisduvar508 2 ปีที่แล้ว +4

    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 !

  • @Roedy_Coedy
    @Roedy_Coedy 2 ปีที่แล้ว +8

    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 ปีที่แล้ว +1

      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 ปีที่แล้ว +4

    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.

  • @_Chris_
    @_Chris_ 2 ปีที่แล้ว +3

    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.

  • @5mxg
    @5mxg 2 ปีที่แล้ว +2

    You can measure t/rh using attiny and only use esp to transmit it

  • @user-hx3ln9tj7i
    @user-hx3ln9tj7i 2 ปีที่แล้ว +4

    I found that Senserion SHT family is very reliable. I'm using SHT11 in a very high humidity enviroment.

  • @greg----8672
    @greg----8672 2 ปีที่แล้ว +1

    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.

  • @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.

  • @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.

  • @scienceoftheuniverse9155
    @scienceoftheuniverse9155 2 ปีที่แล้ว +2

    Perhaps you might try using AHT20 which is a very accurate temperature humidity sensor or bme680 which is also good at energy saving.

  • @UnCoolDad
    @UnCoolDad 2 ปีที่แล้ว +1

    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

  • @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.

  • @FrankGraffagnino
    @FrankGraffagnino 2 ปีที่แล้ว

    looking forward to a followup to this video.

  • @saikatsadhukha7669
    @saikatsadhukha7669 2 ปีที่แล้ว +2

    why don't you try aht10

  • @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.

  • @imotelica
    @imotelica 2 ปีที่แล้ว +1

    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.

  • @johanholmberg1561
    @johanholmberg1561 ปีที่แล้ว

    What is the name of the product that you are using to measure and show the current consumption graphs?

    • @MrDIYca
      @MrDIYca  ปีที่แล้ว +1

      I am using this - th-cam.com/video/qzFg5c-B1as/w-d-xo.html

  • @goldenrebel1st
    @goldenrebel1st 2 ปีที่แล้ว

    Use the BME280, but use the TMP117 for temperature - it's a pre-calibrated 0.1deg sensor.

  • @donnerruebe
    @donnerruebe 2 ปีที่แล้ว +1

    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 ปีที่แล้ว +1

      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. :)

  • @Akya2120
    @Akya2120 2 หลายเดือนก่อน +1

    I just ordered a BME680 to use as a barometer in my Benz project car.

  • @dkeinys
    @dkeinys ปีที่แล้ว

    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

  • @jensschroder8214
    @jensschroder8214 2 ปีที่แล้ว +1

    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.

  • @JohnDoe-ex8gf
    @JohnDoe-ex8gf ปีที่แล้ว

    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  ปีที่แล้ว

      I had a similar issue with ESP and PIR - lots of false triggers. Learned to keep the monster asleep :)

  • @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

  • @mich29sm
    @mich29sm 9 หลายเดือนก่อน +1

    Sensirion SHT11 series of humidity and temperature sensor does it well.

  • @vaneay
    @vaneay 2 ปีที่แล้ว +1

    try the bme280

  • @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.

  • @Syrek1989
    @Syrek1989 2 ปีที่แล้ว

    You can try AHT10

  • @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)

  • @denislamarche224
    @denislamarche224 3 หลายเดือนก่อน

    Have the atTiny wake up the sensor via mosfet 2 seconds before waking the esp.

  • @mrskeletton8653
    @mrskeletton8653 ปีที่แล้ว

    I use the BME280 sensor and it is very tiny but accurate it works over I2C.

  • @mauriciobaum
    @mauriciobaum 2 ปีที่แล้ว +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)

  • @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.

  • @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.

  • @morozovmihail90
    @morozovmihail90 2 ปีที่แล้ว

    Привет. Можешь сделать аналогичный проект для твердотельного реле? Такая круглая плата диаметром 50-60мм отлично умещается в подрозетник и может управлять светом. У готовых решений китайских друзей на плате блок питания 220в-5в, я хочу сделать без него, а питание 5в привести к выключателю дополнительно. Друг, помоги нарисовать такую плату пожалуйста.

  • @mayankraichura
    @mayankraichura 2 ปีที่แล้ว

    HTU21D is also a good and cheap option. However, it will also require I2C.

  • @jovialcupid9687
    @jovialcupid9687 8 หลายเดือนก่อน

    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

  • @JoeRadiation
    @JoeRadiation 2 ปีที่แล้ว +1

    BME/BMPXXX are good sensors

  • @MohamedAfzal
    @MohamedAfzal ปีที่แล้ว

    use SHT35 its very accurate and fast

  • @johnny83telbatalv
    @johnny83telbatalv 2 ปีที่แล้ว

    BME680 is a good sensor with many features