Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

There is no single circuit that controls every remote-operated product. A practical universal infrared (IR) remote combines a microcontroller, keypad, IR receiver, nonvolatile memory and a driven IR LED, plus firmware that decodes or learns each command. The reference design below is a learning remote: it captures the timing from an existing IR handset, stores it and retransmits it later.

What “universal” means

Universal IR designs fall into several different categories. Choosing the category first prevents a simple receiver or single-protocol transmitter from being mislabeled as a universal remote.

Code-database remote

Firmware contains protocol implementations and manufacturer/device codes such as NEC, Sony SIRC, Philips RC-5/RC-6, Panasonic, Samsung, JVC and Mitsubishi. This uses little memory and produces repeatable timing, but compatibility depends on the code database. Unusual commands and many air-conditioner states may be missing.

Learning remote

The receiver captures an existing handset’s mark-and-space timing, stores it and replays it. This handles unknown protocols more flexibly, but needs capture memory and careful handling of carrier frequency, repeats, toggle bits and long messages. Analog Devices describes this receive-store-retransmit architecture in its learning-remote overview.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.

Other projects often called universal

  • A universal IR receiver/controller accepts commands and switches a relay or other load; it is not a handheld transmitter.
  • A network IR blaster adds Wi-Fi or Ethernet and software control.
  • RF, Bluetooth, Wi-Fi and HDMI-CEC remotes require different radios or interfaces; an ordinary IR schematic cannot learn them.

Reference block diagram

Buttons/keypad ──► Microcontroller ──► carrier/data output ──► transistor/MOSFET ──► IR LED
                         ▲       │
IR receiver module ─────┘       └──► EEPROM or flash

The receiver module normally includes a photodetector, automatic gain control, band-pass filter and demodulator. Its output is a logic waveform of mark and space durations, not the original carrier waveform.

Practical learning-remote schematic

                         regulated VCC
                              │
          ┌───────────────────┴───────────────────┐
          │                                       │
   IR receiver module                       Microcontroller
   ┌───────────────┐                    ┌────────────────────┐
   │ VCC ──────────┼────────────────────┤ VCC                │
   │ GND ──────────┼────── GND ─────────┤ GND                │
   │ OUT ──────────┼───────────────────►│ timer/interrupt in │
   └───────────────┘                    │ keypad GPIO        │◄── buttons
                                        │ EEPROM/flash       │◄── learned data
                                        │ PWM/timer out      ├───┐
                                        └────────────────────┘   │
                                                                 ▼
                                                            base/gate resistor
                                                                 │
 VCC ── current-limiting resistor ── IR LED ── collector/drain  NPN/MOSFET
                                                                 │
                                                            emitter/source
                                                                 │
                                                                GND

Use the exact receiver datasheet for pin order, supply voltage and output polarity; three-pin modules are not interchangeable. SparkFun’s TSOP382 example and pinout warning are documented in its IR communication tutorial and printable PDF.

Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

Minimum hardware

  • Microcontroller board or bare MCU with a timer capture/interrupt input and a carrier-generation timer.
  • Demodulating IR receiver matched to the intended carrier family.
  • 940–950 nm IR LED, current-limiting resistor and an NPN transistor or logic-level MOSFET.
  • Base or gate resistor where required, push buttons or a matrix keypad, and EEPROM, internal flash or external memory.
  • Regulated supply and local decoupling capacitors close to the MCU and receiver.

Exact resistor, transistor, LED-current, supply and pin values depend on the selected parts and must be calculated from their datasheets. SparkFun gives approximately 100 Ω for a higher-current arrangement and 330 Ω for a lower-current arrangement in its educational circuit; these are reference examples, not universal values. A transistor driver is preferable to direct MCU-pin drive when useful range matters, as shown in DigiKey’s Arduino learning-remote project.

Receiver and transmitter design

Receiver

Consumer receivers commonly expect a modulated carrier. Typical systems span roughly 28–60 kHz, while 38 kHz is common and many modules are centered near 40 kHz. See Analog Devices and Microchip AN657 for carrier and decoding context. A demodulating module is the simplest choice; a raw photodiode preserves more optical detail but requires an analog front end, faster sampling and more noise handling.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.

Transmitter

The MCU must create both the carrier and the protocol’s burst/gap sequence. The LED driver switches the IR LED with controlled pulse current. A 950 nm LED is a practical example, but wavelength, forward voltage, pulse rating, resistor and supply must match the chosen LED. A transistor improves current control and range; it does not guarantee a particular distance.

How learning and replay work

  1. Enter learning mode and select a button or memory slot.
  2. Point the original handset at the receiver and hold its button.
  3. Capture receiver-output transitions with a timer or interrupt.
  4. Measure every mark and space, count transitions and estimate or select the carrier frequency.
  5. Identify a known protocol when possible, while retaining the raw capture for unknown formats.
  6. Store timing data and metadata in nonvolatile memory.
  7. Exit learning mode, press the new button and regenerate the carrier while replaying the stored sequence.

A record should normally include pulse and gap durations, transition count, carrier frequency or preset, repeat behavior and (when decoded) protocol, checksum and state information. Microchip’s AN657 discusses microcontroller IR decoding and modulated versus non-modulated receiver approaches.

Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft

Replay strategies

Mode Strength Limitation
Protocol replay Compact, deterministic and able to maintain protocol state Needs a decoder and support for the target protocol
Raw replay Works with unknown commands and proprietary timings Consumes more memory and depends on capture fidelity
Hybrid Decodes common protocols and stores raw fallbacks Most firmware complexity

Begin at 38 kHz for common television and audio equipment, but support adjustable carriers when possible. A fixed carrier can fail if the target uses a different passband or modulation scheme.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Firmware details that determine compatibility

Repeat frames

Volume, channel and navigation keys may send an initial frame followed by a repeat frame while held. Firmware should distinguish initial, repeat and key-release timeout events.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

Toggle and state bits

Some protocols alternate a bit on successive presses. Replaying one captured frame forever may work once and then fail; protocol-aware firmware must update the expected state.

Air-conditioner messages

Many air-conditioner remotes transmit the complete state—temperature, mode, fan, swing and timers—in one long packet. A project documented captures of about 700 bits (85 bytes) for some signals; treat that as a project-specific example, not a universal requirement (project documentation, PDF). Provide a larger capture buffer and preserve state when supporting these devices.

Example control logic

initialize_hardware()
load_saved_commands()

while true:
    if learn_button_pressed():
        slot = select_memory_slot()
        waveform = capture_ir_receiver()
        metadata = analyze_waveform(waveform)
        save(slot, waveform, metadata)

    if user_button_pressed():
        command = load_selected_command()
        transmit(command, command.carrier_frequency)

Assembly and bring-up

  1. Select the MCU operating voltage and regulator.
  2. Choose a receiver whose carrier sensitivity suits the remotes you will learn.
  3. Wire VCC, ground and output exactly as the receiver datasheet specifies.
  4. Connect the output to a timer-capable or interrupt-capable MCU input.
  5. Wire buttons with internal pull-ups or correctly sized external resistors.
  6. Connect the carrier/data output to the transistor or MOSFET driver.
  7. Fit the LED with the calculated resistor and verify polarity.
  8. Add local supply decoupling and inspect wiring before power-up.
  9. Capture a known remote with a logic analyzer or timer and verify timings.
  10. Store one command, transmit at short range, then check current, heating and supply stability before increasing range.

A phone camera may show an IR LED flashing, as described by SparkFun, but that only confirms approximate optical activity; it does not verify carrier, timing or output power.

Troubleshooting by symptom

Symptom Likely causes and actions
No waveform while learning Wrong pinout, missing power, incompatible receiver or an RF/Bluetooth original remote. Check the datasheet and use a logic analyzer.
Learns but does not replay Wrong carrier, reversed LED, inadequate driver current or incorrect stored timing.
Works only very close Direct MCU drive, excessive series resistance, weak battery, poor LED alignment or insufficient transistor drive.
First press works, later presses fail Unmanaged toggle bit or other stateful protocol behavior.
TV works but air conditioner does not Capture buffer too short, incomplete long-state packet or missing checksum/state handling.
Random triggering Sunlight or fluorescent interference, poor decoupling, unsuitable AGC behavior or floating input.
LED appears on a camera but the appliance ignores it Incorrect protocol or carrier, insufficient optical power, bad alignment or wrong repeat behavior.

Safety and scope limits

  • IR is normally line-of-sight; walls and obstructions reduce reliability.
  • Do not connect this low-voltage circuit directly to mains. Relay or appliance interfaces require isolation, enclosure, fusing and appropriate electrical safety design.
  • A demodulating receiver may discard carrier-level information, so it cannot guarantee exact reproduction of every IR waveform.
  • Encrypted, paired, RF, Bluetooth, Wi-Fi and HDMI-CEC systems need additional hardware and software.

Build or buy?

Option Best when Main trade-off
Ready-made universal remote You need immediate TV or audio control Unsupported devices and limited customization
USB or network IR blaster You want automation, macros or multi-room control Software/network setup and often no physical keypad
Arduino or ESP prototype You are experimenting or integrating custom buttons Firmware, timing and range still require testing
Custom MCU PCB You need a compact, offline or unusual-protocol design Highest development effort
Universal IR receiver switch You only need a remote button to operate a relay or lamp It receives commands; it is not a universal transmitter. See the Sima SIS-1 documentation.

For a breadboard prototype, the SparkFun circuit and DigiKey project provide practical starting points. For a dedicated design, consult Michael Kohn’s MSP430 example alongside the Microchip and Analog Devices references. A schematic solves only the hardware path; compatibility comes from the firmware, storage model and protocol handling.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.