Contact Sensor 3 - an ESP8266 Door & Window Sensor

  Переглядів 14,882

MrDIY

MrDIY

2 роки тому

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
@PhG1961
@PhG1961 2 роки тому
Excellent video ! Great work !
@gadjetsvideo
@gadjetsvideo 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!
@1_HighDuke
@1_HighDuke 2 роки тому
Awesome! Thank you for sharing with us.
@MrDIYca
@MrDIYca 2 роки тому
Sure thing!
@jacklewis100
@jacklewis100 2 місяці тому
Wish it had LoRa so that range was bigger/more reliable for a larger home/garden.
@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.
@NiLuBu
@NiLuBu Рік тому
Very exciting project! 👍 Is there a BMS to protect the battery from undervoltage?
@MrDIYca
@MrDIYca Рік тому
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).
@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??...
@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 роки тому
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 роки тому
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 - ukposts.info/have/v-deo/qap3m2uaZHhiwqc.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 роки тому
-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 роки тому
@@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.
@MichaelParment
@MichaelParment 6 місяців тому
Is it not a problem to send 4.2v (fully charged battery) to GPIO (SWITCH_INPUT)?
@MrDIYca
@MrDIYca 6 місяців тому
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.
@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.
ESP8266 as Window Sensor with years of battery life
17:57
MakerMeik
Переглядів 175 тис.
Why this is a BAD design: my wireless temperature sensor!
5:48
Піхотинець - про рутину на фронті
00:46
Суспільне Новини
Переглядів 360 тис.
Why Did I Pick Wi-Fi over ESPNow?
4:53
MrDIY
Переглядів 16 тис.
Try these 16 Brilliant ESP32 projects!!!
11:18
ToP Projects Compilation
Переглядів 512 тис.
The Hub 3 - an ESPNow to Wi-Fi / MQTT gateway
6:45
MrDIY
Переглядів 14 тис.
DIY ESP32 AC Power Meter (with Home Assistant/Automation Integration)
10:58
Door and Window Sensor Automation Ideas -  Using Contact Sensors in Home Automation
12:36
Best power saving mode - Much Deeper Deep Sleep ESP8266
10:30
DIY TECH BROS
Переглядів 94 тис.
451 Which Processor can kill the ESP32?
11:24
Andreas Spiess
Переглядів 332 тис.
Every Apartment needs this Upgrade! (WhatsApp/Telegram Notifications)
10:05
Эволюция телефонов!
0:30
ТРЕНДИ ШОРТС
Переглядів 4,9 млн
Which Phone Unlock Code Will You Choose? 🤔️
0:12
Game9bit
Переглядів 6 млн
Что еще за обходная зарядка?
0:30
Не шарю!
Переглядів 939 тис.
ИГРОВОЙ ПК от DEXP за 37 тысяч рублей из DNS
27:53
Ремонтяш
Переглядів 399 тис.