Nodemcu esp8266 door sensor

nodemcu esp8266 door sensor

From connected cars to connected wearables to home security, the Internet of Things is rapidly marking its presence in every field. Now we have IoT enabled home automation and security devices that can be controlled from anywhere in the world using the Internet of Things. There are many kinds of Wi-Fi door lock available in the market which makes your home more secure and saves time in finding the keys. Here we are also building a similar Wi-Fi door lock which can be controlled from the Smartphone.

Here NodeMCU will act as the main controller and connect the user to the door lock system using the Internet. In conventional door lock, there is key to pull or push the latch, and we have to operate it manually, but in solenoid lock, the latch can be operated automatically by applying a voltage.

Solenoid lock has a low-voltage solenoid that pulls the latch back into the door when an interrupt Pushbutton, Relay, etc. The latch will retain its position until the interrupt is enabled. The operating voltage for the solenoid lock is 12V.

Door Status Monitor using the ESP8266

You can also use 9V, but it results in slower operation. Solenoid door locks are mainly used in remote areas to automate operations without involving any human effort. The circuit diagram for the Wi-Fi door lock is given below. I have soldered all the components on Perfboard as shown in the below pictures:. This is how the complete setup of wifi door lock will look after installing on the door:. Using Adafruit IO, you can upload, display, and monitor your data over the internet, and make your project IoT enabled.

For test and try, with some limitation, Adafruit IO is free to use. Copy this key and username, it will be needed later in the code. Now, after this, you need to create a feed. After this, a new window will open to enter the Name and Description of the feed. The writing description is optional. For that, first, create a dashboard and then add your feed in this dashboard.

As the dashboard is created, now, we will add our feeds to the dashboard. Here we will add a toggle button blocks to turn open and close the Wi-Fi door lock.You can make apps work together.

A new page loads when you finish connecting your Gmail. You should see something similar to the preceding Figure. You can use the preceding links or go directly to MakerAdvisor. The schematics to upload code to your ESP are very straight forward. Copy the sketch below to your Arduino IDE.

Thanks for reading.

Simple Door Sensor

If you like this post probably you might like my next ones, so please support me by subscribing my blog. Which browser are you using? Can you try again? Kweeelll project. Can I convert to python language?

What about Energy consumption? I guess that code inside loop will drain the battery soon. But the sleep function might be a great enhancement to this project.

nodemcu esp8266 door sensor

This is great, Rui. Does this module have a workaround where it turns the entire setup on and off based on PC messages? Hi Assad, Thank you for your continuous support! Necessary to change the code? You need to use an Analog pin with your photoresistor to determine the value. My problem is Ive tried both and neither work.It will hard-store previous status of door and compare with current status after every reboot.

nodemcu esp8266 door sensor

Is there any way for example to increase the sleep time and make the door sensor to wake up the esp? Post a Comment. September 16, It is possible to change in the Code.

If there is change, it will send a notification to your mobile phone and stores data and time with door status on google drive. This feature helps us in. Basics you need to know. ESP 12E. Door sensor reed switch based.

Corvette zr1

Once you "Sign-up", you see…. In the top raw, select the "My applets" or create one. Click on "this" to make trigger activity. In our case we want to use a NodeMCU with door sensor to create a trigger. Do remember this name you will need this in future for the testing.

It has multiple action services, which will allow you to connect through possible services with simple selection. You need to download an app for notification service. In this Notification dialog, please add the message you want to see. Also please add ingredient call "value1", "value2". Compete with the action by a click "create action".

Hardware design. Basic of Deepsleep.

nodemcu esp8266 door sensor

Deep sleep mode of chip stop un-necessary processes when it not required. Like when we mention delay command in the code it mean controller is awake and doing process to execute it but how can we do without consuming more power. ESP chip provides 3 configurable sleep modes. We can choose and configure the sleep mode as required. The 3 sleep modes are:.

Subscribe to RSS

In this mode, the chip will turn off Wi-Fi connectivity and data connection; only the RTC module is still working, responsible for periodic wake-ups. You need to connect D0 pin Ping number 16 to reset, so whenever you counter reach out deepsleep time, it will enable a reset. Meaning it will reset a chip and code will work in normal mode.Add the following snippet to your HTML:.

Read up about this project on. With the door security system that we made, automatically the door can be monitored from anywhere by using internet data as its network connection. With the Internet of Things IoT system can monitoring the door ina realtime. If a change is detected in a couple of door sensors.

At present the project is only in the testing phase but it should give you an understanding on connecting it up ready for installation. In addition to monitoring, this IoT can also turn off and turn on the lights automatically. Reed switch using GPIO 5 pin on esp Reed Switch sensor works in a very simple way, if thesurface of the sensor exposed to the magnetic field then the two contacts thinplate contained inside the sensor will be attracted by the magnetic field, sothe contact will be connected.

The magnetic field which is moved the reedswitch derived from the piston contained inside the cylinder drive, which movesup and down, that movement is detected by the reed switch. Log in Sign up. Simple Door Sensor. Team Iot Squad: cindytania.

Harley ignition switch wiring diagram

Published January 24, Beginner Showcase no instructions 30 minutes 2, Things used in this project. Buy from Newark Buy from SparkFun. Background project With the door security system that we made, automatically the door can be monitored from anywhere by using internet data as its network connection.

Introducing OpenGarage: an Open-Source WiFi Garage Door Opener using ESP8266

Door sensor. Door sensor Arduino. Follow Contact Contact. Related channels and tags door home automation internet of things sensor. Arduino IDE.Automate your household appliances with this simple door sensor tutorial. Sensors with Push notification is always fun. The reed switch is an electrical switch operated by an applied magnetic field. It consists of a pair of contacts on ferrous metal reeds in a hermetically sealed glass envelope as represented in the image below.

Below is an of NodeMCU board.

Internet Of Things “DIY” Zone: Door Sensor

Hence when the magnet part of door sensor comes closer to the reed switch, D1 i. SendDoorCloseNotification. In this project, we are using instapush to send notification to mobile phone Andriod Smartphone.

Xtream codes api free 2019

These two files request to the instapush server. As a beginner, it would be better to use Instapush if you have no idea about android programming or GCM. This would be your best free application to test push notification. You can download the both Php file and the library for Instapush. Please enter your comment! Please enter your name here. You have entered an incorrect email address! Asia-Pacific region is anticipated to emerge as the fastest-growing region during the forecast period Based on components, the software segment accounted for the China, Japan, and India will account for two-thirds of the overall revenue by InIndia had announced a national program on Infineon will completely acquire Cypress Semiconductor Corporation in five days Infineon and Cypress had signed definitive agreement for the acquisition in July Microsoft is working with semiconductor companies to implement best practices for connected devices The company has deepened its existing collaborations and announced new Renesas and Microsoft had announced collaboration during October The duo is offering device-to-cloud experience for IoT developers Renesas Electronics Corporation Renesasa supplier Editor Team - March 18, China-based Huawei has officially released its intelligent data center service solutions The company highlighted five features that super-large data centers must have At the Career advice and jobs related to electronics and IOT.

A resource for professional design engineers.Fingerprint scanner sensors are used at many places like Industries, Offices, Schools, Colleges and Hotels. By embedding IoT with the Fingerprint sensor, we can elevate the Fingerprint-based security system project to the next level.

Adafruit IO is used to save the entry details online while IFTTT is used to send the Email notifications when an unauthorised person scans the finger on the fingerprint sensor. GTC3 module can store fingerprints. Each fingerprint is saved with a different ID. Operating voltage for GTC3 is from 3. Solenoid lock work on the electronic-mechanical locking mechanism.

This solenoid lock has a slug with a slanted cut and a good mounting bracket. In normal conditions slug remains outside the bracket but when DC voltage is applied slug moves inside the bracket. Ideal Operating voltage for the solenoid lock is 12V. It can be used with 9V, but it results in slower operation. The solenoid lock is connected to NodeMCU through the relay module.

Adafruit IO is an IoT platform that allows you to visualise, and analyse live data on the cloud. Using Adafruit IO, you can control motors, read sensor data, and make cool IoT applications over the internet. After getting the AIO key, create a feed. All your data will be stored in this feed. You can also create an Adafruit IO dashboard for customised visualisation of your data. Here we are using IFTTT to send Email notifications when an unauthorised person scans his finger on the fingerprint sensor.

Using these applets, we can send Emails, Twitter, Facebook notifications. After getting the private key now, we will create an applet using Webhooks and Email services.

Start the code by including all the required library files.Each time the door is opened or closed a notification message is sent to the desired application. The Nodemcu ESP Wifi Module programming is done in such a way that it sends only one notification message when the door is opened or the door is closed, which became possible by using a flag in the programming. So, in this tutorial, you will also learn how to use a flag in the programming to stop the unnecessary repetition of code.

How to print only one avery label

Even if this application is running in the background still you will be able to receive the notifications. This project can be used for monitoring the lockers, Cupboards, garage door, and this project can also be used in advanced level projects like monitoring the Car bonnet, Doors, etc. In fact, this project can be used anywhere where you need the magnetic Reed Switch.

We can also name this project as the IoT Reed Switch. Note: For the practical demonstration watch video Tutorial give at the end of this article.

Miata timing off

The components and tools used in this project can be purchased from Amazon, the components Purchase links are given below:. Please Note: these are affiliate links. I may make a commission if you buy the components through these links. I would appreciate your support in this way! This Schematic is designed in CadeSoft Eagle 9. If you want to learn how to make a schematic and PCB, then watch my tutorial, given below.

This Power Supply is based on the famous LM voltage regulator. J1 is the Female Power Jack and this is where we connect a 12v adaptor, battery, or a Solar panel.

Two uf capacitors are connected at the input and output sides of the voltage regulator. A ohm resistor is connected in series with a 2. This is a current limiting resistor. A magnetic Reed Switch is connected in series with a 10k resistor. This is a Pull Up resistor. When the two contacts of the Reed Switch are open it gives 3 volts to the digital pin D0 of the Nodemcu Module. This is the Final Nodemcu Power Supply Circuit board after soldering, the PCB designing, online order placement, and soldering are already explained in my previous tutorial.

The link is given in the related projects section. Step by Step soldering is explained in the video Tutorial available at the end of this article. As you can see, a 10k resistor is connected in series with the Normally Open type Magnetic Reed Switch.


thoughts on “Nodemcu esp8266 door sensor”

Leave a Reply

Your email address will not be published. Required fields are marked *