9 years, 5 months ago.

How to read an infrared signal with FRDM K64F?

I am thinking about controlling my RC car with a TV remote and a IR receiver. To my understanding, a TV remote has a different binary pattern for each button that is pushed. I would like my FRDM to receive the signal and then I would make a print statement so that the binary pattern would be read and displayed on TeraTerm. By printing the binary pattens, I would be able to know which buttons have which binary patterns and then I could create decisions according to which pattern is triggered. The problem is that I do not know how to accomplish this task if it is even possible. Would I use DigitalIn? Is there certain pins that I have to use? Is there any other tricky business that I need to consider?

2 Answers

9 years, 5 months ago.

Have a look at:

https://developer.mbed.org/users/djbottrill/code/Trinket_remote/

I've adapted an arduino program for reading IR codes, this should provide a unique code for any button on any remote control.

Accepted Answer
9 years, 5 months ago.

Have a look at: https://developer.mbed.org/cookbook/IR

Normally receiving infrared, like in that link, is done using a special chip which not only received the IR signal, but also filters it and removes the modulation.