Infrared Level Detection Circuit Design

Suitable for measuring liquid levels and detecting proximity events

Up to 50 centimeters range, with an option for relay activation

Circuit Diagram

Infra-red Level Detector-Circuit diagram

Components:

  • R1 10K 1/4W Resistor
  • R2,R5,R6,R9 1K 1/4W Resistors
  • R3 33R 1/4W Resistor
  • R4,R8 1M 1/4W Resistors
  • R7 10K Trimmer Cermet
  • R10 22K 1/4W Resistor
  • C1,C4 1µF 63V Electrolytic or Polyester Capacitors
  • C2 47pF 63V Ceramic Capacitor
  • C3,C5,C6 100µF 25V Electrolytic Capacitors
  • D1 Infra-red LED
  • D2 Infra-red Photo Diode (see Specifications)
  • D3,D4 1N4148 75V 150mA Diode
  • D5 LED (Any color and size)
  • D6,D7 1N4002 100V 1A Diodes
  • Q1 BC327 45V 800mA PNP Transistor
  • IC1 555 Timer IC
  • IC2 LM358 Low Power Dual Op-amp
  • IC3 7812 12V 1A Positive voltage regulator IC
  • RL1 Relay with SPDT 2A @ 220V switch
  • Coil Voltage 12V. Coil resistance 200-300 Ohm
  • J1 Two-way output socket

Device Purpose:

This circuit is designed for applications involving the monitoring of liquid levels or the detection of nearby objects. It operates by determining the distance to a target object through the reflection of an infrared beam. It safely measures the level of liquids within a tank, without direct contact. The device's operating range can be adjusted from a few centimeters up to approximately 50 centimeters using a trimmer.

The actual range may vary depending on the specific infrared transmitting and receiving LEDs used, and it is primarily influenced by the color of the surface being reflected. Dark surfaces significantly reduce the device's sensitivity.

Circuit Operation:

IC1 generates an oscillator that drives the infrared LED through 0.8 millisecond pulses at a frequency of 120 Hertz and with a peak current of approximately 300 milliamperes. D1 and D2 are positioned facing the target, separated by a distance of a couple of centimeters, on a short breadboard strip. D2 captures the infrared beam emitted by D1 and reflected back from the object it encounters. The signal is amplified by IC2A and the peak is detected by D4 and C4. Diode D3, along with R5 and R6, compensates for the forward voltage drop associated with diode D4. A DC voltage proportional to the distance between the reflecting object and D1 and D2, along with D1 and D2, is fed into the inverting input of the voltage comparator IC2B. This comparator switches the LED and, optionally, the relay, on or off by comparing its input voltage to the reference voltage at its non-inverting input, which is set by the trimmer R7.

Notes:

  • A regulated power supply is crucial (hence the use of IC3) to ensure stable reference voltages. The circuit can be powered by a commercially available wall-plug power supply, which provides a DC output voltage in the range of 12 to 24 volts.
  • Current Consumption: LED off - 40mA; LED and Relay on - 70mA @ 12V DC supply.
  • R10, C6, Q1, D6, D7, RL1, and J1 can be omitted if relay activation is not required.
  • The infrared Photo Diode D2 should be of the type incorporating an optical sunlight filter; these components appear in black plastic housings. Some of them resemble TO92 transistors; in this case, please note that the sensitive surface is the curved portion, not the flat one.
  • Avoid exposing D1 and D2 to direct sunlight or artificial light sources.
  • Typically, the optimum distance for D1 and D2 lies in the range of 1.5 to 3 centimeters.
author: RED Free Circuit Designs
circuit from http://www.redcircuits.com/