BEDANDBREAKFASTBELSIT.IT ≡ Paperweights Equipment Magnetism Apparel Accessories
  • Arduino

  • Magic Light Cup Module (KY-027)

Magic Light Cup Module (KY-027)

$22.41 $30.7
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.   dimming principle is to use the principle of two modules brightness changes for pwm.    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.    test code:    int LedPinA = 5;    int LedPinB = 6;    int ButtonPinA = 7;    int ButtonPinB = 4;    int buttonStateA = 0;    int buttonStateB = 0;    int brightness = 0;    void setup()    {    pinMode(LedPinA, OUTPUT);    pinMode(LedPinB, OUTPUT);    pinMode(ButtonPinA, INPUT);    pinMode(ButtonPinB, INPUT);    }    void loop()    {    buttonStateA = digitalRead(ButtonPinA);    if (buttonStateA == HIGH && brightness != 255)    {    brightness ;    }    buttonStateB = digitalRead(ButtonPinB);    if (buttonStateB == HIGH && brightness != 0)    {    brightness --;    }    analogWrite(LedPinA, brightness); //    analogWrite(LedPinB, 255 - brightness); //    delay(25);    }
Arduino

Arduino

  • ATMega328 – Microcontroller
    $44.48 $59.16
  • DC Power Adapter (24VDC – 2A) High Quality (Tested)
    $57.39 $112.48
  • Arduino UNO R4 Minima (China Version)
    $35.08 $58.58
  • Arduino Package Learning Kit
    $48.96 $66.1
  • Arduino Pro Mini ATMEGA328P 5V 16MHz
    $49.91 $82.35
  • DC Power Adapter (24VDC – 5A)
    $65.38 $114.42
  • DC Power Adapter (3VDC – 2A)
    $58.5 $95.94
  • DC Power Adapter (24VDC – 0.5A)
    $72 $105.12
  • Arduino Mega 2560 R3
    $69.15 $103.73
  • Arduino Uno R3 with cable
    $44.42 $84.84
  • DC Power Adapter (12VDC – 1A)
    $49.5 $86.63
  • STC15W408AS -SOP28 STC Microcontroller
    $85.5 $149.63
  • Arduino Nano V3.0 CH340 Chip Without Cable
    $53.89 $70.06
  • ATMEGA328 P-AU SMD
    $35.95 $58.24
  • DC Power Adapter (9VDC -4A) Original
    $63.53 $95.3
  • Motor Driver Shield L293D
    $90 $114.3

© 2026 - BEDANDBREAKFASTBELSIT.IT