The brightness of two modules change.
Magic light cup sensor.
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.
The mercury switch provides a digital signal and trigger pwm regulation and then you can see the effect like changing two set of cups full of light through the program design.
The snazzy name magic light cup refers to having two of these modules hooked up and as the modules are tilted like pouring one into the other the light will appear to pour from one of the modules to the other.
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.
Magic light cup module can interact with aduino.
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.
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.
Kes dollar kenyan shilling.
Ky 027 magic light cup module fzpz readme txt ky 027 magic light cup module fritzing part by arduinomodules info is licensed under a creative commons attribution sharealike 4 0 international license.
The principle is based on the principle of pwm dimming.
We sell these as a 2 pack so that the modules can interact with each other which is a little more interesting.
It works by the principle of pwm dimming to change the brightness of two modules.
Then by combining with programs we can achieve the effect of two cups full of light flipping back and forth.
Code example raspberry pi needed modules will be imported and configured.