Author Topic: Arduino IRRemote Library  (Read 4496 times)

scottch

  • RFduino Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Arduino IRRemote Library
« on: February 16, 2014, 03:40:19 PM »
So I was hoping to convert a little project I've got going from using an arduino mini pro to use the rfduino.  The project relies pretty heavily on the IRRemote library by Ken Shiffiff
(https://github.com/shirriff/Arduino-IRremote)
which is not supported on the RFDuino (at least as far as I can tell). 

Has anyone had any luck, or experience converting existing libraries? 

jfp

  • RFduino Newbie
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Arduino IRRemote Library
« Reply #1 on: February 24, 2014, 02:32:15 AM »
Initial problem is that  avr/interrupt.h is missing.
Directory \hardware\arduino\RFduino\cores\arduino\avr only contains pgmspace.h


jfp

  • RFduino Newbie
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Arduino IRRemote Library
« Reply #2 on: February 24, 2014, 11:01:13 PM »
I have worked on the port.

The IR input part is, now, working.

Looking at the IR output.

JF

matsk

  • RFduino Jr. Member
  • **
  • Posts: 59
  • Karma: +1/-0
    • View Profile
    • Tinnio IT Konsulting
Re: Arduino IRRemote Library
« Reply #3 on: February 24, 2014, 11:10:28 PM »
Nice work!

But where have you the stored the IR library? github?

/Mats

jfp

  • RFduino Newbie
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Arduino IRRemote Library
« Reply #4 on: February 27, 2014, 01:13:24 AM »
I have done the initial port.

I will publish it, later. Probably bitbucket instead of github.

Meanwhile I have attach the new version of the library, which still (should...) continue to work on others platforms.

Enjoy,

JF

Update 1:  fix a misplaced #ifdef (no effect for RFduino)
Update 2: use TIMER1 instead of TIMER2 I have found, during my test, that TIMER2 is used by Gazell library.
« Last Edit: March 03, 2014, 01:59:24 AM by jfp »

gaborpaller

  • RFduino Newbie
  • *
  • Posts: 3
  • Karma: +1/-0
    • View Profile
Re: Arduino IRRemote Library
« Reply #5 on: December 31, 2015, 03:30:28 AM »
I have written a series of blog posts about infrared receivers on RFDuino.
Read them in this order:
http://mylifewithandroid.blogspot.com/2015/12/controlling-android-device-with.html
http://mylifewithandroid.blogspot.com/2015/12/improved-hardware-for-infrared-to.html
http://mylifewithandroid.blogspot.com/2015/12/infrared-to-android-gateway.html

There's a bunch of interesting observations, particularly the effect of BLE soft stack on time-critical routines.

 

anything