Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to IOIOLib and IOIO firmware to send infrared codes #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lanthaler
Copy link

This pull request adds the ability to send arbitrary infrared codes that are encoded in the Pronto format

There's still a small bug in ir.c which required me to hardcode the carrier frequency. As soon as I use the one that's stored in ir_buffer, I get a duty cycle that's not 50% anymore. I couldn't find why the calculated pulse-width changed.

This is not the most efficient implementation, but I think a lot of people might be interested in it nevertheless. Things that should be improved:

  • send infrared code as one "packet" by first sending the length of the infrared code and then the code at once (this should be a trivial change)
  • transmit the infrared code by using a timer interrupt called every pulse_width microseconds instead of toggling the IR-LED output in a loop

Feel free to fork this PR and improve the things I listed above.

…onto format

There's still a small bug in ir.c which required me to hardcode the carrier frequency. As soon as I use the one that's stored in ir_buffer, I get a duty cycle that's not 50% anymore. I couldn't find why the calculated pulse-width changed.

The Pronto format is documented, e.g., here: http://www.remotecentral.com/features/irdisp1.htm
@ytai ytai force-pushed the master branch 2 times, most recently from cc5f5f2 to 5f0bf44 Compare September 15, 2014 04:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant