If you want to adjust the distance IR communication can reach, you will face this problem: transmission power adjustment.
That means we need to control the current through the IR LEF - a TSAL6100 in my case. As a software engineer what I can think of is a DC-DC switching power solution. I found the AL8861 and composed the circuit based on datasheet info.
My question is: will this circuit work?
Why I asked this question? In my understanding, when using switched power, there are ripples on the output, usually a few hundreds of mA. Will this lead to the transmission distance varying too?
(Appended on 5/1)
Transistor is right, we should use analog dimming instead of PWM dimming. Because the programmable resistor is a bit expensive, I plan to create my own:
The unit of resistance is K, trying to get a series of voltages allocated from 0.3 to 2.5 V (the analog dimming range of Vset defined in the datasheet of the AL8861).
(Appended 5/1)
If build one based on an LDO (ZLDO1117), is this right?
In order to get rid of influence of resistance from the CD4052B, I should use a large resistor value, is that OK?