IoT Web server Based Magic Cup Tilt Position Monitor

Updated: Jul 2, 2021

In this tutorial we will learn how to interface an IoT Based Tilt Position Monitoring canvas gauge using Nodemcu ESP826612E and KY-017 Mercury Magic Cup Tilt Switch Module.

This Mercury Switch is an electronic device used to detect the orientation or tilting of an object and provides digital output based on the orientation. It behaves like a normal ON – OFF switch that is controlled by tilting. Tilt sensor consists of a mercury ball and two contacts in a sealed Bulp, in which the mercury ball will short the leads based on the orientation.

Components Required

  • ESP8266 NodeMCU Dev Board

  • KY-017 - Magic Cup Tilt switch (Mercury)