Contact Sensor 3 - an ESP8266 Door & Window Sensor
HTML-код
- Опубликовано: 13 сен 2024
- 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...
Source code and schematics - gitlab.com/MrD...
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.aliexp...
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).
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.
I will give it a try - thanks for the tip!
Excellent video ! Great work !
Wish it had LoRa so that range was bigger/more reliable for a larger home/garden.
i notice it have to be placed outside of the door, possible to place inside of the opening so its more secure.
Awesome! Thank you for sharing with us.
Sure thing!
Very exciting project! 👍 Is there a BMS to protect the battery from undervoltage?
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).
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??...
hello my friend! what software did you use to calculate your battery life over time and graph it like that? :)
I reviewed it here - ruclips.net/video/qzFg5c-B1as/видео.html
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?
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)
Is it not a problem to send 4.2v (fully charged battery) to GPIO (SWITCH_INPUT)?
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.
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.
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.
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
had an idea , how do I reach you to discuss it for a better motion sensorsystem?
here is good.
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!
-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.
@@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
@@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
@@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.