IR receiver configuration

Hi, 

I want to use a TSOP IR receiver on a custom board for sending different commands to my device through a remote controller. for example, if I use a Samsung TV controller, I can do the different tasks by pushing every key on the controller if I can decode every key individually on my device. To do so, I need to analyze 32 bits of data that are sent to the IR receiver to understand which key is pushed. one way is to connect the IR signal to a PWM input, but as much as I understand nRF52832 doesn't have such application. Another way is to connect the signal to a GPIO as an external interrupt and measure the pulse width of these 32 bits to find the data. to elaborate on this you can see what I am talking about in this link. Can you help me to do this thing in the simplest way? this configuration is part of a bigger program and I need it to be as simple as possible and low current consumption. Is there any proper and usable library for IR receivers for Nordic MCUs like Arduino or STMs?

  • There are different ways this can be solved, so I suggest you continue to look for what others have done, and follow the one you are most comfortable with. Personally I would connect a IR receiver diode to a GPIO of the nRF52. Then typically the receiver diode will output logic high when there is PWM signal present and logic low when there is no PWM present. Then you only need to measure the timing between high and low transnition to know when the PWM is active and not. You can then measure the input using an internal timer to receive and decode the signal. The reason I suggest this way is because you avoid measuring the ~38kHz PWM signal, you only measure when the PWM is off and on.

    Best regards,
    Kenneth

Related