# IR receiver and Emitter for close distance IR beam brake counter

**URL:** <https://forum.arduino.cc/t/ir-receiver-and-emitter-for-close-distance-ir-beam-brake-counter/1116780>\
**Category:** General Guidance\
**Created:** [April 18, 2023, 6:09pm UTC](https://forum.arduino.cc/t/ir-receiver-and-emitter-for-close-distance-ir-beam-brake-counter/1116780 "2023-04-18T18:09:47Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![mirc66](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@mirc66](https://forum.arduino.cc/u/mirc66)\
**Post date:** [April 18, 2023, 6:09pm UTC](https://forum.arduino.cc/t/ir-receiver-and-emitter-for-close-distance-ir-beam-brake-counter/1116780/1 "2023-04-18T18:09:47Z")

</div>

I am trying to develop an counter using the IR break beam method the distance between the LEDs will be 5mm. Most of the prebuilt devices for arduino have much bigger housings than the space i have available. I can fit some of the 3mm LED's that are part of something like an opto switch but their housings are too big. I can put whatever electronics are needed to control the LEDS on the outside of my box with tha arduino.

Does anyone have any recommendations. I am not knowledgeable enough on what components to get to make this work or even if at such close proximity these type of devices can work

---

<div class="post-metadata">

**Author:** ![LarryD](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/larryd/32/215550_2.png) [@LarryD](https://forum.arduino.cc/u/LarryD)\
**Post date:** [April 18, 2023, 6:37pm UTC](https://forum.arduino.cc/t/ir-receiver-and-emitter-for-close-distance-ir-beam-brake-counter/1116780/2 "2023-04-18T18:37:12Z")

</div>

> [@mirc66](#):
>
> I am trying to develop an counter using the IR break beam method

Please expand on this.

---

<div class="post-metadata">

**Author:** ![jim-p](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/jim-p/32/922840_2.png) [@jim-p](https://forum.arduino.cc/u/jim-p)\
**Post date:** [April 18, 2023, 6:43pm UTC](https://forum.arduino.cc/t/ir-receiver-and-emitter-for-close-distance-ir-beam-brake-counter/1116780/3 "2023-04-18T18:43:54Z")

</div>

Like this?

> **[LTH-301-07 | Digi-Key Electronics](https://www.digikey.com/en/products/detail/liteon/LTH-301-07/3198345)**
>
> Order today, ships today. LTH-301-07 – Optical Sensor Through-Beam 0.200" (5.08mm) Transistor Module, PC Pins, Slot Type from Lite-On Inc.. Pricing and Availability on millions of electronic components from Digi-Key Electronics.

---

<div class="post-metadata">

**Author:** ![bluejets](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/bluejets/32/1013044_2.png) [@bluejets](https://forum.arduino.cc/u/bluejets)\
**Post date:** [April 19, 2023, 1:08am UTC](https://forum.arduino.cc/t/ir-receiver-and-emitter-for-close-distance-ir-beam-brake-counter/1116780/4 "2023-04-19T01:08:55Z")

</div>

> [@mirc66](#):
>
> Does anyone have any recommendations.

Perhaps think "hall effect switch " such as Alegro 3144....available as an el-cheapo module ky-003 online, cheap as.  
Naturally, you don't have to use the complete module, just a pullup resistor (or an LED and resistor to the Vcc line) and a small magnet.

---

<div class="post-metadata">

**Author:** ![anon85221860](https://avatars.discourse-cdn.com/v4/letter/a/59ef9b/32.png) [@anon85221860](https://forum.arduino.cc/u/anon85221860)\
**Post date:** [April 19, 2023, 1:33am UTC](https://forum.arduino.cc/t/ir-receiver-and-emitter-for-close-distance-ir-beam-brake-counter/1116780/5 "2023-04-19T01:33:16Z")

</div>

> [@mirc66](#):
>
> I can fit some of the 3mm LED's that are part of something like an opto switch but their housings are too big.

How about noting the particulars of the space that you have available?

---

<div class="post-metadata">

**Author:** ![TomGeorge](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/tomgeorge/32/215261_2.png) [@TomGeorge](https://forum.arduino.cc/u/TomGeorge)\
**Post date:** [April 19, 2023, 2:57am UTC](https://forum.arduino.cc/t/ir-receiver-and-emitter-for-close-distance-ir-beam-brake-counter/1116780/6 "2023-04-19T02:57:19Z")

</div>

Hi, @mirc66  
Have you looked at photo interruptors.  
You can cut them down the gap if they need to be separated.  
You can also get very small units that may do the job.

 ![int2](https://europe1.discourse-cdn.com/arduino/original/4X/8/3/d/83d9fad652076dfe3f67c3d90a79fb17251ad769.jpeg)

Tom... 😃 👍 ☕ 🇦🇺

---

<div class="post-metadata">

**Author:** ![mirc66](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@mirc66](https://forum.arduino.cc/u/mirc66)\
**Post date:** [April 19, 2023, 2:55pm UTC](https://forum.arduino.cc/t/ir-receiver-and-emitter-for-close-distance-ir-beam-brake-counter/1116780/7 "2023-04-19T14:55:47Z")

</div>

thanks everyone... yeah i have looked at photo interruptors this is for an out of the normal insect counter the slot the insectcs go through is 4 mmx7mm and i has to be installed in a location that does not allow a lot of of space. I had tried with photo interruptor opb804 which have the 5mm opening i need but the rest of the housing is much bigger than i can accomodate and it is no longer available. Hence i wanted to see if i could find the combination of 3mm IR emitter and receiver .

---

<div class="post-metadata">

**Author:** ![mirc66](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@mirc66](https://forum.arduino.cc/u/mirc66)\
**Post date:** [April 19, 2023, 4:52pm UTC](https://forum.arduino.cc/t/ir-receiver-and-emitter-for-close-distance-ir-beam-brake-counter/1116780/8 "2023-04-19T16:52:57Z")

</div>

Sizing looks great. Pardon the question but i am not very versed on these devices so i find the datasheet a bit confusing. There are various V and I which are the ones i need to make sure match my arduino power of 5V and if i power my arduino with 1Amp power supply and require 4 of these for my application.

For example the LTH-301-07 datasheet states:  
has Vf=1.6V ;Vceo=30V( which would larger than the arduino); Veco=5V, If=20mA  
see attached data sheet can someone summarize which of these various voltages and currents i need to match the arduino V and current.

thanks

 ![optSwitchDatasheet](https://europe1.discourse-cdn.com/arduino/original/4X/7/f/6/7f6c9ae342d80749487cdbc47bc2e0983c073952.jpeg)

---

<div class="post-metadata">

**Author:** ![jim-p](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/jim-p/32/922840_2.png) [@jim-p](https://forum.arduino.cc/u/jim-p)\
**Post date:** [April 19, 2023, 5:11pm UTC](https://forum.arduino.cc/t/ir-receiver-and-emitter-for-close-distance-ir-beam-brake-counter/1116780/9 "2023-04-19T17:11:00Z")

</div>

At the end of the data sheet there is a little diagram showing how to connect it.

Ro = 150 ohms  
RL = 4.7K ohms  
Vcc = 5V from the UNO 5V output.  
INPUT = 5V from the UNO 5V output

OUTPUT goes to your UNO input pin, D7 for example.

---

<div class="post-metadata">

**Author:** ![mirc66](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@mirc66](https://forum.arduino.cc/u/mirc66)\
**Post date:** [April 19, 2023, 5:39pm UTC](https://forum.arduino.cc/t/ir-receiver-and-emitter-for-close-distance-ir-beam-brake-counter/1116780/10 "2023-04-19T17:39:20Z")

</div>

I see what you are saying . But im trying to understand which of the general parameters in the datasheet translate to Vcc as not all companies give such a diagram.

So for a generic opto switch i was trying to figure which parameters i need to ck before i purchase like i have the below item in house . Similar to the liteon it has a V(br)ceo=30V and V(br)eco=5V and If=20mA  
so do I allways check the V9br)eco=5v and if the the it will run ok in arduino and if i have If=20 mA would mean i can run 4 on a 1 amp power supply. I am talking in generals what do I look in the datasheet to confirm it would work with arduino

 ![optSwitchDatasheet](https://europe1.discourse-cdn.com/arduino/original/4X/0/6/2/0622771d890c14ab38d916b12a26e225bf2937dd.jpeg)

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [October 16, 2023, 5:39pm UTC](https://forum.arduino.cc/t/ir-receiver-and-emitter-for-close-distance-ir-beam-brake-counter/1116780/11 "2023-10-16T17:39:25Z")

</div>

Closed on October 16, 2023, 5:39pm UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
