Hi. I recently wanted to do a project using a remote control to control an Arduino. Using the example code IRreceiveDump from IRremote library, I can get information from my remote for example:
Protocol=SAMSUNG Address=0x2D2D Command=0x32 Raw-Data=0xCD322D2D (32 bits) LSB first
that I found online to check for my remote code, the serial monitor always shows 0 no matter what key I press. I did make sure that the baud rate is correct and the sensor is connected properly. What could be the problem? I can't figure it out. I'm not very experienced with Arduino. I will attach the serial monitor output below.
This should be fun. All modern infrared remote control designs use digital modulation. Two basic digital modulation technologies are Amplitude Shift Keying (ASK) and Frequency Shift Keying (FSK). ASK represents logic 1 and 0 by changing the carrier amplitude, and FSK represents these logic levels using two different carrier frequencies. A number of modulation techniques have been proposed and thoroughly analysed in literature for optical wireless communication systems. Each modulation technique has its unique attractive features as well as its challenges. Some are very simple to implement and bandwidth efficient like the on-off keying (OOK). Pulse interval modulation (PIM) techniques are reputed for their inherent synchronisation pulse, subcarrier modulation offers increased throughput, resilience to the inter-symbol interference (ISI) and immunity against the fluorescent-light noise near DC, while pulse position modulation (PPM) provides the unparalleled power efficiency in line of sight (LOS) links but the performance degrades severely in dispersed communication channel. I would suggest you post your code and a circuit schematic. Also check if the transmitter and receiver are compatible with each other. If you point the IR transmitter at your cell phone camera it should light up when something is being sent.
I tried remote controls with NEC and RC6 protocols but it still shows 0 at the serial monitor. But I've managed to finally make it work by selecting library version 2.8.0 instead of the latest 2.8.1 version from the library manager. Could be a software bug for the new library? Thank you very much for your reply.