I have an idea for a project in which a Uno transmits IR signals that are received by several Attinys. Each Attiny will respond to its own code and when it receives the code it will briefly switch on a relay.
Does anyone know if there is an existing library that can be used for the transmission and reception? The stuff I have been able to find is all related to receiving or transmitting from/to TVs and the like which is far more complex than what I need.
It will be great if I don't have to invent code myself.
I have used the ATtiny85 to decode "Sony" IR from $1 store universal remotes with great success. I use the module to control setting a clock and also in the set-up of the time/date for another project.
My plan is that the Uno will generate and transmit a suitable IR code that will be received and decoded by the Attiny which will be battery powered and not connected to anything.
As far as possible I want to minimize the parts on the Attiny to keep the total size to a minimum so I'm hoping for a photodiode (or phototransistor), a transistor (if the relay current exceeds 40ma) and a couple of resistors in addition to the battery which will almost certainly be a small 3.6v LiPo.
The Uno will probably be told when to send codes by a PC program, and it won't be very frequent - maybe only once every few minutes so the Attinys will be asleep most of the time.
I understand the general idea for generating an IR signal, I'm just hoping there may be a library to save me some work.
I found this Topic http://forum.arduino.cc/index.php/topic,10555.0.html which looks like it will meet my needs although it is a bit different from what I had originally in mind, and may result in a greater power consumption by the Attinys. Also I'm not sure how well it will cope with omni-directional detection.
As I understand it Ken Shirriff's library is intended for use with TV remotes and, as I said earlier, that's not what I want.
The arrangements in the link I referred to in my previous post seem to facilitate serial comms with IR without any need for a library other than Software Serial.