Skip to product information
1 of 3

vendor-unknown

Make an IoT based Tilt Switch Alarm using Tilt switch and Buzzer with NodeMCU ESP8266-12e Wi-Fi Board - KT567

Make an IoT based Tilt Switch Alarm using Tilt switch and Buzzer with NodeMCU ESP8266-12e Wi-Fi Board - KT567

SKU:KT567

Low stock: 7 left

Regular price Rs. 1,199.00
Regular price Sale price Rs. 1,199.00
Sale Sold out
Shipping calculated at checkout.

For refund/return/replacement, call us at +91 95995 94524 For bulk and B2B enquiries kindly mail us at support@rees52.com

View full details

Kit Includes


Introduction

In this project, we are making an IOT based Tilt Switch Alarm using Tilt switch Sensor and ESP8266-12e Wi-fi Board

HARDWARE REQUIRED

SOFTWARE REQUIRED

Arduino IDE 1.8.10 (programmable platform for Arduino)

Click To Download: https://www.arduino.cc/en/Main/Software

SPECIFICATIONS

NodeMCU ESP8266 CP2102 NodeMCU WIFI Serial Wireless Module

The development board equips the ESP-12E module containing ESP8266 chip having Tensilica Xtensa® 32-bit LX106 RISC microprocessor which operates at 80 to 160 MHz adjustable clock frequency and supports RTOS.

  • Operating Voltage: 2.5V to 3.6V
  • On-board 3.3V 600mA regulator
  • 80mA Operating Current
  • 20 µA during Sleep Mode
  • ESP8266 CP2102 NodeMCU LUA ESP-12E WIFI Serial Wireless Module
  • Built-in Micro-USB, with flash and reset switches, easy to program
  • Full I/O port and Wireless 802.11 supported, direct download no need to reset
  • Arduino compatible works great with the latest Arduino IDE/Mongoose IoT/Micro python


WARNING

The ESP8266 requires a 3.3V power supply and 3.3V logic levels for communication. The GPIO pins are not 5V-tolerant! If you want to interface the board with 5V (or higher) components, you’ll need to do some level shifting.

Tilt Switch Sensor

A Tilt Sensor switch is an electronic device that detects the orientation of an object and gives its output High or Low accordingly. Basically, it has a mercury ball inside it that moves and makes the circuit. So the tilt sensor can turn on or off the circuit based on the orientation.

The tilt sensor is cylindrical and contains a free conductive rolling ball inside with two conductive elements (poles) beneath.


Here’s how it works:

  • When the sensor is completely upright, the ball falls to the bottom of the sensor and connects the poles, allowing the current to flow.
  • When the sensor is tilted, the ball doesn’t touch the poles, the circuit is open, and the current doesn’t flow.

CIRCUIT CONNECTION

  • Connect one terminal of the Tilt Switch to the “Vin” pin of the NodeMCU ESP8266-12e Wi-Fi Module.
  • Connect another terminal of the Tilt Switch to A0 pin and GND pin of NodeMCU ESP8266-12e Wi-Fi Module via 220-ohm resistor.
  • Connect the LED ground pin to the GND pin of the NodeMCU ESP8266-12e Wi-Fi Module.
  • Connect LED positive terminal to D2(GPIO4) pin of NodeMCU ESP8266-12e Wi-Fi Module.
  • Connect Buzzer GND pin to GND pin of NodeMCU ESP8266-12e Wi-Fi Module.
  • Connect Buzzer’s Positive pin to D1(GPIO5) pin of NodeMCU ESP8266-12e Wi-Fi Module.

CODE

Click to see the code

https://drive.google.com/open?id=102R-VenSf02cnpnQwLqtcvBaJ93NgsHE

WORKING AND OUTPUT

Welcome to the IoT based Tilt Switch Alarm circuit. You can use this circuit with many rotation-based applications. As we know this sensor produce an electrical signal which is proportional to the degree of inclination with respect to one or more axes. These sensors play a very important role in several applications such as off-road vehicles, portable computers, robotics devices, aviation instruments, etc.

In this project When the device gets power and is in its upright position, then the rolling ball settle at the bottom of the sensor to form an electrical connection between the two end terminals of the sensor. Next, the circuit becomes short circuit and the LED gets sufficient current and it will glow and buzzer starts tone. If the circuit gets tilted so that the rolling ball doesn’t settle at the bottom of the sensor with the electrical conduction path, then the circuit becomes open. And led and buzzer should be activated until the switch ball doesn’t settle in the bottom. This is about the circuit operation.

You can check the status in the serial monitor.

Click to watch the tutorial

For more tutorials subscribe our channel REES52 on YouTube

https://www.youtube.com/channel/UCKuJ1KCjJGat7PrdAcWtu5g