fbpx

Interface Tsop With Arduino Uno

Tsop is an IR receiver which will help you to interface your TV remote with microcontroller.

  • IR LED is transmitting data onto the TSOP,when IR led goes high.
  • Remote control signals are often bytes of data that is encoded and transmitted by pulsing(switching ON and OFF the IR LED at a specific frequency).
  • Most TV remote control work at 32-40 KHz frequency and most receivers can receive this range.
  • The SIRC protocol uses a pulse width to encode the bit.
  • The pulse representing a logical “1” is a 1.2ms long burst of the 40kHz carrier, while the burst width for a logical “0” is 0.6ms long.
  • All bursts are separated by a 0.6ms long space interval.

Application

  • TV.
  • Automations.

Hardware Required

  • TSOP.
  • Arduino.

Pinout

  • GND: GND.
  • VCC: +5v.
  • OutPut: Analog.

Circuit

Code

 #include <IRremote.h>
 int RECV_PIN = 11;
 IRrecv irrecv(RECV_PIN);
 decode_respts respts;
 void setup()
 {
 Serial.begin(9600);
 irrecv.enableIRIn();
 }
 void  loop()
 {
 if (irrecv.decode(&respts))
 {
 Serial.println(respts.value, HEX);
 irrecv.resume();
 }
 } 

Leave a Reply

Your email address will not be published. Required fields are marked *