Friday, March 29, 2024

Playing with Robotic Eye (IR Sensors)

By Mohit Bansal

There are various applications of IR sensors such as TV remote controllers, burglar alarms and object counters. Here we have used IR sensors (infrared LEDs) to make an object-detection circuit and also a proximity sensor for path-tracking robots. The basic idea is to transmit the infrared light through an IR LED, which is then reflected by an obstacle ahead and sensed by the receiving LED.

On receiving the light, the sensing LED develops a voltage difference across its leads. However, this voltage produces a very weak electrical signal. Therefore we have used an operational amplifier (op-amp) for accurate detection of the object.

Object detection circuit

Object detection circuit
Object detection circuit

Above is the object-detection circuit. The circuit can be divided into two parts: emitter and receiver. The emitter is composed of IR LED1 in series with a 220-ohm resistor that limits the forward current. IR LED1 emits IR light continuously. The receiver is built around IC LM358 (IC1), IR LED2, Zener diode ZD1, transistor T1 and resistors R2 and R3 along with preset VR1.

robot movement based on IC3 input combinations

According to the functioning of the op-amp, the output of IC1 will go high when the voltage at its pin 2 goes high. So the output of IC1 goes high when IR light is detected by the IR receiver. When the IR light falls on IR LED2, transistor T1 conducts making pin 2 of IC1 low. You can adjust the reference voltage at pin 3 of IC1 using preset VR1.

- Advertisement -

Working of the circuit is simple. When there is no object in front of IR LED1 and IR LED2, output pin 1 of IC1 remains low. As a result, LED1 remains off. When an object comes in front of IR LED1 and IR LED2, output pin 1 of IC1 goes high to light up LED1. At the same time, the relay-driver circuit (not shown here) is also activated.

Construction & testing

Fitting of IR sensors
Fitting of IR sensors

Assemble the circuit on a general-purpose PCB and enclose in a small cabinet. Mount IR LED1 and IR LED2 such that when any obstacle comes in front of them, the IR reflected off the obstacle falls directly on receiver IR LED2.

Proximity detector circuit

Below is the circuit of the proximity sensor for path-tracking robots. The circuit makes use of proximity sensors IR LED3 through IR LED6, voltage regulator LM7805 (IC2), motor-driver IC L293D (IC3), two geared motors/DC motors, 12V DC adaptor and two wheels. Voltage regulator IC2 converts the 12V DC into 5V DC. Pins 1 and 9 of IC3 are always kept high to enable the chip. Whenever inputs pins 2, 7, 10 and 15 of IC3 go high, the 12V DC (available at pin 8 of L293D) is transferred to the corresponding output pins (pins 3, 6, 11 and 14, respectively).

- Advertisement -
Fig. 3: Circuit diagram of path robot
Fig. 3: Circuit diagram of path robot

For controlling the path-tracking robot, input 1 (pin 2) and input 4 (pin 15) of IC3 are permanently held low, while input 2 (pin 7) and input 3 (pin 10) are controlled through IR sensors. Based on the output of sensor IR LED4 and sensor IR LED5, low and high voltages can be provided to input pins 7 and 10 of IC3.

As per the input combinations shown in the table, the robot will move straight, left or right. When the robot approaches a wall, the IR light transmitted by IR LED3 or IR LED6 reflects off the wall to reach the receiving LED (IR LED4 or IR LED5). This generates a low output at pin 7 or pin 10 of IC3 to stop the respective motor (M1 or M2). And when there is no reflected light, i.e., no wall, the receiving LED (IR LED4 or IR LED5) makes the output of IC3 (at pin 7 or pin 10) high to start the motor (M1 or M2).

Construction & testing

Fig. 4: Proposed assembly of robot
Fig. 4: Proposed assembly of the robot
Way of path tracker
Fig. 5 Way of path tracker

Assemble the circuit on a general-purpose PCB and enclose in a suitable cabinet. After assembling the components, fix the freewheel on the front side and the two geared/DC motors on the opposite sides as shown in Fig. 4. Fig. 5 shows the working of the path tracker.

 


The project was first published in November 2010 and has recently been updated.

5 COMMENTS

SHARE YOUR THOUGHTS & COMMENTS

Electronics News

Truly Innovative Tech

MOst Popular Videos

Electronics Components

Calculators