IR proximity sensor

LesJones

Joined Jan 8, 2017
4,511
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.
38 Khx TX.png
Receiver schematic.
38Khz_RX.pngIf 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.
 
Last edited:

Thread Starter

alireza abaie

Joined May 13, 2023
3
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.
Thanks,
I will test this great circuit,
Thanks
 

Thread Starter

alireza abaie

Joined May 13, 2023
3
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.
Thanks for more details
 
Top