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, its 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.
Â
Pin Connection with Node MCU:
- Connect G to a GND port of your NodeMCU
- Connect + to a 3.3v port of your NodeMCU
- Connect S to a digital port on your NodeMCU (in my example port D3)
- Connect L to a digital port on your NodeMCU (in my example port D5)
Â
Arduino Example Code:-
Specifications:-
Operating Voltage Range | 3.3V 5V |
Length (mm) | 22 |
Width (mm) | 24 |
Height (mm) | 25 |
Weight (gm) | 2 |
Package Includes:
1 x Magic Cup Light Module
* Product Images are shown for illustrative purposes only and may differ from actual product.
Reviews
Clear filtersThere are no reviews yet.