Description
The Magic Light Cup Module incorporates both a mercury tilt switch and LED on the same module for making special effects by handling them.
Key Features of Magic Light Cup Module:
- Glass mercury tilt switch
- Independent LED
- Mainly for creating a special effect as shown below
This module incorporates a mercury tilt switch and LED in the same module but they are independently controlled.
The mercury tilt switch includes a small amount of conductive liquid mercury in a glass housing. The ball of mercury rolls and makes or breaks contact with switch electrodes as the module is tilted. The tilt switch output is brought out to a pin on the module.
The tilt switch has a 10K pull-up resistor which keeps the output high until the mercury grounds the connection. Vcc is connected to this module just for this pull-up. If the internal pull-up on the uC is enabled, the VCC line does not need to be connected.
The LED on the module is separately controllable via an input pin on the module. The LED is lit with a logic HIGH input. It requires a series current limiting resistor of approximately 120 ohms or larger to prevent possible damage to the LED or the uC driving it.
Module Connections
There is a 4-pin header on the assembly for making connections.
1 x 4 Header
- ‘G’ / ‘–’ = Ground
- ‘+’ = Vcc (3.3 or 5V to match uC)
- S = Output of the tilt switch. Connects to a digital input pin on uC. Active LOW
- L = Input to drive LED. Connects to a digital output pin on uC. Active HIGH
Technical Specifications
Operating Ratings | Vcc Range | 3.3 – 5V |
Logic high | Pulled to Vcc | |
Logic Low | Pulled to Ground | |
Dimensions | L x W (PCB) | 19 x 14mm |
Reviews
There are no reviews yet.