Build a Cheap and Easy IR Detector and Motor Driver for SUMO ROBOT

by FernandoS24 in Circuits > Sensors

4851 Views, 16 Favorites, 0 Comments

Build a Cheap and Easy IR Detector and Motor Driver for SUMO ROBOT

IMG_20170124_204339.jpg
filipa sensor.png

Here you can learn Step-by-Step how to build a motor driver Infra-red controlled with only two transistors !

The circuit has a permanent lit IR LED and a Photo-diode connected directly to a BC212 Base which will amplify the signal from and will feed it to a medium power transistor BD135 (Collector-Base). From this BD135 you will power a DC Motor, turning this way it's opposite to enemy ROBOT. If you connect you sensors differently you can simulate diferent behaviours according to BRAITENBERG (please see https://en.wikipedia.org/wiki/Braitenberg_vehicle)

Cut a Small Piece of a Stripboard With 8x14 Holes

IMG_20170124_194037.jpg
IMG_20170124_194022.jpg

Solder the Resistors

IMG_20170124_194619.jpg
Vídeo 1 - Separar e dobrar as resistências de 120 Ohm
Vídeo 2 -  4 Resistências 120 Ohm colocadas
Vídeo 3 -  Processo de soldadura das resistências

Solder:

4 x 330R resistors fromTtrack 8 to Track 2

1 x 560R resistor from Track 1 to Track 4

I used four 330R in parallel because otherwise a single 1/8 W resistor of around 100R would BURN !

You can use any value lower for example 4x100R resistors and this will give max IR distance but will drive your IR LED to the maximum current so be careful not to kill it ! :D

A total resistor lower than 14 OHM will kill you IR LED for sure ( I have tested it) :D

Solder the 1N4004 Diode

IMG_20170124_194748.jpg
Vídeo 4 -  Soldadura da R5 e do Díodo 1N4007

Solder the DIODE's Cathode (-) to Track 8 and Anode (+) to Track 4

Be careful with Diode's poles... negative side is the one with a grey strip, don't solder it wrong !

Solder the Header Pins on Track 8 (Positive), 3 (Motor Out) and 4 (Negative)

IMG_20170124_150624.jpg
IMG_20170202_132727.jpg
IMG_20170124_195227.jpg
IMG_20170124_195205.jpg
Vídeo 5 - Soldadura dos pinos

Track 8 is the positive supply, Track 3 is negative pole and Track 4 is the output for the motor. Motor connects between Track 8 (positive) and Track 4 (BD135 Colector).

We will use a group of 4 pins to the Positive and 2 groups of 2 headers for Motor Out and Negative respectively.

If you want you can use an ERASER to help you solder the header pins and even to support you small circuit while you solder other components.

Solder the BC212 and the BD135

IMG_20170124_144056.jpg
IMG_20170124_200323.jpg
IMG_20170124_145031.jpg
IMG_20170124_144728.jpg
Vídeo 6 - Colocação e soldadura dos Transístores BC212 e BD135

Solder the BC212 (or any other PNP small signal Ex: BC557) and the BD135 for POWER !

Now be careful these are heat sensitive components they can burn by overtime to heat source like an SOLDERING IRON.

Solder the LED's and Photodiode

IMG_20170124_201655.jpg
IMG_20170124_201710.jpg
IMG_20170124_201034.jpg
IMG_20170124_202115.jpg
IMG_20170124_202103.jpg
IMG_20170124_201117.jpg
Vídeo 7 - Colocação do LED Emissor de Infravermelhos
Vídeo 8 - Explicação Fotodíodo
Vídeo 9 - Fotodíodo antes da soldadura
Vídeo 10 - Fotodíodo depois da soldadura

Solder the LEDS (RED and INFRA-RED) and Photo diode (IR RECEIVER) as seen it on the pictures. Be careful with the polarities : Always remember photo diode is connected inversely as for the other LED you can see longest leg is the POSITIVE.

Insert INFRA-RED LED shortest leg (-) on Track 3 and longest leg (+) on Track 2

Insert PHOTO DIODE longest leg (+) on Track 3 and shortest leg (-) on Track 6

Insert INFRA-RED LED shortest leg (-) on Track 3 and longest leg (+) on Track 1

It's very important both PHOTO DIODE and INFRA-RED LED are ate the SAME LEVEL an very close to one another as they form a PAIR ! The closest they are the better they will work together !

A diodes and LED's face thei

Finish Attaching the Motors and Supply...

IMG_20170124_204525.jpg
IMG_20170124_201704.jpg
IR Obstacle Detector with Motor Driver
Vídeo 12 - Colocação dos fios de ligação do sensor (Alimentação e saídas MOTOR)
Vídeo 13 - Teste e demonstração do sensor em funcionamento

Verify your tracks ! See if there is any short circuit !

Make an intentional short between Track 8 and 7... I meant it like that when I designed it for teaching purposes to see if my students could find the problem after the circuit was built !

Attach wires and power supply !

TEST-IT ! And enjoy your ROBOT !