An ESP8266 ESP-01 can act as the controller for an infrared AC remote, but the GPIO should be treated as a logic source rather than as the power source for the IR LED. The useful design question is not whether the transmitter has one transistor or three. It is whether the driver can switch the required LED pulse current cleanly while preserving the carrier and protocol timing.

That distinction also corrects a common assumption: a three-transistor circuit does not inherently transmit farther than a one-transistor circuit. A correctly sized single transistor or MOSFET can drive an IR LED effectively. Additional transistors only help when they perform a necessary circuit function.

What the ESP-01 contributes

The ESP-01 combines an ESP8266 with external flash and exposes only a small number of GPIOs. In an AC remote project it can connect to Wi-Fi, generate the IR command waveform, read a digital temperature sensor, and apply control logic such as changing an AC setpoint when room temperature crosses a threshold.

The module itself does not emit infrared light. An external IR LED is required, normally with a transistor driver. The ESP-01 also requires a stable 3.3 V supply. EN must be high for the ESP8266 to operate. Because Wi-Fi activity causes changing supply current, a marginal regulator or poor decoupling can cause resets even when the IR section is electrically correct.

Why the IR LED needs a driver

An IR LED converts electrical pulse current into infrared optical output. Driving it directly from a GPIO makes the microcontroller pin carry the LED current as well as generate the signal.

A transistor separates those jobs:

ESP-01 GPIO
     |
     v
transistor / MOSFET
     |
     v
IR LED + current-limiting network
     |
     v
power supply

The GPIO controls the switch. The LED pulse current comes from the supply through the driver. The current-limiting network must be calculated from the actual supply voltage, LED forward voltage, driver voltage drop, and the LED manufacturer’s permitted pulse-current conditions. A resistor value copied from another circuit is not automatically safe.

One transistor can be enough

A single switching device is often sufficient for one IR LED. The important requirements are that it can be driven correctly by 3.3 V logic, switch the intended pulse current, and turn on and off fast enough for the IR carrier.

With an NPN BJT, the base drive must be sufficient for the intended switching condition. With a MOSFET, the relevant question is its behavior at the available gate voltage; a threshold-voltage specification alone does not guarantee low on-resistance at 3.3 V.

For a small transmitter, this topology uses few components and leaves fewer places for waveform distortion or excessive voltage drop.

Three transistors do not define the range

A circuit containing three transistors may be doing several different things. One stage may buffer the GPIO, another may switch a larger load, or the devices may form a push-pull or other driver topology. Three transistors can also be unnecessary.

The number of transistor packages therefore cannot predict IR range.

Consider two transmitters. The first uses one transistor and produces the IR LED’s intended pulse current with clean edges. The second uses three transistors but has excessive voltage drop and drives the same LED at a lower pulse current. The one-transistor transmitter can produce more optical output.

The reverse is also possible: a multi-stage circuit designed for a larger LED array or a higher-current output stage can outperform a weak single-transistor driver. The cause is the electrical and optical design, not the transistor count.

What actually changes IR range

Range is a system property. LED radiant intensity and viewing angle matter because a narrow beam concentrates optical power into a smaller angle. Pulse current matters within the LED’s rated pulse conditions; the permitted peak depends on pulse width, duty cycle, repetition, temperature, and the specific datasheet.

Carrier generation and protocol timing matter as well. Consumer IR receivers generally expect a modulated carrier, but the required frequency depends on the protocol and receiver. AC remotes can transmit relatively long state frames, so marks, spaces, repeats, and carrier frequency must remain within receiver tolerance.

Receiver sensitivity, transmitter angle, sunlight and other infrared sources, enclosure windows, reflections, and physical alignment also change the usable distance. Fixed claims such as “one transistor reaches 5 m and three transistors reach 20 m” are therefore not technically defensible without defining the LED, current, optics, receiver, supply, waveform, and test environment.

Adding a temperature sensor

The limited ESP-01 pin count does not prevent a basic temperature-controlled AC transmitter. A digital sensor such as the DS18B20 can use a one-wire data connection and its required pull-up resistor, leaving another usable GPIO for the IR transmitter if boot-strapping requirements are handled correctly.

temperature sensor -> ESP-01 -> IR driver -> IR LED -> AC receiver
                          |
                          +---- Wi-Fi

Temperature measurement and IR control remain separate concepts. The sensor reports room temperature; it does not tell the ESP-01 the AC’s actual internal state. If someone changes the AC with its original remote, a transmitter-only ESP-01 may no longer know whether its assumed state matches the appliance.

That matters because many AC protocols send a complete state—mode, target temperature, fan settings, and other fields—rather than a universal standalone button code.

Memory is usually not the limiting factor

ESP-01 variants have been sold with different flash capacities, so firmware should not assume a capacity from the module name alone. The installed flash can be checked from the firmware or toolchain, or by identifying the flash device.

For a small project containing Wi-Fi control, a temperature sensor, and an IR protocol implementation, GPIO availability, power stability, firmware footprint, and the selected IR library are usually more useful design constraints than transistor count.

A practical design criterion

For an ESP-01 AC transmitter, choose the IR output stage from measurable requirements:

required range
    -> required optical coverage
    -> LED and viewing angle
    -> permitted pulse current
    -> driver and supply
    -> verify waveform and range experimentally

If one transistor satisfies those requirements, adding two more provides no inherent range advantage. If the load requires buffering, multiple emitters, a different supply domain, or a more capable output stage, additional devices may be justified.

The useful comparison is therefore not one transistor versus three transistors. It is delivered LED pulse current, switching quality, optical geometry, and protocol correctness. Those parameters determine whether the AC receiver sees a valid command across the room.