KY-027 Magic Light Cup Sensor Module For R3C25 Electronic Building Blocks For Arduino Diy Starter Kit KY027 5V Electronics Board
KY-027 Magic Light Cup Sensor Module For R3C25 Electronic Building Blocks For Arduino Diy Starter Kit KY027 5V Electronics Board
gtooza.com
Couldn't load pickup availability
Share
KY-027
Condition : New
Type : Module
TWO TREES
Magic light cup module KY-027 Magic light cup sensor module pair compatible development board
Product Overview
The mercury switch has an additional independent LED, and two groups can form a magic light cup
Use the mercury switch to detect the tilt state of the module, and use the PWM wave to control the independent LED, so that it can have different degrees of change from light to dark. When the mercury switch detects the tilt, the LED light will become darker and darker, and the other light will become brighter and brighter
Connect the S pin of one module of the magic light cup to the A5 pin on the arduino power board, and the LED control to the digital pin 3 (to realize the PWM function) The other module S is connected to A4, and the LED control is digital pin 4
When the A module pin has a level signal, the LED PWM signal is not the maximum, and the PWM signal increases
When the module B pin has a level signal, the LED PWM signal is not the minimum, and the PWM signal decreases, and then the PWM signal is assigned to LEDA. The contrast value of the PWM signal is assigned to LED B, and the two LEDs increase and decrease.





