Contact Sensor 3 - an ESP8266 Door & Window Sensor

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ก.พ. 2022
  • An overview video of version 3 of my contact sensor.
    Get 10 PCBs for $5 USD at www.pcbway.com
    Buy the Contact Sensor - store.mrdiy.ca/p/wireless-con...
    Source code and schematics - gitlab.com/MrDIYca/ultra-low-...
    This door and window sensor is built using an ESP8266, ATtiny13a, LDO and a Lithium battery charge controller.
    Shopping for the battery charger IC?
    ============================
    ■ Amazon - geni.us/p6E6
    ■ AliExpress - s.click.aliexpress.com/e/_AmZsJT
    My Contact Sensor System Playlist - • My Ultra Low Power Sen...
    The links above are usually affiliate links that support the channel (no additional cost for you).
  • วิทยาศาสตร์และเทคโนโลยี

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

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

    A tip that I use for programming is to edit the footprint of the connector to slightly offset the pads a small amount alternating left and right so that the programming pins are a friction fit and have a good contact.

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

      I will give it a try - thanks for the tip!

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

    Excellent video ! Great work !

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

    Awesome! Thank you for sharing with us.

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

      Sure thing!

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

    i notice it have to be placed outside of the door, possible to place inside of the opening so its more secure.

  • @jacklewis100
    @jacklewis100 2 หลายเดือนก่อน

    Wish it had LoRa so that range was bigger/more reliable for a larger home/garden.

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

    Hiii... Your Project is Really good and I am trying to replicate the same... I Have tried the version 3 code for attiny and while deep sleep I am getting a 350 micro amps.. I even tried version 2S of attiny code which gives me a deep sleep current of 26 micro amps... The deep sleep current i mentioned above are attiny alone... May I know what board manager you are using for attiny( I am using Micro dude)... And how much current you get attiny alone while deep sleep??...

  • @NiLuBu
    @NiLuBu 11 หลายเดือนก่อน

    Very exciting project! 👍 Is there a BMS to protect the battery from undervoltage?

    • @MrDIYca
      @MrDIYca  11 หลายเดือนก่อน +1

      I use protected lipo batteries with BMS built-in for my sensors. The charge controller also has a UVLO. But in theory, if you leave a low battery connected, the ATtiny might drain is ever further over a very long period of time (years).

  • @user-cs7ko1lv9c
    @user-cs7ko1lv9c ปีที่แล้ว

    Thanks for sharing ,can I remove the Attiny and directly switch_input to the EN pin of the ldo, so that it is more energy efficient without the Attiny
    if Switch_input is a self-reset button ? My project is to use the self-reset button to remotely control the light through espnow

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

    Cool gadget. Does it come with instructions to pair it with home automation?
    I saw a large battery pack, a coin cell, and a mention of a battery charger circuit. So what is it typical power source?

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

      Thanks. It depends on the home automation system. For Home Assistant, you can use this www.home-assistant.io/integrations/sensor.mqtt. For NodeRed, you can use the MQTT node to trigger events.
      For version 3, any lipo battery will do, as long as it has a PH2.0 plug ( and the right wire polarity)

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

    very nice. would this also work with esphome? I already have home assistant and many esphome devices. so I naturally don't need a hub.

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

      I am working on a new video to show how to use your own code bypassing the hub. If you can code it, I don't see why it wouldn't work.

  • @koloksimonasen872
    @koloksimonasen872 5 หลายเดือนก่อน

    hello my friend! what software did you use to calculate your battery life over time and graph it like that? :)

    • @MrDIYca
      @MrDIYca  5 หลายเดือนก่อน

      I reviewed it here - th-cam.com/video/qzFg5c-B1as/w-d-xo.html

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

    Would you have any idea at what temperatures these are rated at? I have a shop outside and wanted to put some sensors on the doors. Last month it got down to -35F (-37C) without wind. THey would be out of the wind.
    The hub would be in a heated area so not worried about that.
    Thanks!

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

      -37C is a bit extreme, we only see it once or twice a year here, even my car struggles to start. But it is good question. I will have to go back and check the datasheet for all the components. For now, I will leave one in the freezer and see what happens.

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

      @@MrDIYca it's not common but it does happen every year. Last year we hit that mark for almost a month, it was pretty crazy

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

      @@WillYork could the contact sensor be mounted inside, say at the top of the door. maybe with a small part sticking out to trigger the switch

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

      @@blkhackr so it's a heated office inside an unheated steel building. Ideally I want a sensor on each door. I have shop equipment in the unheated part and electronics in the heated part so I'd want to monitor both.

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

    had an idea , how do I reach you to discuss it for a better motion sensorsystem?

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

      here is good.

  • @MichaelParment
    @MichaelParment 6 หลายเดือนก่อน

    Is it not a problem to send 4.2v (fully charged battery) to GPIO (SWITCH_INPUT)?

    • @MrDIYca
      @MrDIYca  6 หลายเดือนก่อน +1

      In theory, it may, but based on my research and practical experience of using it on multiple doors/windows for years, it has proven to be a non-issue. Additionally, only a negligible amount of current leaks (high impedance) into the pin, and this occurs for a very brief duration.