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
Code
int icb = 0;
SoftwareSerial ir_mod(0, 1);
void setup(){
Serial.begin(115200);
while(!Serial){}
Serial.println("Setup IR Serial");
ir_mod.begin(9600);
while(!ir_mod){}
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.