KY-011
KY-011 is 2-Color (Red+Green) 5mm LED module manufactured by Joy-IT.
- Part of the KY-011-Joy comparator family.
- Part of the KY-011-Joy comparator family.
description
1 3 Pinout 2 4 Code example Arduino 2 5 Code example Raspberry Pi 3
Picture
Technical data / Short description
LED module which provides a red and a green LED. These LEDs are connected with a mon cathode. Resistors are needed for different input voltages.
Vf [typ]= 2,0-2,5V
If= 20m A
Pre-resistors:
Export: 16.06.2017
Copyright by Joy-IT
- Published under CC BY-NC-SA 3.0
Page 46 of 214
KY-011 2-Color (Red+Green) 5mm LED module Rf (3,3V) [Green]= 120Ω Rf (3,3V) [Red]= 120Ω [for example using ARM CPU-Core based microcontroller like Raspbarry Pi]
Rf (5V) [Green] = 220Ω Rf (5V) [Red] = 220Ω [for example using Atmel Atmega based microcontroller like Arduino]
Pinout
Code example Arduino
Code example ON/OFF int Led_Red = 10; int Led_Green = 11; void setup () {
// Output pin initialization for the LEDs pin Mode (Led_Red, OUTPUT); pin Mode (Led_Green, OUTPUT); } void loop () //Main program loop { digital Write (Led_Red, HIGH); // LED will be switched on digital Write (Led_Green, LOW); // LED will be switched off delay (3000); // Waitmode for 3 seconds digital Write (Led_Red, LOW); // LED will be switched off digital Write (Led_Green, HIGH); // LED will be switched on delay (3000); // Waitmode for another 3 seconds in which the status of the LEDs are shifted. }
Example program ON/OFF download:
Export: 16.06.2017
Copyright by Joy-IT
- Published under CC BY-NC-SA 3.0
Page 47 of 214
KY-011 2-Color (Red+Green) 5mm LED...