Simple Arduino to Arduino IR control SOLVED - I THINK

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.

...R

Some form of Serial ?

http://www.ernstc.dk/arduino/tinycom.html

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.

http://forum.arduino.cc/index.php?topic=139907.0

Ray

Thanks Guys, but that's not what I'm looking for.

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.

...R

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.

Other ideas are welcome.

...R

Robin2,

Ken Shirriff's library was ported in this post by Nick Gammond:
http://forum.arduino.cc/index.php?topic=91488.msg687101#msg687101

So, with some required changes, Men's library will work on 328 and tiny85.

Another post is here (French)
http://tetalab.org/blog/librairie-ir-nec-pour-attiny85

mrburnette:
Robin2,

Ken Shirriff's library was ported in this post by Nick Gammond:
Help Change timer 2 to timer 0 - Programming Questions - Arduino Forum

So, with some required changes, Men's library will work on 328 and tiny85.

Another post is here (French)
http://tetalab.org/blog/librairie-ir-nec-pour-attiny85

Gammond?
Men's library?

Thanks Ray,

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.

...R

mrburnette:
Robin2,

Ken Shirriff's library was ported in this post by Nick Gammond:
Help Change timer 2 to timer 0 - Programming Questions - Arduino Forum

So, with some required changes, Men's library will work on 328 and tiny85.

Another post is here (French)
http://tetalab.org/blog/librairie-ir-nec-pour-attiny85