By using this website, you agree to the use of cookies as described in our Privacy Policy.

KY-029 - Yin Yi 2-color LED module 3MM

KY-029 - Yin Yi 2-color LED module 3MM

KY 029Einführung

Das Modul beinhaltet einen Rot-Grün Zwei Farben LED

  • Farbe: Grün + Rot
  • Durchmesser: 5mm
  • Spannung (V): G :2.3-2.6 V; R :1.9-2.2 V
  • Strom: 20 mA
  • Wellenlänge (NM): 571 +625
  • Helligkeit (MCD) :20-40; 60-80

Achtung: Höchstwahrscheinlich werden vorwiderstände benötigt!!!

Anschluss

FIXME

ArduinoModul
   
   
   
 

Beispielcode

/ / Arduino test code:
int redpin = 11; / / select the pin for the red LED
int bluepin = 10; / / select the pin for the blueLED
int val;
void setup () {
pinMode (redpin, OUTPUT);
pinMode (bluepin, OUTPUT);
Serial.begin (9600);
}
void loop ()
{
for (val = 255; val> 0; val -)
{
analogWrite (11, val);
analogWrite (10, 255-val);
delay (15);
}
for (val = 0; val <255; val + +)
{
analogWrite (11, val);
analogWrite (10, 255-val);
delay (15);
}
Serial.println (val, DEC);
}
  • Zugriffe: 223

Related Articles