STEP 1 / 6ELECTRONICS

IR sensors (infrared LEDs) to create an object-detection circuit

IR sensors are used in many things, like TV remote controls, burglar alarms, and counting how many objects are in a room. Here, we've used infrared LEDs (IR sensors) to make an object-det…

Circuit Atlas themed schematic for IR sensors (infrared LEDs) to create an object-detection circuit
PROJECT#003
TRACKElectronics
PARTS12
STAGES06
STEP 1 / 6 · Overview

Know the mission before touching a wire.

Understand what you are making, prepare the right tools, and make the workbench safe.

01

Project details

IR sensors (infrared LEDs) to create an object-detection circuit is a electronics project. IR sensors are used in many things, like TV remote controls, burglar alarms, and counting how many objects are in a room. Here, we've used infrared LEDs (IR sensors) to make an object-det…

Source pages
46-46
Named parts
12
Build goal
Working, tested prototype
02

Tools you need

  • Digital multimeter
  • Wire stripper and side cutters
  • Soldering iron with a fine tip
  • Current-limited bench supply

Use eye protection, good lighting, and a clean insulated surface throughout the build.

03

Safety precautions

  • Disconnect every power source before changing a connection.
  • Check component polarity, pinout, and supply voltage twice.
  • Use a current limit for the first power-up.
  • Keep liquids, loose metal, and uninsulated wires away from the bench.
Ready to continue?
STEP 2 / 6 · Circuit-verified parts library

Gather, identify, and understand every part.

Use the standardized inventory, then open What's this? to learn each part's role, advantages, limitations, handling, and specifications.

✓ COMPLETE CIRCUIT BOMAll 12 component references, values, and stage-specific names from the reviewed schematic are included below.
CIRCUIT-VERIFIED PROJECT INVENTORY12 PART LINES
PARTTYPEQTYREADY
PPWR1 - regulated 5V DC power supplyPOWER1
What's this?Image, role, pros, cons, handling & specifications
Regulated 5V DC supplyPOWER LEARNING VIEW

PWR1 - regulated 5V DC power supply

A power component supplies, converts, stores, or regulates energy for the project.

What it does here

It must provide the documented voltage, polarity, isolation, and sufficient current safely.

Buy / compare this part

Advantages

  • Stable power improves reliability
  • Current limiting protects first tests
  • Regulation reduces resets and noise

Limitations

  • Wrong polarity can cause immediate damage
  • Underrated parts overheat
  • Mains circuits require qualified supervision

Handling

  • Measure output before connection
  • Use a fuse or current limit
  • Insulate exposed conductors

Specifications to verify

  • Use the exact model, value, package, and rating listed for PWR1 - regulated 5V DC power supply; similar-looking parts are not always interchangeable.
  • Confirm input/output voltage, current, polarity, connector, isolation, and thermal rating.
SIC1 - LM358 dual operational amplifier (DIP-8)SEMICONDUCTOR1
What's this?Image, role, pros, cons, handling & specifications
LM358 dual operational amplifierSEMICONDUCTOR LEARNING VIEW

IC1 - LM358 dual operational amplifier (DIP-8)

A semiconductor stage performs switching, amplification, regulation, rectification, or logic.

What it does here

It controls current or signal flow at a defined point in the circuit.

Buy / compare this part

Advantages

  • Fast and efficient
  • Compact
  • Can control larger loads from smaller signals

Limitations

  • Pin order varies
  • Sensitive to overvoltage and reverse polarity
  • May need cooling or bias components

Handling

  • Verify the datasheet pinout
  • Avoid static and soldering heat
  • Check notch, stripe, or flat-face orientation

Specifications to verify

  • Use the exact model, value, package, and rating listed for IC1 - LM358 dual operational amplifier (DIP-8); similar-looking parts are not always interchangeable.
  • Confirm pinout, maximum voltage/current, dissipation, gain or forward voltage, and package.
ST1 - BC548 NPN transistor (TO-92)SEMICONDUCTOR1
What's this?Image, role, pros, cons, handling & specifications
BC548 NPN transistorSEMICONDUCTOR LEARNING VIEW

T1 - BC548 NPN transistor (TO-92)

A semiconductor stage performs switching, amplification, regulation, rectification, or logic.

What it does here

It controls current or signal flow at a defined point in the circuit.

Buy / compare this part

Advantages

  • Fast and efficient
  • Compact
  • Can control larger loads from smaller signals

Limitations

  • Pin order varies
  • Sensitive to overvoltage and reverse polarity
  • May need cooling or bias components

Handling

  • Verify the datasheet pinout
  • Avoid static and soldering heat
  • Check notch, stripe, or flat-face orientation

Specifications to verify

  • Use the exact model, value, package, and rating listed for T1 - BC548 NPN transistor (TO-92); similar-looking parts are not always interchangeable.
  • Confirm pinout, maximum voltage/current, dissipation, gain or forward voltage, and package.
PIR-LED1 - 5mm infrared emitter LEDPART1
What's this?Image, role, pros, cons, handling & specifications
5mm infrared emitter LEDPART LEARNING VIEW

IR-LED1 - 5mm infrared emitter LED

An output component turns an electrical control signal into light, sound, motion, switching, or displayed information.

What it does here

It presents the circuit result or acts on the physical world.

Buy / compare this part

Advantages

  • Makes system state visible
  • Can be tested separately
  • Supports clear troubleshooting

Limitations

  • Loads may exceed controller current
  • Polarity or driver direction can matter
  • Inductive loads create voltage spikes

Handling

  • Use the documented driver stage
  • Check polarity and load current
  • Add flyback protection for inductive loads

Specifications to verify

  • Use the exact model, value, package, and rating listed for IR-LED1 - 5mm infrared emitter LED; similar-looking parts are not always interchangeable.
  • Confirm voltage, current, polarity, interface, driver requirements, and duty cycle.
PIR-LED2 - 5mm infrared receiver LEDPART1
What's this?Image, role, pros, cons, handling & specifications
5mm infrared receiver LEDPART LEARNING VIEW

IR-LED2 - 5mm infrared receiver LED

An output component turns an electrical control signal into light, sound, motion, switching, or displayed information.

What it does here

It presents the circuit result or acts on the physical world.

Buy / compare this part

Advantages

  • Makes system state visible
  • Can be tested separately
  • Supports clear troubleshooting

Limitations

  • Loads may exceed controller current
  • Polarity or driver direction can matter
  • Inductive loads create voltage spikes

Handling

  • Use the documented driver stage
  • Check polarity and load current
  • Add flyback protection for inductive loads

Specifications to verify

  • Use the exact model, value, package, and rating listed for IR-LED2 - 5mm infrared receiver LED; similar-looking parts are not always interchangeable.
  • Confirm voltage, current, polarity, interface, driver requirements, and duty cycle.
PZD1 - 2.2V Zener diodePASSIVE1
What's this?Image, role, pros, cons, handling & specifications
2.2V Zener diodePASSIVE LEARNING VIEW

ZD1 - 2.2V Zener diode

A passive component sets current, voltage, timing, filtering, or signal behaviour without adding gain.

What it does here

Its exact value and tolerance determine how the surrounding stage behaves.

Buy / compare this part

Advantages

  • Simple and dependable
  • Low cost
  • Easy to measure before installation

Limitations

  • A wrong value can stop or damage the circuit
  • Ratings must not be exceeded
  • Polarized parts require correct orientation

Handling

  • Measure unclear values
  • Observe capacitor polarity
  • Avoid overheating leads while soldering

Specifications to verify

  • Use the exact model, value, package, and rating listed for ZD1 - 2.2V Zener diode; similar-looking parts are not always interchangeable.
  • Confirm value, tolerance, power or voltage rating, polarity, and package size.
PVR1 - 10kΩ preset potentiometerPART1
What's this?Image, role, pros, cons, handling & specifications
10kΩ preset potentiometerPART LEARNING VIEW

VR1 - 10kΩ preset potentiometer

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for VR1 - 10kΩ preset potentiometer; similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
PLED1 - red 5mm object-detected output indicatorPART1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for IR sensors (infrared LEDs) to create an object-detection circuitPART LEARNING VIEW

LED1 - red 5mm object-detected output indicator

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for LED1 - red 5mm object-detected output indicator; similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
PR1 - 220Ω resistorPASSIVE1
What's this?Image, role, pros, cons, handling & specifications
Axial through-hole resistorPASSIVE LEARNING VIEW

R1 - 220Ω resistor

A passive component sets current, voltage, timing, filtering, or signal behaviour without adding gain.

What it does here

Its exact value and tolerance determine how the surrounding stage behaves.

Buy / compare this part

Advantages

  • Simple and dependable
  • Low cost
  • Easy to measure before installation

Limitations

  • A wrong value can stop or damage the circuit
  • Ratings must not be exceeded
  • Polarized parts require correct orientation

Handling

  • Measure unclear values
  • Observe capacitor polarity
  • Avoid overheating leads while soldering

Specifications to verify

  • Use the exact model, value, package, and rating listed for R1 - 220Ω resistor; similar-looking parts are not always interchangeable.
  • Confirm value, tolerance, power or voltage rating, polarity, and package size.
PR2 - 120Ω resistorPASSIVE1
What's this?Image, role, pros, cons, handling & specifications
Axial through-hole resistorPASSIVE LEARNING VIEW

R2 - 120Ω resistor

A passive component sets current, voltage, timing, filtering, or signal behaviour without adding gain.

What it does here

Its exact value and tolerance determine how the surrounding stage behaves.

Buy / compare this part

Advantages

  • Simple and dependable
  • Low cost
  • Easy to measure before installation

Limitations

  • A wrong value can stop or damage the circuit
  • Ratings must not be exceeded
  • Polarized parts require correct orientation

Handling

  • Measure unclear values
  • Observe capacitor polarity
  • Avoid overheating leads while soldering

Specifications to verify

  • Use the exact model, value, package, and rating listed for R2 - 120Ω resistor; similar-looking parts are not always interchangeable.
  • Confirm value, tolerance, power or voltage rating, polarity, and package size.
PR3 - 10kΩ resistorPASSIVE1
What's this?Image, role, pros, cons, handling & specifications
10kΩ axial through-hole resistorPASSIVE LEARNING VIEW

R3 - 10kΩ resistor

A passive component sets current, voltage, timing, filtering, or signal behaviour without adding gain.

What it does here

Its exact value and tolerance determine how the surrounding stage behaves.

Buy / compare this part

Advantages

  • Simple and dependable
  • Low cost
  • Easy to measure before installation

Limitations

  • A wrong value can stop or damage the circuit
  • Ratings must not be exceeded
  • Polarized parts require correct orientation

Handling

  • Measure unclear values
  • Observe capacitor polarity
  • Avoid overheating leads while soldering

Specifications to verify

  • Use the exact model, value, package, and rating listed for R3 - 10kΩ resistor; similar-looking parts are not always interchangeable.
  • Confirm value, tolerance, power or voltage rating, polarity, and package size.
PR4 - 220Ω resistorPASSIVE1
What's this?Image, role, pros, cons, handling & specifications
Axial through-hole resistorPASSIVE LEARNING VIEW

R4 - 220Ω resistor

A passive component sets current, voltage, timing, filtering, or signal behaviour without adding gain.

What it does here

Its exact value and tolerance determine how the surrounding stage behaves.

Buy / compare this part

Advantages

  • Simple and dependable
  • Low cost
  • Easy to measure before installation

Limitations

  • A wrong value can stop or damage the circuit
  • Ratings must not be exceeded
  • Polarized parts require correct orientation

Handling

  • Measure unclear values
  • Observe capacitor polarity
  • Avoid overheating leads while soldering

Specifications to verify

  • Use the exact model, value, package, and rating listed for R4 - 220Ω resistor; similar-looking parts are not always interchangeable.
  • Confirm value, tolerance, power or voltage rating, polarity, and package size.
Ready to continue?
STEP 4 / 6 · Source code

Confirm the hardware-only control path.

This project does not include firmware in the source. The circuit itself provides the required behaviour.

01

How to connect

  1. Match every controller label to the circuit view and source pin map.
  2. Join grounds before signal wires when separate low-voltage supplies are used.
  3. Keep motors, relays, pumps, and other loads on a suitable driver and external supply.

Common mistakes

Reversed VCC/GND, board-label versus GPIO-number confusion, missing common ground, and charge-only USB cables.

Troubleshoot

Disconnect loads, continuity-test one path at a time, then test with a current limit.

02

Software preparation

No IDE, board package, library, or firmware upload is required for this project.

If you add a programmable controller as an extension, document its pin map separately.

03

How to upload code

The original design is implemented entirely in hardware, so proceed after verifying the circuit and supply.

Ready to continue?
STEP 5 / 6 · Build

Assemble, deploy, test, and troubleshoot.

Use the complete source notes in build order, then pass the final checks before calling the project finished.

ASSEMBLY

Build in functional stages

  • Power and regulation
  • Controller or processing stage
  • Inputs and sensors
  • Outputs and loads
  • Enclosure and strain relief
TEST

Power up safely

  • Inspect unpowered continuity first
  • Apply the lowest safe current limit
  • Measure supply rails before signals
  • Add one load at a time
  • Record expected and actual results
TROUBLESHOOT

Work from simple to complex

  • Confirm power, ground, polarity, and orientation
  • Compare each pin with the source
  • Test inputs separately from outputs
  • Replace only one variable at a time
  • Power off before every correction
PROJECT-SPECIFIC BUILD NOTES

Follow the documented instructions.

These notes come from this project's source and remain in their original order.

01

Project overview

Project build note

IR sensors are used in many things, like TV remote controls, burglar alarms, and counting how many objects are in a room. Here, we've used infrared LEDs (IR sensors) to make an object-detection circuit and a proximity sensor for robots that follow a path. The basic idea is to use an IR LED to send out infrared light, which is then reflected by an object in the way and picked up by an LED further down the line. When the light hits the sensing LED, a voltage difference forms between its leads. But this voltage makes an electrical signal that is very weak. So, we used an operational amplifier (op-amp) to find the object with more accuracy. The circuit for finding objects is up there. The emitter and the receiver are the two parts that make up the circuit. The emitter is made up of an IR LED1 connected in series with a 220-ohm resistor that limits the current going forward. IR LED1 always sends out IR light. The IC LM358 (IC1), the IR LED2, the Zener diode ZD1, the transistor T1, the resistors R2 and R3, and the preset VR1 make up the receiver.

Ready to continue?
PROJECT ACHIEVED

You built IR sensors (infrared LEDs) to create an object-detection circuit.

You followed the full workflow from understanding the mission to testing the finished project. That is a real engineering achievement - well done.

Automatic Water Pump Controller project thumbnail featuring Power supply, CD4011, T3, T4, T5, T6, T7 - transistor stages identified in the circuit
NEXT ELECTRONICS ADVENTURE

Automatic Water Pump Controller

Ready to reuse what you learned in another project from the same track?

Start this project
Browse all 500 projects