








Hardware Required
- Arduino Uno With USB Cable - 1
- Magic Cup Light Module - 2
- 9V Battery - 1
- Snapper With DC Jack - 1
- Bread Board 400 Point - 1
- Jumper Wire (male to male) - 40 pcs
Introduction
In this project, we will see the functionality of Light Cup Module by tilting the circuit.
HARDWARE REQUIRED
- Arduino Uno With USB Cable - 1
- Magic Cup Light Module - 2
- 9V Battery - 1
- Snapper With DC Jack - 1
- Bread Board 400 Point - 1
- Jumper Wire (male to male) - 40 pcs
SOFTWARE REQUIRED
Arduino IDE 1.8.5 (programmable platform for Arduino)
Click To Download: https://www.arduino.cc/en/Main/Software
SPECIFICATIONS
Magic Cup Light Module
The Magic Light Cup modules are easy and work on the PWM dimming principle. It is to use the principle of two modules brightness changes. Mercury switches provide a digital signal that triggers the PWM regulator, through the program design, we can see the light like two cups filled with the effect of shuffling back and forth.
Arduino Uno
CIRCUIT CONNECTION
- Attach the Light cup module on the Breadboard.
- Connect VCC of Light Cup 1 and 2 with Pin 5V of Arduino Uno.
- Connect GND of both Light Cup Sensor 1 and 2 with GND of Arduino Uno.
- Connect Pin Signal of Light Cup 1 with Digital Pin 7 of Arduino Uno.
- Connect Pin Signal of Light Cup 2 with Digital Pin 4 of Arduino Uno.
- Connect LED Pin of Light Cup 1 with Digital Pin 5 of Arduino Uno.
- Connect LED Pin of Light Cup 2 with Digital Pin 6 of Arduino Uno.
CODE
https://drive.google.com/open?id=1btw5I_kzZRPWfOkCBHMbJVpNTAN3E-Zy
WORKING
Welcome to the Arduino Based Project which consists of Light Cup Sensor Module. The basic functionality is being described here.
Mercury switches provide a digital signal that triggers the PWM, through the program design, we can then see the light like two cups filled with the effect of shuffling back and forth. Here, the dimming principle is to use the principle of two modules brightness changes for PWM.
Also, 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. When the circuit is being tilted towards either side, then the Light Cup module on that particular side turns on an opposite one remains off.