Key features of magic light cup module.
Magic light cup module.
Mercury switches provide a digital signal that triggers the pwm regulator through the program design we can see the light.
Mercury switches provide a digital signal that triggers the pwm regulator through the program design we can see the light like two cups filled.
Arduino howto arduinobasics how to use magic light cup with arduino.
You can also check the code.
The magic light cup module incorporates both a mercury tilt switch and led on the same module for making special effects by handling them.
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.
Magic light cup module.
Arduino ide in the cloud.
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.
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.
Mainly for creating a special effect as shown below.
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.
This is tutorial for beginners.
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.
Magic light cup module.