DIY Infrared Remote Control Circuit Design and Schematic Guide

For a reliable 38 kHz infrared signal emitter, use a TSOP1738 receiver module paired with an NE555 timer IC in astable mode. Set the capacitor to 100 nF and the resistors to 47 kΩ (R1) and 10 kΩ (R2) for precise frequency generation. This configuration ensures a stable modulation without drift, critical for consumer electronics compatibility.
Power distribution requires attention: a 5V regulated supply with a 100 µF smoothing capacitor eliminates noise-induced errors. Ground loops distort signals–keep traces short and connect the ground plane directly to the power source. For extended range, add a 2N2222 transistor to amplify output, but limit current to 100 mA to avoid overheating the IR LED.
Decoding protocols demands timing accuracy. RC-5 and NEC standards use pulse-width modulation; verify with an oscilloscope by measuring the carrier burst duration (9 ms for NEC’s start pulse). For DIY testing, a second TSOP1738 connected to an Arduino’s serial monitor simplifies debugging–log raw signal intervals to identify protocol deviations.
Thermal stability affects long-term performance. Opt for low-leakage capacitors (e.g., polyester film) to prevent frequency shift under voltage fluctuations. If ambient temperatures exceed 50°C, derate the NE555’s output current or switch to a CMOS variant like the 7555 for reduced power draw and heat.
Component placement impacts signal integrity. Position the IR LED and receiver within 10 cm of each other for direct line-of-sight testing. Shield the setup with a grounded metal enclosure if operating near fluorescent lights, which emit interfering 38 kHz harmonics. For mobile applications, a 3x AAA battery pack provides 4.5V–add a 1N4007 diode for polarity protection during accidental reversals.
Building an Infrared Signal Transmitter Layout

Start with a 38 kHz carrier frequency generator using a 555 timer IC in astable mode for optimal compatibility with most consumer devices. Configure the timing components as follows: R1=1.8 kΩ, R2=22 kΩ, and C1=10 nF to achieve a 33% duty cycle, balancing power efficiency and signal strength. Connect the output pin (3) to an NPN transistor (e.g., 2N2222) as a switching stage, then drive an IR LED (TSAL6200) with a 100 Ω current-limiting resistor to avoid thermal damage while ensuring a 10-meter range.
Key Component Values for Stable Operation
| Component | Value | Purpose |
|---|---|---|
| 555 Timer R1 | 1.8 kΩ | Sets upper timing interval |
| 555 Timer R2 | 22 kΩ | Adjusts frequency |
| 555 Timer C1 | 10 nF | Determines base frequency |
| IR LED Series Resistor | 100 Ω | Limits current to 70 mA |
| NPN Transistor | 2N2222 | Handles switching load |
For signal modulation, use an ATtiny85 microcontroller to encode commands via pulse-width modulation (PWM) on the 38 kHz carrier. Implement the NEC protocol: a 9 ms leading pulse burst followed by a 4.5 ms pause, then 8-bit address and 8-bit command data. Add a 50 µs pulse for logic ‘0’ and 560 µs for logic ‘1’, concluding with a 560 µs stop bit. Power the assembly with a 5 V regulator (e.g., 7805) and decouple with a 10 µF electrolytic capacitor to filter noise from battery fluctuations.
Core Elements of an IR Signal Transmitter and Receiver
For reliable operation, prioritize a 38 kHz carrier frequency modulator paired with a TSOP1738 or VS1838B sensor–these components balance sensitivity and noise rejection while supporting standard protocols like NEC or RC-5. Power the transmitter LED (e.g., 940 nm wavelength) with a 20-50 mA current, using a 2N2222 transistor or MOSFET for activation, avoiding direct microcontroller pin drive to prevent thermal damage.
Decoding accuracy hinges on a 100-220 µF electrolytic capacitor across the sensor’s power rails to suppress voltage spikes; pair it with a 10 kΩ pull-up resistor on the output line to stabilize logic levels. For extended range, add a convex lens (focal length ~20-30 mm) over the IR emitter, increasing directivity while reducing ambient interference. Calibrate pulse timing tolerances to ±10% of protocol specs to ensure compatibility with legacy devices; test with an oscilloscope to verify marker and space intervals align with the chosen encoding scheme.
TSOP1738 Infrared Signal Decoder Wiring Layout

Connect the TSOP1738 sensor directly to a 5V regulated supply–avoid using unfiltered voltage sources to prevent false signal detection. The module’s ground pin must share a common reference with the microcontroller’s ground; even minor potential differences distort decoding accuracy. A 100μF electrolytic capacitor placed within 2 cm of the sensor’s power pins stabilizes transient spikes, critical for consistent 38 kHz pulse interpretation.
Wire the signal output pin to a microcontroller’s interrupt-capable input–Arduino’s D2 or D3, ESP8266’s GPIO4–configured as a rising-edge trigger. Avoid software polling; it introduces 1-2 ms latency, sufficient to miss modulated bursts. For receivers positioned more than 1.5 m from emitters, reduce adjacent LED interference by shielding the sensor with a 950 nm bandpass filter or black plastic tube painted matte black inside.
Recommended Peripheral Components
- Resistor: 47 Ω in series with the supply line limits inrush current, protecting the internal amplifier during sudden power application.
- Diode: A 1N4148 across the sensor’s signal pin and ground clamps voltage spikes exceeding Vcc, safeguarding microcontroller inputs.
- Pull-up: Enable internal pull-up on the signal line only if the microcontroller lacks hardware debounce; external 10 kΩ pull-down is safer for noise-prone environments.
Position the sensor away from transformers, relays, or SMPS coils–induced EMI mimics valid pulses. Maintain a 10 cm clearance from high-frequency RF modules (Wi-Fi, Bluetooth) operating above 2.4 GHz. For outdoor installations, orient the sensor downward to minimize ambient infrared noise from sunlight or incandescent bulbs.
Decoding Protocol Adjustments
Set the microcontroller’s input capture prescaler to match the TSOP1738’s carrier tolerance (±1 kHz for 38 kHz). NEC protocol streams require a 5 ms glitch filter on the rising edge; RC-5 and Sony SIRC demand 450 μs and 600 μs pulse-width thresholds, respectively. Use timer-based sampling at 1 μs resolution for reliable edge detection; Arduino’s `pulseIn()` function introduces ±4 μs jitter.
For battery-powered nodes, replace the 100μF capacitor with a 22μF tantalum–lower ESR reduces quiescent current by 23%. Disable the sensor’s internal amplifier during idle states using a MOSFET switch on the ground line, cutting power draw to 0.2 mA. Reactivate 20 ms before expected transmissions to allow amplifier settling.
Calibrate decoding thresholds empirically: log raw pulse durations over 10 transmissions from the intended emitter, then set upper and lower bounds at ±8% of the median. Ambient light fluctuations shift threshold values by up to 15%, necessitating dynamic recalibration every 5 minutes in variable-lit environments.
Verify wiring integrity by injecting a 38 kHz, 50% duty cycle square wave at 5 cm distance; the TSOP1738’s output should mirror the input within 50 μs. Test across the module’s operating voltage range (4.5–5.5 V) and temperature extremes (−25°C to +85°C), as pulse-width distortion increases by 0.3% per degree beyond 60°C. Document thresholds for each environment to ensure repeatable deployments.
Wiring Layout for IR Emitter Based on NE555 Chip

Connect the NE555’s discharge pin (7) to a 10 kΩ pull-up resistor leading to the positive rail, while linking the same pin to a timing capacitor of 100 nF between ground and the threshold pin (6). This establishes the oscillator’s core timing mechanism with a stable 38 kHz frequency required for infrared signals.
Wire the trigger pin (2) directly to the threshold pin (6) to create a self-triggering astable mode, eliminating the need for external switches. Ensure the 100 nF timing capacitor is a low-leakage type–ceramic or polyester–to prevent frequency drift over time.
A 1 kΩ resistor between the output pin (3) and the base of a BC547 transistor forms a simple amplification stage. The transistor’s collector connects to a 940 nm IR LED via a current-limiting resistor, typically 100–220 Ω, adjusted based on LED specifications and supply voltage.
Power the setup with a 5 V regulated source–avoid unfiltered supplies to prevent noise from skewing the emitted pulses. A 100 µF electrolytic capacitor across the power rails absorbs transient spikes, especially if the supply shares lines with other noisy components.
Critical: Position the IR LED no more than 30 cm from the receiver during testing. Infrared light disperses quickly, and weaker signals may fail to register correctly at greater distances without proper lens focusing.
For precise frequency calibration, replace one of the timing resistors with a 20 kΩ potentiometer in series with a fixed 1 kΩ resistor. This allows fine-tuning to match receiver expectations, typically set between 36–40 kHz for most consumer devices.
Add a small 1 µF capacitor between the NE555’s control voltage pin (5) and ground if ambient temperature variations cause noticeable frequency shifts. This stabilizes the internal reference voltage, particularly useful in outdoor or high-humidity environments.
Test the emitter’s signal integrity using an oscilloscope on the transistor’s collector. Correct operation should display clean, square pulses at the target frequency. Irregular waveforms indicate poor grounding, incorrect resistor values, or faulty components–replace or recalibrate as needed.