Olimex Support Forum

DUINO => ARDUINO => Topic started by: erkobg on January 15, 2016, 09:50:58 AM

Title: How to connect and example code for OLIMEXINO-32U4 to MOD-IRDA+
Post by: erkobg on January 15, 2016, 09:50:58 AM
Hello,
I would like to use MOD-IRDA+
https://www.olimex.com/Products/Modules/Interface/MOD-IRDA+/

from OLIMEXINO-32U4   
https://www.olimex.com/Products/Duino/AVR/OLIMEXINO-32U4/open-source-hardware

There is very handy connector  UEXT but the problem is that I am not able to detect or do anything- even with the examples listed in the products page.

Can you share what is the best approach and examples if you have any.
Title: Re: How to connect and example code for OLIMEXINO-32U4 to MOD-IRDA+
Post by: LubOlimex on January 26, 2016, 10:59:43 AM
Hey,

The only special thing about OLIMEXINO-32U4 is that in your code you need to allow/enable the powering on the UEXT connector - else there will be no 3.3V on pin #1 of the UEXT connector. How to enable the 3.3V on the UEXT? Use the following code:

// UEXT power enable --> PORTB4 --> D8
pinMode(8, OUTPUT);
digitalWrite(8, LOW);


Then you establish an I2C connection to MOD-IRDA+. There should be even official Arduino I2C code examples.

Note that the firmware of MOD-IRDA+ supports only two protocols at the moment: Philips RC5 protocol and SONY SIRC protocol.

Best regards,
Lub/OLIMEX
Title: Re: How to connect and example code for OLIMEXINO-32U4 to MOD-IRDA+
Post by: erkobg on January 26, 2016, 11:12:37 AM
Hello and thanks a lot LubOlimex :)
I will check also Arduino examples.
I was able easily to test IRDA+ with A20 :)


About the firmware - do you know about any plans to support more protocols?


Regards!
Title: Re: How to connect and example code for OLIMEXINO-32U4 to MOD-IRDA+
Post by: LubOlimex on January 26, 2016, 11:29:45 AM
Yes, we have plans to improve it. It had been in our TODO list for a while, but something more urgent always pops up.

Best regards,
Lub/OLIMEX
Title: Re: How to connect and example code for OLIMEXINO-32U4 to MOD-IRDA+
Post by: erkobg on January 26, 2016, 11:34:41 AM
 :) 8)
I'm looking forward to see it ready!