how to control the range of a IR signal

Thread Starter

bug13

Joined Feb 13, 2012
2,002
Mornings guys (it's early morning here), thanks all the discussion, I think I will settle with adjusting the current of the IR led. I did some test, it seems to work for me.

But I will answer all the questions


... and the bit you haven‘t explained is the reason for the ID.
... Will they relievers move from room to room? Do the devices connect in some other way to the world?
... But I suspect you want them to be able to change at any time with no intervention, is that correct?
- The unique ID is for identifying the room.
- Yes basically it's a tag a person will carry, and the tag will have RF capability to send the unique room ID (and other data) back to a computer
- Yes, it need to be all automatic

But exactly what device are you trying to control? Is it the IR transmitter or the IR receiver?
If you want to limit the distance of a transmitted IR signal, just adjust the current going to the IR LED. NO ? ? ?
- I am trying to control the IR transmitter (IR LED). I can control the IR receiver too, but I properly just want to stick with an off the self IR receiver.
- Yes, I think I will just limit the current going to the IR LED. (Wasn't obviously to me when I posted it yesterday, but it's obvious to me that could be the answer for my need. That's why I like this forum, good health discussion:))

I am still not getting the problem. If you want the devices in one room to respond only to the transmitter in that room, why not set the receivers to accept commands only prefaced by the unique ID of the transmitter?
Sorry, I didn't explain my application good enough. The devices (tags) will move from room to room, so I can't just program the devices to accept just one ID.

By the way, you might want to consider using ultrasonic signals instead. It has become a more common way of letting devices know about what is in the room.
Keen to know more about ultrasonic signal, but I think ultrasonic signals to penetrate through a wall to the other room?

He's said he wanted the range under software control.
@Yaakov I recall that. However, I got the impression that was one possible solution. Since I'm not good with software I started considering other approaches using hard wire and logic.
@bug13 are we limited to software solutions only? If so I'll back out and let those who know software reply.
Software and electronic are prefer (as these are what I know better), but I am open to mechanical solution as well, assuming I can understand it. (I am not very good at mechanical stuff)

I'm not sure if this will suit your needs, but as mentioned above you can adjust the strength of the IR output by changing the current to the IR LED's. Do it simply with resistors and a selector to select which resistor is used...
I think that's the answer I am looking for.

I think he wanted a physical mechanism that could be managed in software. Hence, his attempts at PWM or drive for the LED.
Yes that is also correct.

Read post #7. That is not at all what he is asking for.
Communication is not something I am good at (I do try to improve), I do believe what I wrote earlier was exactly what I think I need. But usually after a few questions and discussion, I realized that what I was saying wasn't what I really want to convert. And questions from other members and/or discussion do help me to convert my intend better. It's like an onion, your questions and/or discussion help peel off the outer layers and expose the internal stuff.

After a little more thought, I think I understand what he is trying to do.
There are portable devices carried around in the building. He wants them to know what room they are on by receiving a unique code from a transmitter in each room. If the doors are open, he does not want the signal to leak into another room and confuse the devices in that room.

OP - is that correct?
Yessss!!

Seems to me that the OP wants to have IR light stop at an open door.

IR light is much the same thing as visible light, just not visible to humans.

So by analogy, how would you stop room light at the door, such that the light does not leak into the corridor. No obvious solution to this problem that I can see.

Not sure if this helps, but maybe gives a different perspective on the problem.

Clarification from OP might save a whole lot of guesswork. Ultimate goal seems to be a secret.
Yes I think your different perspective helps. Again properly I didn't explain my intend good enough. I really should have said I don't want the valid IR signal (signal that can be decoded) stop at/before an open door. If you think of it as visible light, the bright bit is the valid IR signal, and the dim bit is still the IR signal but not valid (can't be decoded).

Hospitals have this sort of sensor, they know where their nurses are at all hours, every minute. So if they neglect to check in on a critical patient and something happens to that patient - the hospital knows who did not go there. Or if someone DID visit and it can be proved that a patient's harm was not caused by neglect - - -.
Yes it's something similar, but for different application. a person with a tag enter the room, the tag pick up the unique ID, the ID along with other data send back to a computer over RF. Depending of the type of tags (or time of the day), different action will be taken. It's for automation.

In that case, though, it is reversed, The nurses device has the unique ID.
Yes, we thought of that as well, but if the ID is with the tag/device, I need to control the IR signal strength on the tag/device, and the tags/devices are mobile devices, I will need to change the IR signal strength all the time. While if I put the unique ID on the fixed device (which I should have explained it better to start with), and I can adjust the the IR signal strength at setup only.

1) TS needs to think of visible light instead of IR. Imagine a light bulb or flashlight (torch if you are Brit).
You can control range by adjusting current, transmission filters, beam angle/direction, and/or collimation. None of those will provide selectivity on a reliable and consistent basis.
2) LiFi is being used which will communicate with multiple devices using light in the visible, UV, and/or IR spectrum.
Selectivity is implemented in software by assigning unique ID codes to each device.
Will look up LiFi


No matter what he is trying to do, the answer to the TS’s question is that you can control the strength of the signal by controlling the current to the LED. The range of the signal depends on many other things, including surfaces and objects that reflect the IR.
Got it!

Control the current through the LED, not the voltage applied to it.
Thanks for correcting me, got it now!:)
 

jpanhalt

Joined Jan 18, 2008
11,087
@bug13
Re: Software control of LED current. There are several chips that can do that digitally from an MCU. What is the maximum current of your IR emitter? Or, maybe you already have found one.
 

Thread Starter

bug13

Joined Feb 13, 2012
2,002
@bug13
Re: Software control of LED current. There are several chips that can do that digitally from an MCU. What is the maximum current of your IR emitter? Or, maybe you already have found one.
Haven't get to that part yet, most likely need to try a few different LEDs before settle on the right one. But I will most likely using using 2-3 transistors paired with 2-3 different resistors values to form 4 - 8 steps different current settings to make it simple, as suggested by other members.
 

Ya’akov

Joined Jan 27, 2019
10,372
- The unique ID is for identifying the room.
- Yes basically it's a tag a person will carry, and the tag will have RF capability to send the unique room ID (and other data) back to a computer
- Yes, it need to be all automatic
So... here's a suggestion. If tag sees a new room ID, it could ignore it for a timeout until it is considered valid. That might just be enough to deal with the spill you might see.

You could also have it "vote", based on the number of times in an interval it sees a particular ID,

One other strategy is to pair signals in each room in such a way that if the tag sees one ID, it won't consider it valid unless it also sees the other within an interval.

Possibly you could also send the signal serially at various strengths and only accept it as valid if both a strong and weak signal are received. You could include the power in the ID.

I don't think attempting to manage the propagation is going to be a successful strategy, it's very ambiguous and will depend on two many external factors not in your control.
 

Ya’akov

Joined Jan 27, 2019
10,372
Keen to know more about ultrasonic signal, but I think ultrasonic signals to penetrate through a wall to the other room?
Actually, it is just because they don't propagate well from room to room they are used. See, for example, Cisco's teleconferencing gear that let's there smartphone app discover the equipment through ultrasonics.

https://en.wikipedia.org/wiki/Ultrasound_Identification is an example.
 

Thread Starter

bug13

Joined Feb 13, 2012
2,002
So... here's a suggestion. If tag sees a new room ID, it could ignore it for a timeout until it is considered valid. That might just be enough to deal with the spill you might see.
You could also have it "vote", based on the number of times in an interval it sees a particular ID,
One other strategy is to pair signals in each room in such a way that if the tag sees one ID, it won't consider it valid unless it also sees the other within an interval.
Possibly you could also send the signal serially at various strengths and only accept it as valid if both a strong and weak signal are received. You could include the power in the ID.
I don't think attempting to manage the propagation is going to be a successful strategy, it's very ambiguous and will depend on two many external factors not in your control.
I think all these are very good suggestions, I will try them all out and see how well they work for me.

Actually, it is just because they don't propagate well from room to room they are used. See, for example, Cisco's teleconferencing gear that let's there smartphone app discover the equipment through ultrasonics.

https://en.wikipedia.org/wiki/Ultrasound_Identification is an example.
I am more comfortable working with IR for now, I will keep this in mind if IR didn't work out for us.
 

Sensacell

Joined Jun 19, 2012
3,789
You can use a DAC to dive a simple one-transistor current source, providing a software controllable LED current.
The IR data signal should gate the current flow through the LED, providing the modulation.
 

Thread Starter

bug13

Joined Feb 13, 2012
2,002
You can use a DAC to dive a simple one-transistor current source, providing a software controllable LED current.
The IR data signal should gate the current flow through the LED, providing the modulation.
Sounds like a good idea, will do that if my MCU has a built in DAC, thanks for the input!
 
Don't try to limit the range of the LED. You'll just make the detection more unreliable where you WANT to receive it.

You won't limit the range of the light. Give up on this.

I like @Yaakov 's approach of receiving multiple rooms but have the server look at the predominance of a certain room over a certain period of time. In fact, with information like this, you could plot the personnel's navigation among rooms and halls by looking at room ID "density" over time.

Much better than compromising your signal in a losing battle with light. Light doesn't go where you want it to. It goes everywhere it can. Take advantage of it!
 

MisterBill2

Joined Jan 23, 2018
28,689
It certainly seems like the actual purpose of the IR beams in the area is not revealed at all, and so the whole effort is sort of like creating an actual light saber in the movies, where the beam only goes so far. There is no way to do that. Ned option is to add a very sharp wavelength filter to all of the many devices, such that each realm responds only to its specific wavelength. Edmund Scientific sells such filters, but they are not cheap.
Another option would be to paint the room with a paint that does not reflect any IR.
 
Top