cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 Infrared receiver / transmitter

cradoumis
Associate II
Posted on July 06, 2016 at 23:15

I am looking to implement IR into a project and I'm wondering if anyone has any examples I could work from. I would prefer the IR receiver / transmitter be small and surface moutable, not through hole.

Essentially I would like to send random bits / text from one device to another so each device would need to be actively listening for requests. I'm not really sure where to start. I'm looking for both hardware and coding examples if anyone has them.

Thank you in advance.

#infrared-stm32f4
4 REPLIES 4
Posted on July 07, 2016 at 00:34

https://www.futureelectronics.com/en/Technologies/Product.aspx?ProductID=TFDU4101TT3VISHAY1066206&IM=0

STM32F10x_StdPeriph_Lib_V3.5.0\Project\STM32F10x_StdPeriph_Examples\USART\IrDA\Transmit

The F2/F4 have IrDA mode also, and several of the STM32 EVAL boards have IR on them.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
cradoumis
Associate II
Posted on July 07, 2016 at 04:13

Thank you, that is what I was looking for.

So to get this connected on a project, all I need is the transceiver?

Looking at the schematic of one of the Eval boards I see I can connect it to PA2 (USART2_TX) and PA3 (USART2_RX)

What resistor values and capacitors are needed? 

cradoumis
Associate II
Posted on July 07, 2016 at 23:25

Looking at this schematic

http://pasteboard.co/SdaO6g5b.png

I can bring the TXD ping to PA2

RXD to PA3

Leave pin 2 (Anode) un connected?

mk299
Associate III
Posted on July 08, 2016 at 22:22

If you're searching for a multi-protocol IR remote receiver/ transmitter you should have a look

https://www.mikrocontroller.net/articles/IRMP_-_english

and

https://www.mikrocontroller.net/articles/IRSND_-_english

.

There is an example project for STM32F1 and STM32L1

https://github.com/pikim/HIDIRT-STM32x1xx

.