Magic cup module with arduino this is rather an odd module i had seen them but only purchased one recently.
Magic light cup module arduino.
I assume they are designed to sit at the bottom of a cup and the led lights up when the cup is tilted.
When you tilt left or right the lamps will flash.
Using pwm to drive the leds on each module you can achieve the effect of light being magically transferred from one module to the other when tilting them.
Anyways it is a mercury switch with leds attached to it nothing more.
Based on a work at https arduinomodules info ky 027 magic light cup module.
Magic light cup module is a module that can interact and arduino dimming principle is to use the principle of two modules brightness changes for pwm.
Code example raspberry pi needed modules will be imported and configured.
This example shows you how to make a tilt alarm.
Arduino ky 027 magic light cup module is a set of two boards each one has a led and a mercury tilt switch.
Import rpi gpio as gpio import time gpio setmode gpio bcm declaration of the led and sensor pins led pin 24 sensor pin 23 gpio setup sensor pin gpio in gpio setup led pin gpio out print sensor test press ctrl c to end the test this output function will be.
Codebender includes a arduino web editor so you can code store and manage your arduino sketches on the cloud and even compile and flash them.
Also known as the magic light cup in the arduino world still not sure why they call it that.
Mercury switches provide a digital signal that triggers the pwm through the program design we can see the light like two cups filled with the effect of shuffling back and forth.
Magic light cup module magic light cup modules are easy to interactive technology division developed a can and arduino interactive modules pwm dimming principle is to use the principle of two modules brightness changes.
There are four connectors marked s and l on my board.
Ky 027 magic light cup module fritzing part by arduinomodules info is licensed under a creative commons attribution sharealike 4 0 international license.