TSOP1838 not working || No serial output

I want to decode the IR signals of my speaker's remote (Edifier S3000Pro).

I bought the Arduino UNO and TSOP1838 (2 units expecting 1 to fail) for this purpose. Using the code mentioned below, I expected an output on the serial comm, but there was no output. Both the units are not working. Please help.

Pinout of 1838: Data, Ground and Vcc (5V & 3.3V, tested with both)

Remotes tested with: a) Sony hts500rf's remote b) Edifier S3000Pro's remote c) Sony X90J's remote (only power button, since remaining buttons are WiFi based)

Video link: VID_20230920_185007.mp4 - Google Drive

Code:

#include <IRremote.hpp>

const int IR_RECEIVE_PIN = 2;

void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);
  Serial.println(F("Enabling IRin..."));
  IrReceiver.begin(IR_RECEIVE_PIN, ENABLE_LED_FEEDBACK);
}

void loop() {
  // put your main code here, to run repeatedly:
if (IrReceiver.decode()) {
  Serial.println(F("Received data...decoding..."));
      Serial.println(IrReceiver.decodedIRData.decodedRawData, HEX); // Print "old" raw data
      // USE NEW 3.x FUNCTIONS
      IrReceiver.printIRResultShort(&Serial); // Print complete received data in one line
      IrReceiver.printIRSendUsage(&Serial);   // Print the statement required to send this data
      
      IrReceiver.resume(); // Enable receiving of the next value

}
}

Images of the circuit:

In future please select a suitable category for your topic. See the sticky topics in Uncategorized - Arduino Forum.

Topic moved to a more suitable category on the forum.

Thanks for using code tags in your first post.

Correct way to connect the sensor.

The second image connections are wrongs.

Do you have the serial monitor set to 115200 baud?

Are the remotes 38KHz modulation frequency?

That’s not smart… What’s the IR sensor rated for ?

IR sensor spec sheet says 4.5V to 5.5V

Link: https://cdn.shopify.com/s/files/1/0559/1970/6265/files/sunrom-579100.pdf?v=1627305859

  1. Yes my serial monitor is set to 115200. I can see the output "Enabling IRin..." on my PC serial monitor.

  2. I'm not 100% sure if the remotes follow 38KHz modulation frequency. I expected atleast one of the remote to be on 38KHz. Also, I have an IR blaster on my phone.

Next steps:

  1. I'll try with other TSOP modules for different frequencies and update in a week.
  2. Check with 38KHz signal transmitted from my phone's IR blaster.

The pin out diagram on page 6 of spec sheet says otherwise.

Link: https://cdn.shopify.com/s/files/1/0559/1970/6265/files/sunrom-579100.pdf?v=1627305859

I'll try with your connections and update you.

P.s. both images are of the same circuit, photographed from different angles.

FYI. Just tried your code with an IR sensor (TSOP38436) on a Mega 2560 and it worked with a remote I had to hand. Attached some photos.


It should still work if the frequencies are different, but with reduced range.

Check the Dupond wires. It's not uncommon for them to fail open circuit.

Are you sure you have the right model receiver. Some have a different pinout.
Leo..

Thank you sir for confirming that the code works. I will check with different frequency receivers.

  1. I checked with different distances and angles. Didn't seem to work.

1.1 Pins are used as per spec sheet. The voltages measured with multimeter is as per spec sheet. I'll try with pin diagram of 1738 which is different

  1. The wires and breadboard are fine. I ran a simple LED lighting test and the Arduino ports + all Dupont wires worked fine.

Dear Forum Members, Thank you for taking your time to help me.

I found the solution. I needed to add a few resistor/capacitor to remove the ambient light noise.
I bought this product and it worked like a charm. Now i can decode my speaker's remote signals.

Link: https://robu.in/product/infrared-receiver-module-arduino/

VIdeo link: VID_20231010_183644.mp4 - Google Drive

Would you mind sharing just where you added what capacitor(s) and resistor(s) that solved your problem?

The product page just shows the sensor direct wired, as far as I can tell your video also shoews no additional components.

TIA

a7

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.