Skip to main content
Free Delivery  ·  COD Available  ·  15-Day Returns
Pricio
Magic Cup Tilt Switch Sensor Module — image 1
Hover to zoom

1 / 3 · Click to enlarge

Magic Cup Tilt Switch Sensor Module

27+ bought in past month
AI Summary
Vibration/Tilt Sensor and Modules for everyday users

The Magic Cup Tilt Switch Sensor Module is a value-for-money vibration/tilt sensor and modules designed for everyday users. It features Model No. / Name: Tilt Sensor Module and Operating Voltage (VDC): 3.3 to 5.

₹539
Free Shipping💵 COD Available

Available Offers

Free Delivery on this order. No minimum order value.

15-Day Easy Returns — hassle-free return & full refund.

Secure Payment — 100% safe checkout with UPI, Cards & Net Banking.

Total: ₹539
Buying tip: A smart budget buy — solid performance without breaking the bank.
Estimated delivery: 17 Aug31 Aug
Free Shipping
Pan India delivery
15-Day Returns
Hassle-free policy
Secure Payment
Razorpay protected
Quality Assured
Vetted products only

Available Offers

💳

5% Cashback

Pay with UPI & get 5% cashback (up to ₹50) via Razorpay

🏦

No-Cost EMI

Available on select bank cards at checkout. 0% interest for 3 months.

📦

Free Shipping

Free delivery on all orders. No minimum order value.

💵

Cash on Delivery

COD available on orders up to ₹5,000 across India.

Quick Specs

Model No. / Name: Tilt Sensor Module
Operating Voltage (VDC): 3.3 to 5
Length (mm): 22
Width (mm): 24
Weight (g): 2
Shipping Weight: 0.005 kg

Ideal For

Electronics projectsArduino / Raspberry Pi buildsPrototyping
Share:
SKU: robu-365225Category: Vibration/Tilt Sensor and Modules

About This Product

The Magic Cup Tilt Switch Sensor Module is a value-for-money vibration/tilt sensor and modules designed for everyday users. It delivers reliable performance at an accessible price.

Key Specifications

  • Model No. / Name: Tilt Sensor Module
  • Operating Voltage (VDC): 3.3 to 5 — works with standard household power
  • Length (mm): 22
  • Width (mm): 24
  • Weight (g): 2
  • Shipping Weight: 0.005 kg
  • Shipping Dimensions: 7 × 6 × 4 cm

Why Buy from Pricio?

Pricio sources this product directly, cutting out multiple middlemen. Every order includes free shipping, a 15-day return policy, and secure payment via Razorpay.

Magic Light Cup Module is a board which has a led and a mercury tilt switch. Using PWM to drive the LEDs on the module you can achieve the effect of light being "magically" transferred from one module to the other when tilting them. In short, it’s 2 components combined, a mercury tilt switch and a led. On tilting the module mercury inside small tube connect the switching point and make switch ON while tilting it to other side move the mercury and it disconnects the circuit and switch get OFF. The module operates on 5V DC supply.

So the magic in the name of this module is because when you tilt the switch, the led will turn on and off. And Of course, it is also possible to connect it to the NodeMCU.

Pin Connection with Arduino:
  1. G: GND
  2. +:  5v DC
  3. S:  Arduino pin 8
  4. L: Arduino pin 9
Pin Connection with Node MCU:
  1. Connect G to a GND port of your NodeMCU
  2. Connect + to a 3.3v port of your NodeMCU
  3. Connect S to a digital port on your NodeMCU (in my example port D3)
  4. Connect L to a digital port on your NodeMCU (in my example port D5)

Connection Diagram:
Magic Cup Light Module for Arduino
Arduino Example Code
In this Arduino sketch, we'll use two Switching modules to create the magic light cup effect. The mercury switches in each module provide a digital signal that is used to regulate the brightness of the LEDs using PWM. Tilting the modules will decrease the brightness on one module while increasing it on the other one, creating the illusion of light magically passing from one module to the other.
int ledPinA = 9;
int switchPinA = 8;
int switchStateA = 0;
int ledPinB = 6;
int switchPinB = 7;
int switchStateB = 0;
int brightness   = 0;

void setup() 
{
  pinMode(ledPinA, OUTPUT); 
  pinMode(ledPinB, OUTPUT);  
  pinMode(switchPinA, INPUT); 
  pinMode(switchPinB, INPUT);
}

void loop() 
{
  switchStateA = digitalRead(switchPinA);
  if (switchStateA == HIGH && brightness != 255)
  { 
   brightness ++;
  } 
  switchStateB = digitalRead(switchPinB);
  if (switchStateB == HIGH && brightness != 0)
  { 
   brightness --;
  } 
  analogWrite(ledPinA, brightness);  //  A slow fade out
  analogWrite(ledPinB, 255 - brightness);  // B slow bright up
  delay(20);
}

Package Includes:

1 x Magic Cup Light Module

Setup Guide

1
Identify the pins
Locate VCC (power), GND (ground), and data pins (SDA/SCL for I2C, MOSI/MISO for SPI, or TX/RX for UART). Refer to the pinout diagram on the product page.
2
Wire to your microcontroller
Connect VCC to 3.3V or 5V (check the module spec), GND to GND, and data pins to the appropriate GPIO pins on your Arduino or Raspberry Pi.
3
Install libraries
In Arduino IDE, go to Sketch → Include Library → Manage Libraries and search for the sensor library. Install the recommended version.
4
Upload example sketch
Open File → Examples → [library name] → Basic Example. Upload to your board and open Serial Monitor to view output.
5
Calibrate if needed
Some sensors (temperature, humidity, distance) may need a short warm-up period or calibration. Run the calibration sketch if provided.