Can't get 2 different IR receivers to work properly, is my board bad?

Hi All,

I have an Elegoo MEGA controller board. I am trying to start developing an idea that uses lasers and receivers, so I wanted to test the basics of ir transmitting and receiving with my Arduino kit. I tried both of the following links and followed them to a T and neither of them seem to work:

&

https://mschoeffler.com/2017/01/20/how-to-build-an-optical-light-barrier-with-the-arduino-the-keyes-laser-module-ky-008-and-a-laser-receiver-detector-module/

Right now I'm dealing with the second, simpler setup and it's not working so I'll try to trouble shoot using this one. As I read the output, the only way I can get the reading to change to 0 is if I disconnect the 5v jumper from the VCC pin on the IR receiver. I can disconnect both of the other jumpers with only the 5v pin connected to the vcc on the receiver and the readings continue to output 1. This same thing happens with two different IR receivers I am using. It also doesn't change anything if I hold the receiver in my closed hand to block all light: the serial monitor continues to read 1.Does this mean there is a problem with my board?

Such a project has software and hardware. So there are many things possible that can cause malfunction.

If you have one of these longe rbreadboards the longside rails for power-supply are interrupted in the middle
You will have to provide more information to find the real cause.
Post exact that sketch that you uploaded into your Arduino Mega board.
Post a hand-drawn schematic how you connected the receiver-module.
Post a high resolution picture taken from vertically above to make it easy to see what jumperwire is connected to what.

As a simple pretest. Measure the voltage between ground and Vcc.
Measure the voltage between ground and the output-pin of the receiver-module with a digital multimeter.
If you do not have one yet. a digital multimeter is a must when tinkering with microcontrollers.

Post your hardware.
Your link has LDR, not IR receiver...

This helped a lot, it helped me realize an IR receiver won't work for the laser detection. I feel like I read that it would work somewhere. I initially was trying 2 different IR receivers: one of these (Amazon.com: KOOBOOK 2Pcs Digital 38KHz Infrared IR Receiver Sensor Module for Arduino Compatible : Electronics), and the IR receiver that came with the ELEGOO Starter Kit. Once I switched to the LDR in that link it worked.

I really appreciate your help, I'm catching up here. Thank you!

I was moving to upload the pictures I took for you when I saw kmin's comment. I realized I was trying two different IR receivers. Once I actually tried an LDR it worked. Thank you for your response and help!

Except for IR laser... :wink:

It will work if the laser uses a 38kHz carrier frequency modulated by the binary data stream.

In the LDR solution the slow LDR limits the data speed.

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