TSOP Plug Product Manual
Updated on: 27th November 2017
Product Manual: TSOP Plug
Index Introduction
2
Specification
2
Variants
2
Supported cables:
2
Details
3
How to interface?
3
Example Codes Code 1: Arduino
5 5
Elint Labz (www.elintlabz.in)
Page 1 of 6
Product Manual: TSOP 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 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 6
Product Manual: TSOP Plug
Introduction
TSOP plug has an IR receiver which can be used to decode the IR encoded data emitted by the device controlling remotes. This PCB design enables you to bend TSOP in any position as per the user’s need and also this plug can be mounted anywhere using the screws.
Specification
● Operating voltage: 5V ●
Size: 26mm x 18mm
Variants None
Supported cables: 1.
3-3 A
2. 4-3 A
Elint Labz (www.elintlabz.in)
Page 3 of 6
Product Manual: TSOP Plug
Details
TSOP, an IR receiver, outputs a constant HIGH signal when it is idle and as it receives data from the remote, it tends to invert the data. i.e when an IR LED of the remote is transmitting data onto the TSOP, every time the IR led goes high, the TSOP will go LOW and vice versa. Remote control signals are often bytes of data that is encoded and transmitted by pulsing i.e switching ON & OFF the IR LED at a specific frequency. TSOP plug is a digital input device to the interfacing system. It has an interfacing port with three pins named as G, V & D. Here G represents Ground , V represents VCC and D represents Data pin at which IR decoded data from the remote is available to read into the controller.
How to interface?
Use either of the supported interfacing cables to connect this TSOP plug to the controller board. If 4-3A cable is to be used then 3 pin end of the cable is connected the TSOP plug and 4 pin end of the cable must be connected to the controller board. If 3-3A cable is to be used then any end of the cable can be connected to the TSOP plug. Always ensure that black wire of the cable is connected to the G pin on both ends. In the below given pictures we can see that 4-3A cable is used to connect TSOP plug to the Pluguino Board. The data pin of the TSOP plug is connected to the 11th GPIO pin on the controller board. Note: We have used IRremote.h library functions to decode the IR signals read by the TSOP plug.
Elint Labz (www.elintlabz.in)
Page 4 of 6
Product Manual: TSOP Plug
Elint Labz (www.elintlabz.in)
Page 5 of 6
Product Manual: TSOP Plug
In this example, we are going to decode the IR signals read by the TSOP and convert into hexadecimal values and print these values on the serial terminal.
Example Codes Code 1: Arduino #include
int RECV_PIN = 11; IRrecv irrecv(RECV_PIN); decode_results results; void setup() { Serial.begin(9600); irrecv.enableIRIn(); }
// initialize the serial port // Start the receiver
void loop() { if (irrecv.decode(&results)) {
Elint Labz (www.elintlabz.in)
Page 6 of 6
Product Manual: TSOP Plug
Serial.println(results.value, HEX); irrecv.resume(); // Receive the next value } delay(100); }
Output video: https://youtu.be/p2FGqvCavpY OUTPUT:
Elint Labz (www.elintlabz.in)
Page 7 of 6