Picked up a YS-IRTM IR Transmitter/Receiver module to do some testing for a project. There's not a lot of details on it but eventually came across two very important sources:

Translated Module Datasheet: https://docplayer.net/101050357-Nec-infrared-codec-module-ver1-0-ys-irtm.html

Examples: https://forum.arduino.cc/index.php?topic=359707.msg2861077#msg2861077

I've been trying to get this working for a few days and so far haven't gotten anything. Need to reach out before I pull out whatever hair I have left.

BTW, new to this and may have easily missed something.

Wiring Diagram

Arduino Uno    YS-IRTM
5v          -> 5v
GND         -> GND
0 RX        -> TXD
1 TX        -> RXD


int icb = 0;
SoftwareSerial ir_mod(0, 1);

void setup(){
  Serial.println("Setup IR Serial");
  Serial.println("IR Serial Ready");

void loop(){
  if(ir_mod.available() > 0){
    icb = ir_mod.read();
    Serial.print(" 0x");
    Serial.println(icb, HEX);

Current Output

Setup IR Serial
IR Serial Ready

Nothing will happen if I try to interact with the Receiver with any IR Transmitter (like a TV/AC Remote) but if I disconnect and reconnect the power, I get " 0xFFFFFFFF". Then nothing.


2 Answers 2


Default baud for module is 9600 unless you previous set it diffrent as per the datasheet A1 F3 ## 00 00 I believe

  • I did play with the baud rate. I reset the device to set it back to default which meant it was reset to 9600. That means the baud rate to the device is 9600 and the rate to the monitor is 115200.
    – wsidl
    Aug 26, 2019 at 12:26

I am also new to this but if I am not mistaken, you seem to have connected the IR module to Arduino Hardware Serial while trying to communicate with the module via SoftwareSerial. Try using Arduino pins 2 and 3 for the SoftwareSerial instead of pins 0 and 1. Forgive me if I got it all wrong.

  • Thanks. I did think of that so during my testing, I had used other pins, such as 8 and 9 but no change.
    – wsidl
    Sep 6, 2019 at 22:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.