Issues Trying to Use the IR Remote

Hi, everyone, I'm relatively new to Arduino so forgive me if I'm asking a stupid question.

I'm attempting to use the IR remote along with the IR receiver (AX-HS1838). Currently, I'm trying to determine to figure out which buttons on the remote correspond to which hexadecimal code.

To do this, I'm using the following code and looking at the serial monitor. Unfortunately, the only output I receive for each button is "FFFFFFFF". I'm not sure what I'm doing wrong, and why I'm not receiving hexidecimal output code. Thanks!

First, the code must be included within "code" tags, and not as a picture. Please edit your post, remove the picture and paste your text code, then select it and click on the "code" button.

Then, when testing a new library always start with one of the available sample code. In your case, load "ReceiveDump", check the pin used for the receiver, and see if it works. Or any small tutorial like THIS.

Finally, always specify which Arduino model (UNO R3? Nano? Mini? else?), a link to the exact external component you're using (e.g. no HS1838, maybe a VS1838 or HX1838?) and how you connected it to Arduino (a full schematic is the best help for us) and to the power, and if you added something else (resistors?).

1 Like

Always show us a good schematic of your proposed circuit.
Show us a good image of your ‘actual’ wiring.
Give links to components.

1 Like

Welcome to the forum.

Indeed, it does. Each button returns FFFFFFFF in a Wokwi simulation:

This is a working example in Wokwi simulation: ir-receiver.ino - Wokwi Arduino and ESP32 Simulator

Here is a similar question on this forum: IRremote Library - Deprecated Function Call

1 Like

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