IR remote/Where it stops working/10. How far, and how wide
Where it stops working · 10 of 11

How far, and how wide

The receiver's datasheet says 26 metres, measured in the dark with an LED driven at twice this sender's current. What decides your range is the rail the sender runs on, which way the two boards face, and how much daylight is in the room.

Where the 26 metres comes from

Vishay quotes a transmission distance of 26 m for the TSOP18138. It is a real measurement, taken in the dark with a TSAL6200 LED at 50 mA pointed straight at it. The TK16's LED runs at 24 mA from 5 V and 13 mA from 3.3 V, and your room is not dark. The datasheet number is a ceiling, not your range.

Two beams, and the narrow one is the sender

How far, and how wide
±20° out, ±45° in
How far off axis the two boards are
Inside both beams
yes
Range vs a dark room
82 %
Narrower half
the sender
Both boards are looking at each other. What is left is distance and daylight. Daylight does not switch the receiver off, it makes it deaf. It ignores steady light but needs about 1.5× the signal on top of this much, which costs 18 per cent of the range. Shade beats anything you can change in code.

The receiver's half angle is ±45°: 45° off straight on, it reaches half as far. The sender's beam is 40° in all, ±20°. So the sender is the half you aim, though intuition says the opposite because the receiver has the chip.

Both boards look out of their parts side, the receiver through its shield's window and the LED through its lens. Stand them face to face, parts side to parts side. At four metres, ±20° covers a patch about three metres across.

What daylight costs

The receiver ignores steady light, but it cannot pick a small signal out of a very large background. Vishay plots the signal it needs against the ambient infrared: flat in a dark room, rising steeply past a few watts per square metre. In direct sun it needs roughly thirty times as much, which is most of your range gone.

Nothing in software changes that. Shade the receiver, turn it away from the window, or put it behind a dark infrared-passing window, the kind on a television's front panel.

What buys you range

In the order they are worth it:

  1. The sender's VCC on 5 V: about a third more distance, one wire.
  2. Aim: a couple of degrees of tilt on a breadboard is a lot at the far end.
  3. Shade on the receiver: worth more than everything else by a window.
  4. A pale ceiling: bounced infrared is how remotes work when nobody aims.
  5. Not too close: under about 20 cm the receiver is swamped and decoding fails on a perfect link.

A number to design to

For a project rather than a measurement: two to five metres indoors, within about 20° of straight on, with the sender on 5 V. That is a working figure from the arithmetic above, not a measurement of this kit; your room decides the rest.

One more line of the datasheet is worth knowing. Vishay's table of suitable codes is written for short bursts and points codes with bursts longer than ten carrier cycles, NEC among them, to a sister family, the TSOP182. This part's setting is the least strict of the three Vishay offers and it decodes NEC, as the remote in the box shows; if range in an electrically noisy room ever matters more than anything, that sister part is the one Vishay built for it.

When it does not work

It works across a desk and not across a room

Move the sender's VCC from 3V3 to 5V first: about a third more distance for one wire. Then aim: the sender's beam is only ±20°, so at four metres it covers a patch about three metres across, and it is easy to be outside it.

It stops working in the afternoon

Sunlight. The receiver ignores steady light but needs a much stronger signal on top of a bright infrared background, roughly thirty times as strong in direct sun. Move the receiver into shade before changing anything in software.

It works pointed at a wall but not at the receiver

Infrared bounces off pale matt surfaces, and a bounce off a nearby wall can put more light on the receiver than a direct shot from outside the sender's beam. It means the aim is off, not that the direct path is broken.

Range dropped when I put it in a box

Clear plastic passes 940 nm well; tinted, painted or textured plastic may not, and nor does glass with a solar film. The near-black windows on consumer remotes are chosen to pass infrared and block visible light, which is why they look opaque and work.

Can two receivers listen at once?

Yes: light does not care how many things are listening. Two senders at once is different: they share the carrier, their frames overlap and neither decodes. Stagger them.

Where this goes next

The loop-back test, and which end of the link to blame.

When nothing decodes

Edit this page — content/books/ir-receiver/how-far-and-how-wide.mdx

Community

Questions about this product

See what other owners have asked, and read their solutions.

This page covers several products. Choose yours to see the right discussions.

Discuss this article

Ask about this page. The answer stays here, on the page it belongs to, for whoever hits the same wall next.

Browse Modules and blocks on the forum