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 user 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. It is also possible to connect it to the NodeMCU.
Compatible with Arduino & NodeMCU
When you tilt the switch, the led will turn on and off
Operating voltage : 3.3V to 5.5V
Dimension : 1.5cm x 3.6cm
Weight : 10 g
+: 5v DC
S: Digital Pin
L: Digital Pin
Pin Connection with Node MCU:
S: Digital port of NodeMCU
L: Digital port of NodeMCU
1 X KY-027 Magic Light Cup Module