Hello
I need IR sensor circuit with micro Atiny , able sence up to 5Meters object ,output a relay
Thanks
I need IR sensor circuit with micro Atiny , able sence up to 5Meters object ,output a relay
Thanks
Good luck meeting this specification.able sence up to 5Meters object

If this suits your needs I can post details of the bit pattern that is acceptable to the TSOP4838 sensors and the code for an ATtiny13 to produce this pattern.Thanks,Here are the TX and RX circuits that I use. The receiver in my version has 2 IR sensors (TSOP4838) spaced about 60 mm apart so that it does not get triggered by insects breaking the beam. It needs something large enough to break both beams. I find it easier to get long range using sensors designed for remote control than photo diodes or photo transistors as the the deal better with ambient light. I also have the sensors mounted at the end of a short length of (Black on the inside to reduce reflections.) so that the sensors have quite a narrow field of view.
The receiver section can be simpified if only one beam is required. The receiver output is only from a cmos IC so you would have to add your own relay driver. (For a small relay you could use the existing LED driver.)
Transmitter schematic.
View attachment 307673
Receiver schematic.
View attachment 307674If this suits your needs I can post details of the bit pattern that is acceptable to the TSOP4838 sensors and the code for an ATtiny13 to produce this pattern.
Is this for homework or a school project ?
Les.
I will use this circuit to detect the objects on the conveyor.Here are the TX and RX circuits that I use. The receiver in my version has 2 IR sensors (TSOP4838) spaced about 60 mm apart so that it does not get triggered by insects breaking the beam. It needs something large enough to break both beams. I find it easier to get long range using sensors designed for remote control than photo diodes or photo transistors as the the deal better with ambient light. I also have the sensors mounted at the end of a short length of (Black on the inside to reduce reflections.) so that the sensors have quite a narrow field of view.
The receiver section can be simpified if only one beam is required. The receiver output is only from a cmos IC so you would have to add your own relay driver. (For a small relay you could use the existing LED driver.)
Transmitter schematic.
View attachment 307673
Receiver schematic.
View attachment 307674If this suits your needs I can post details of the bit pattern that is acceptable to the TSOP4838 sensors and the code for an ATtiny13 to produce this pattern.
Is this for homework or a school project ?
Les.