5 ms·
Library to send and receive using infra-red signals on an Arduino
- qmarchi 5y agoNot going to lie, I thought that this was a Library (the public facility) sending/receiving books via infrared. I guess "Phrasing" is relevant here?
- thecatster 5y agoI honestly have a hard time seeing how you could confuse that, but maybe I'm biased because I've seen this terminology forever.
- andai 5y agoWhen I was in high school, my school had really fast internet, and my house had really slow internet, so I wanted to build a relay of infrared lasers between my house and school. I haven't figured out how to do that yet, though I am a few steps closer. Now I have plenty fast 4G everywhere I go. I guess the moral of the story is if enough people want the same problem solved, someone else will probably do the work.
- mdip 5y agoYou're not alone, I did the exact same thing. I clicked the link trying to figure out what IR was being used for, exactly, at a (public) library. :) I think a better way to word it would be "Library for sending ..." but none-the-less, I wasn't disappointed on clicking it. I've been thinking about a few things I wanted to do with my home theater setup to be able to hide the components[0] which also allows me to control it via WiFi, as well as its existing remote which I'd further like to alter the commands of -- map one of the 300 buttons so that it triggers something different/sends a different command to the devices than what it received from the remote. I had something setup that basically did each of these things, in the past, when I had a whole HTPC in the living room. That's gone in favor of Roku/Plex/Xbox (for less noise than my HTPC was putting out, or no noise in the case of Roku) and I've [0] That's trivial to do on the cheap with off-the-shelf things.
- alar44 5y agoSeems like an odd convention they are using. A pile of header files rather than using polymorphism and creating a class to handle everything. Lots of if else's. Might have to jump in a little further to see if there's a good reason for this.
- deleted 5y ago[deleted]
- altcognito 5y agoIs it more me with efficient without classes? Because I think that’s a primary concern.
- acidburnNSA 5y agoInteresting. I control all sorts of things around my house using a raspberry pi with thr Linux version of this capability, LIRC. Heat pump, stereo, TV. Might be more fun to try on arduino. I wonder if it works with esp8266. https://lirc.org/ https://lirc.org/
- analog31 5y agoI took a very quick look at the code, and here's what I gleaned. It says that the CPU frequency must be more than 4 MHz. And it looks like it's coded to run on machines with different clock rates. All in all it seems like a pretty good sign that the code is not locked to a specific CPU. Next thing you can do is to choose an esp8266 target within the Arduino environment and see if it compiles. Those two things would be enough to satisfy me that it's worth actually giving it a whirl. More expensive hardware would demand more extensive research.
- deleted 5y ago[deleted]
- pfyra 5y agoFound a link to this library in the documentation. For esp32/8266 it says. Haven't tried it myself. https://github.com/crankyoldgit/IRremoteESP8266 https://github.com/crankyoldgit/IRremoteESP8266
- Stevvo 5y agoIt's a shame most handset makers stopped putting IR blasters on phones.