Sie sind auf Seite 1von 10

 

Product Manual
Bi-color LED 
Plug 
 
 

 
 
 
   
 

 
 
 

 
 
 
Updated on: ​27th November 2017 

 
Product Manual: Bi-color LED Plug 

 
 
Index 

 
About Elint Labz 2 

Introduction 3 

Specification 3 

Supported cables: 4 

Details 4 

How to interface? 5 

Example Codes 8 
Code 1 : Arduino 8 

Contributors 9 

 
 

Elint Labz (​www.elintlabz.in​)  Page 1 of 8 


Product Manual: Bi-color LED Plug 

About Elint Labz 


Elint  Labz  (usually  abbreviated  as  EL)  is  an  electronics  design  &  development  tools 
designer  &  manufacturer  with  headquarters  in  Bengaluru,  India.  We  design,  develop  & 
manufacture  development  boards  based  on  micro-controller  &  microprocessors, 
breakout  boards  for  various  sensors  &  actuators. Our domain & expertise is in the area of 
Electronics & Embedded Systems. 
 
Elint  Labz  was  founded  in  2014  however  the  actual operations started from 2015 when it 
became  a  full  time  subsidiary  of  Hogst Innovative Solutions Pvt. Ltd. & is presently a part 
of  Ajaramara  Group  a  conglomerate  of  various  domains  of  industries,  registered  in  India 
as Ajaramara Dynamics Pvt. Ltd. under Companies Act of 2013. 
 
As  in  the  name  company  (Elint  Labz)  –  Electronic  intelligence  (​ELINT​)  is  intelligence 
gathered  by  the  use  of  electronic  sensors,  Laboratories  (LABZ)  are  facilities  that 
provides  controlled  conditions  in  which scientific or technological research, experiments 
and  measurement  may  be  performed.  EL  is  an  enterprise  built  to  develop  smart  & 
intelligent  electronics  &  EL  is  committed  to  help  achieve  electronics  literacy in India. No 
matter  the  vision  or  skill  level,  our  products  and  resources  are  designed  to  make 
electronics & programmable development hardware more accessible. 
 
Elint  Labz  as  a  platform  helps  developers  &  young  engineers  from  prototyping  to 
product  development.  We  provide  open  source  hardware  solutions  and  small  quantity 
manufacturing  services  using  a  design  from  manufacturing  framework.  We  are  a strong 
promoter  of  the  maker  movement  in  India,  most  of  the  manufacturing  happens  with 
support  of  our  various  Indian  partners  &  couple  of  our  collaboration  partners  who  have 
manufacturing & sourcing facilities in Germany, Korea & Shenzhen.  
 
To know more visit the about us section on our website: ​http://elintlabz.in/about-us/ 
 
 
Elint Labz (HQ) 
˗ #​200 1​st main Arekere MICO layout ​2​nd stage  
Bengaluru ​560076​ KA ​[Marked on Google Maps] 
✆ ​+91 855 377 2525 
ː ​hello@elintlabz.in  
 
 
 
 

Elint Labz (​www.elintlabz.in​)  Page 2 of 8 


Product Manual: Bi-color LED Plug 

Introduction 
Bi-color  LED  is  a  handy little component that emits two colors RED & GREEN and 
is  available  in  a  single  LED  package.  ​Bi-color  LED  plug  has  a  bi-color  LED  with 
two  current  limiting  resistors  which  can  be  used  as  indicator  in  various  projects. 
This  PCB  design  enables  you  to  bend  the  Bi-color  LED  to any position as per the 
user’s need and also this plug can be mounted anywhere using screws. 
·

 
 
 
Specification 
● Operating voltage: 5V 

● Size: 20mm x 15mm 

Variants 
● None 

Elint Labz (​www.elintlabz.in​)  Page 3 of 8 


Product Manual: Bi-color LED Plug 

Supported cables: 
● 4-4 A 
 
Details 
 
Bi-color  LED  plug  is  a  digital  output device. It has a interfacing port with four pins 
denoted  as  G,  V  ,  D1  and  D2.  Here  G  represents  Ground  ,  V  represents  VCC  and 
D1  and  D2  represents  Data  pin1  &  Data  pin2  respectively,  through  which  Bi-color 
LED  can  be  controlled.  Red  color  is  controlled  by  controlling  the  voltage  at  the 
data pin 1 (D1). Similarly Green color is controlled by data pin 2(D2). 
 

State of D1 pin on the  State of D2 pin on the  Bi-color LED plug 


Bi-color LED PLUG  Bi-color LED PLUG  response 

   
HIGH  LOW 

RED

   
LOW  HIGH 
 
GREEN

    
HIGH  HIGH 

ORANGE

Elint Labz (​www.elintlabz.in​)  Page 4 of 8 


Product Manual: Bi-color LED Plug 

   
LOW  LOW 

OFF
 
 
How to interface? 
Always use 4-4A cable to interface Bi-color LED plug with the controller board. 
While  connecting  make  sure  that  the  black  wire  of  the  cable is connected to the 
G pin on both sides. 
 
In  the  below  given  pictures  one  can  see  4-4A  cable  is  used  to  connect  Bi-color 
LED  plug  to  the  Pluguino  Board.  The  data  pin  1  (D1)  &  data  pin  2  (D2)  of  the 
Bi-color  LED  plug  are  connected  to  the  GPIO  pins  11  &  12  respectively  on  the 
controller  board.  By  controlling  the  voltage  at  the  11th  and  12th  GPIO  pin  of  the 
controller board one can control the Red and Green LEDs respectively. 
 

Elint Labz (​www.elintlabz.in​)  Page 5 of 8 


Product Manual: Bi-color LED Plug 

Elint Labz (​www.elintlabz.in​)  Page 6 of 8 


Product Manual: Bi-color LED Plug 

In  this  example,  we  are  going  to  demonstrate  the  working  of  the  Bi-color  LED 
plug.  Initially  Red  color  LED  blink  once  with  the  delay  of  one  second  and  after 
that  Green  color  LED  blink  once  with  the  delay  of  one  second  and  finally  both 
Red and Green color blink simultaneously with the delay of one second.  

 
 
 

Elint Labz (​www.elintlabz.in​)  Page 7 of 8 


Product Manual: Bi-color LED Plug 

Example Codes 
Code 1 : Arduino 
Objective:  Red  color  LED  turns  ON  for  one  second  followed by Green color fo
one  second  and  finally  both  Red  and  Green  color  turn  ON  simultaneously  fo
one second. 

#define RED_LED 11 ​// 11th pin is used to control RED color


#define GREEN_LED 12 ​// 12th pin is used to control GREEN
color

void​ ​setup​()
{
pinMode(RED_LED ,OUTPUT); ​// define 11th GPIO pin as OUTPUT pin
pinMode(GREEN_LED ,OUTPUT); ​// define 12th GPIO pin as OUTPUT pin
}

void​ ​loop​()
{
digitalWrite(RED_LED, HIGH); ​// Turn ON RED color
delay(​1000​); ​// wait for a second
digitalWrite(RED_LED, LOW); ​// Turn OFF RED color
delay(​1000​); ​// wait for a second
digitalWrite(GREEN_LED, HIGH); ​// Turn ON GREEN color
delay(​1000​); ​// wait for a second
digitalWrite(GREEN_LED, LOW); ​// Turn OFF GREEN color
delay(​1000​); ​// wait for a second
digitalWrite(RED_LED, HIGH); ​// Turn ON RED color
digitalWrite(GREEN_LED, HIGH); ​// Turn ON GREEN color
delay(​1000​); ​// wait for a second
digitalWrite(RED_LED, LOW); ​// Turn OFF RED color
digitalWrite(GREEN_LED, LOW); ​// Turn OFF GREEN color
delay(​1000​); ​// wait for a second
}

Output video: ​https://youtu.be/anmHrSQjiuk

 
 
  
 

Elint Labz (​www.elintlabz.in​)  Page 8 of 8 


Product Manual: Bi-color LED Plug 

Contributors 
List of interns & other contributors who have worked for developing this manual 

Sai Supraja N 
http://www.elintlabz.in/profile-1808 

 
 
 

Elint Labz (​www.elintlabz.in​)  Page 9 of 8 

Das könnte Ihnen auch gefallen