Product Manual
Bi-colour LED Plug [v2]
Updated on: 27th November 2017
Product Manual: Bi-color LED Plug v2
Index
About Elint Labz
2
Introduction
3
Specification
3
Supported cable:
4
Details
4
How to interface?
5
Example Codes Code 1 : Arduino
7 7
Elint Labz (www.elintlabz.in)
Page 1 of 7
Product Manual: Bi-color LED Plug v2
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 1st main Arekere MICO layout 2nd stage Bengaluru 560076 KA [Marked on Google Maps] ✆ +91 855 377 2525 ː
[email protected]
Elint Labz (www.elintlabz.in)
Page 2 of 7
Product Manual: Bi-color LED Plug v2
Introduction This version of Bi-color LED plug has a LED that emits two colors RED & GREEN and is available in a single LED package. Bi-color LED plug has a bi-color LED with four SMD resistors and two CTBC 5478 transistors . It has a small white strip which is pasted on the back of the PCB which can be used as indicator to specify the name, component code.....etc. ·
Specification ● Operating voltage: 5V ● Size: 24mm x 26mm
Variants VERSION
HEAD TYPE Straight
V2 Right-angled
Elint Labz (www.elintlabz.in)
PORT TYPE
SKU
Straight
EL-BCLP-ST-201
Right-angled
EL-BCLP-ST-202
Straight
EL-BCLP-RA-201
Right-angled
EL-BCLP-RA-202
Page 3 of 7
Product Manual: Bi-color LED Plug v2
Supported cable: ● 4-4 A
Details This version of bi-colour LED plug has CTBC 5478 transistor that is NPN bipolar transistor mounted on LED plug using which output can be obtained even with low input current, unlike other LED plug which require high input current.
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 obtained by giving a high signal to D1 and low signal to D2 . Green color is obtained by giving a high signal to D2 and low signal to D1 . Orange color is obtained by giving high signal to both the pins .
Elint Labz (www.elintlabz.in)
Page 4 of 7
Product Manual: Bi-color LED Plug v2
How to interface?
Use 4-4 A cables to connect BI-color LED plug to the controller board. ● Connect one end of the 4-4 A cable to the BI-color LED plug and another end to Controller board. Always ensure that black wire of the cable is connected to the G pin on both ends. In the below given pictures one can see 4-4 A 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 7
Product Manual: Bi-color LED Plug v2
Elint Labz (www.elintlabz.in)
Page 6 of 7
Product Manual: Bi-color LED Plug v2
Objective- This example demonstrates the working of a Bi-color LED plug. Initially Red color LED blinks once with the delay of one second and after that Green color LED blinks once with the delay of one second and finally both Red and Green color blink simultaneously with the delay of one second.
Example Codes
Code 1 : Arduino #define RED_LED 11 #define GREEN_LED 12 color void setup() { pinMode(RED_LED ,OUTPUT); pinMode(GREEN_LED ,OUTPUT); }
Elint Labz (www.elintlabz.in)
// 11th pin is used to control RED color // 12th pin is used to control GREEN
// define 11th GPIO pin as OUTPUT pin // define 12th GPIO pin as OUTPUT pin
Page 7 of 7
Product Manual: Bi-color LED Plug v2
void loop() { digitalWrite(RED_LED, HIGH); delay(1000); digitalWrite(RED_LED, LOW); delay(1000); digitalWrite(GREEN_LED, HIGH); delay(1000); digitalWrite(GREEN_LED, LOW); delay(1000); digitalWrite(RED_LED, HIGH); digitalWrite(GREEN_LED, HIGH); delay(1000); digitalWrite(RED_LED, LOW); digitalWrite(GREEN_LED, LOW); delay(1000); }
// // // // // // // // // // // // // //
Turn ON RED color wait for a second Turn OFF RED color wait for a second Turn ON GREEN color wait for a second Turn OFF GREEN color wait for a second Turn ON RED color Turn ON GREEN color wait for a second Turn OFF RED color Turn OFF GREEN color wait for a second
Output video: https://youtu.be/ITzufbZX1Mc
Elint Labz (www.elintlabz.in)
Page 8 of 7