I have an infrared emitter connected to a Raspberry Pi which allows me to send signals to my air conditioner so that I can turn it on / off / set settings etc.

The problem with my current electric setup (which I found somewhere in the Internet) is that the range of the IR emitter is very limited (<10cm). However, I would like to place the Raspberry Pi incl. IR emitter somewhere further in my room (<5m distance). Currently, I have to mount the Raspberry Pi and IR emitter in such a way that the emitter is very close to the AC IR receiver area.

Does someone know which parts I need to rewire / change so that the range increases?

I’m using the following parts:

* IR Emitter (e.g. 940nm IR LED 40deg - 40 degree viewing angle. Bright and tuned to 940nm wavelength)
* Transistor (e.g. PN2222 Transistor - to help drive IR LED)
* Resistor (10k Ohm resistor - goes between RPI GPIO and the PN2222 transistor)

And here is a link to the repo where I documented the setup and code: <https://github.com/SilverJan/rpi-ac-control>

![enter image description here](https://i.stack.imgur.com/4Qvrj.jpg)
![enter image description here](https://i.stack.imgur.com/emm77.jpg)
![enter image description here](https://i.stack.imgur.com/hJtZe.jpg)