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
- 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
- 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
)

But I will answer all the questions
- The unique ID is for identifying the room.... 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?
- 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
- 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.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 ? ? ?
- 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
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.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?
Keen to know more about ultrasonic signal, but I think ultrasonic signals to penetrate through a wall to the other room?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.
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.
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)@bug13 are we limited to software solutions only? If so I'll back out and let those who know software reply.
I think that's the answer I am looking for.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...
Yes that is also correct.I think he wanted a physical mechanism that could be managed in software. Hence, his attempts at PWM or drive for the LED.
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.Read post #7. That is not at all what he is asking for.
Yessss!!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?
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).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 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.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, 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.In that case, though, it is reversed, The nurses device has the unique ID.
Will look up LiFi1) 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.
Got it!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.
Thanks for correcting me, got it now!Control the current through the LED, not the voltage applied to it.