IR comms between two arduinos

Hi all

I'm working on a remote switching project. I got it working with push-buttons (i.e. one push-button activates a certain output pin that drives a relay and the other push-button for another pin). I need to implement an IR transmitter and receiver (38kHz) that will operate these two pins (i.e. replace the push-buttons). I have tried some stuff from GitHub and the likes, but it is all much too complicated for me, i'm really no good with programming. Can anyone please provide me with a simple code sample or tutorial that can help me with this? Thanx a lot

Hi,

Is there any reason you need the iR 38kHz sensors for this? Google will find you examples where iR LEDs are pulsed at lower frequencies to implement a simple optical serial link to a phototransistor at the receiving end. Like this one.

Might be a simpler option, Geoff

I think using 38KHz is the simpler option. The receiving electronics comes ready-made in a chip, and the use of 38KHz makes the system insensitive to interference from room lighting etc.

dc42:
I think using 38KHz is the simpler option. The receiving electronics comes ready-made in a chip, and the use of 38KHz makes the system insensitive to interference from room lighting etc.

Sounds reasonable. I'd not tried the other option either, having plenty of the 38KHz chippies on hand I've so far always used that way.

I need to do a project for my vac work, and that is the components given to me in a kit. But i'll check out your link, maybe i could suggest we utilize that instead. Thanx a lot