- Home
- Catalogues
- List of Supervising Constructions for High School - High School 2025-2026
- Catalogue of Science and Technology Aids 2025-2026
- Design & Technology Catalogue Primary Schools 2024-2025
- Catalogue of Science and Technology Aids 2024-25
- Catalogue of Science and Technology Aids 2023-24
- Christmas Crafts Set
- Nursery Schools Catalogue 2022-2023
- Nursery Schools Catalogue 2020-2021
- Nursery Schools Catalogue 2018-2019
- Happy and Creative Hands
- Jobs Category
- About us
- FAQ
- Terms and conditions of use
- Privacy Policy
- Cookies Policy
- Payment Methods
- Shipping Methods
- Returns Policy
- Payment Response
- Registration Successful
- Shipments to Greece
- New Service Point
- Teacher Registration
- Box Now Shipping Service
- 40 years Antoniadis
- Catalogues
- Catalogues
- About us
- Payment Methods
-
Educational Products
-
School Equipment
- All
- Write 'N' Wipe Boards
- White Magnetic Boards
- Board Erasers & Cleaners
- Interactive Boards
- Cork Boards
- Boards Paper Roll
- Talking Points
- Measuring Instruments
- Rotary Trimmer & Guillotine Machines
- Binding Machines
- Laminators
- Maps
- Literacy
- Time
- Presenters
- Music Instruments
- Batteries
- USB Memory Sticks
- Pocket Charts
- Various
-
Stationery
-
STEM - Robotics - Programming
-
Electronics
-
Educational Toys & Construction Kits
- All
- Mechanics
- Robotics
- Coding
- Simple Circuit Kits
- Science
- Green Science
- Planets
- Dinosaurs - Volcanos
- Animals
- Lenses
- Logic / Understanding
- Card & Board Games
- Rubik's Cubes
- Puzzles
- Magnetic Boards
- Hama Beads
- Painting Sets
- Craft Sets
- Creative Hands
- Soft Play Dough
- Fridge Magnets
- Wooden toys
- Baby Toys
- Gadgets
- Construction "Antoniadis"
- Seasonal
- Birthday Gifts
- Gift Vouchers
-
Tools & Adhesives
-
Craft Materials
- All
- Resin Art, Casting & Sculpting
- Decoupage & Mixed Media
- Items for Decoration
- Model Making & Mockup Supplies
- Creation Materials
- Decoratives
- Paints - Colours
- Mediums & Auxiliaries
- Canvases & Canvas Panels
- Clocks & Accessories
- Cards & Papers
- Fabrics
- Scrapbooking - Papers
- Powertex
- Quilling
- Seasonal
- All
- Acrylics
- Metallic - Pearl
- Chalk Paints
- Oil Paints
- Watercolours - Temperas
- Glass paints
- Fabric Paints
- Pouring Paint Sets
- Face painting
- Lasur Paints
- Chalkboard
- Pencils
- Chalks
- Markers
- Pastel-Crayons
- Outliners
- Alcohol Inks
- Spray
- Pigments for Liquid Glass
- Pigments
- Coloring Books
- Painting by numbers
- Paint Palettes and Containers
-
Art Supplies
Magic Light Cup Sensor Module KY-027
The KY-027 Magic Light Cup Sensor Module (MPN: KY-027) is a dual-module kit that combines mercury tilt switches with PWM-driven LEDs to simulate the visual illusion of light being poured between two cups. When you tilt one module, its mercury switch sends a digital signal that triggers a PWM dimming sequence: one LED fades out while the other fades in — creating a smooth, captivating light-transfer effect. It is a popular demonstration module for learning PWM control, digital input reading, and sensor-driven animation on Arduino-compatible boards.
Key Features
- Mercury Tilt Switch Input: Provides a clean digital signal on tilt → reliable trigger for PWM sequences without debounce complexity
- Dual-Module Design: Two modules work in tandem → creates the iconic "magic cup" light-pouring illusion
- PWM Brightness Control: LED brightness changes smoothly via PWM → visually striking dimming effect ideal for demos and exhibitions
- Arduino-Ready: Designed to interface directly with Arduino digital and PWM pins → plug-and-play with the provided example code
Pinout & Wiring
Each KY-027 module connects to your Arduino using the following pins as demonstrated in the reference code:
| Function | Arduino Pin (Module A / B) | Description |
|---|---|---|
| LED Output A | Pin 5 | PWM-capable pin controlling LED brightness on Module A |
| LED Output B | Pin 6 | PWM-capable pin controlling LED brightness on Module B |
| Tilt Switch A | Pin 7 | Digital input reading mercury switch state on Module A |
| Tilt Switch B | Pin 4 | Digital input reading mercury switch state on Module B |
Wiring note: Connect each module's signal pin to the designated Arduino digital pin, power to 5V, and GND to GND. Use PWM-capable pins (marked with ~ on Arduino UNO) for the LED outputs to enable smooth brightness transitions.
Compatibility
- Arduino UNO / Nano / Mega: Fully compatible — module operates at 5V logic, and the LED pins require PWM-capable outputs (pins 5 & 6 on UNO are PWM-enabled).
Typical Applications
- Learning PWM dimming and digital input reading on Arduino
- Interactive art installations and science fair demonstrations
- Beginner electronics workshops showcasing sensor-driven light effects
- Tilt/orientation detection projects with visual feedback
- Fun desktop gadget or conversation-piece build for makers and hobbyists
Technical Specifications
| Interface | Digital (mercury tilt switch) + PWM (LED output) |
| Sensor Type | Mercury tilt switch (×2, one per module) |
| Output Type | Digital signal + PWM-driven LED |
| Compatible Platform | Arduino (5V logic) |
| MPN | KY-027 |
FAQ
Q: Why does the light effect look like liquid being poured between cups?
A: When you tilt Module A, its mercury switch triggers a PWM sequence that fades its LED down while simultaneously fading Module B's LED up — the smooth inverse brightness change creates the visual illusion of light transferring from one cup to the other.
Q: Do I need two KY-027 modules for the effect?
A: Yes — the magic cup illusion requires both modules working together. One module's tilt triggers the other's LED to brighten as the first dims, which is why the KY-027 is typically sold or used as a pair.
⚠ Warning: These modules contain mercury switches. Handle with care and dispose of responsibly according to local regulations. Not suitable for children.