Line-Following Mini-Tank
3 posters
Page 1 of 1
Line-Following Mini-Tank
The line following robot has been around for a long time because of its all analog design. The fact that the parts to build it are inexpensive does not hurt either.
I had never actually built a line-following robot until now for reasons unknown but I have to say the experience was enlightening. Getting a refresher in some analog circuit design did not hurt either.
Below is a test run of how well the line-following mini-tank works. It is suprising at how simplicity can meet functionality dead on!
Purpose & Overview of this project
The purpose of this project is to build a device that can sense the difference between black and white color so that the robot can follow a black line on a sheet of white paper.
The robot will be low cost and completely made in a DIY style. It will also be able to follow straight and curvy lines alike.
Parts List Details
You may or may not be familiar with the parts above so a picture of each item has been included to help give you an idea of what they look like.
I'll go through and explain the key parts below.
Analog Brains
The 2N2222 and TIP120 transistors are both of the NPN type. As you will see in the schematic portion of this project write-up, these transistors are used to decide what to do when the sensors see black or white. The TIP120 transistors are high-power which makes them perfect for running the motors.
IR Emitter & Phototransistor
These two components combined with a few resistors will tell the circuit whether black or white is currently sensed.
If white is sensed a 0.7-1.0 Volt signal is sent to the analog brains. If black is sensed, 0 Volts is sent.
Tamiya Tank Kit
This kit will give the foundation for the tank tread design of this robot. The treads can be lengthened or shortened but I find that keeping a tank shorter makes it more agile and therefore more mobile.
Tamiya Gearbox
This is the two motor gearbox that will drive the tank forward, backwards, left or right. The two motors are 3v motors which match up nicely with the 3.7v battery that will be used.
Schematic Overview
The Schematic has three main parts to it. The Sensor Circuitry where the accelerometer is wired up to the A/D converters. The second part is the power circuit where we have the On/Off switch, the 9v battery & +5v 7805 Voltage Regualtor. The 3rd part of the circuit is the 3 7-Segment LEDs.
Schematic Specifics
•Motor Circuit
The motor circuit controls the motors depending on the sensor data that comes in through the 'analog brain' circuit. The two motors are 3v and can move moderatley fast. The diode that connects the motors to the battery reduces the voltage at the motors which slows them down a little bit.
•IR Sensor Circuit
The IR Emitter LED and Phototransistor are used for sensing white or black color. The LED emits IR light and the phototransistor receives IR light. Together they work well at see what type of light if any is reflected from a surface.
•Analog Brain Circuit
This part of the circuit connects the sensor circuit and the motor circuit together so that the robot can do its job. A little ASIC logic is used to transfer incoming sensor signals into which motor should be turned on and when.
•Schematic Parts Reference:
The Theory
The theory for this project is based upon the 3 main components of the schematic described in the previous page. Below I will run through the theory of how they work with some better illustrations to hammer the theory into your brain.
IR Emitter & Phototransistor Theory
The IR Emitter LED (D2) send outs IR light and the Phototransistor (Q6) receives IR light from the reflected surface.
From high school we learned that white will reflect all colors while black will absorb them. So when the LED emits IR onto white, the Phototransistor is turned on and sends a voltage signal to Q1. When light is reflected off of black color the Phototransistor (Q6) is then turned off and no signal is sent
Looking At The Motor Circuit
The motors are turned on when transistors Q4 or Q5 are switched on with a positive voltage. This happens in one of two cases. When black color is sensed, the circuit switches Q4 off and Q5 on. When white color is sensed the case is reversed with Q4 on and Q5 off. This means the motors are never actually on at the same time and the illusion of driving forward is created by quick back-and-forth movements
Working The Brains
This circuit combines the Motor circuit and the IR Sensor Circuit. Using 3 2N2222's and some resistors a circuit is built that interprets the two cases. When white color is detected Q1 is turned on, which turns off Q2 and Q3 on. In
the opposite case, when black color is detected Q1 is turned off, which means Q2 remains on and Q3 off. Understanding this circuit might take a few minutes staring at the schematic, it is a little complicated.
Hardware Design
With the schematic and a little theory under our belts let us move on to building the circuit and the hardware. First we will build the mini-tank platform. Then we will build the circuit on the breadboard.
Mechanical Hardware
Step (1) - Gather All The Mechanical Parts »
Step (2) - First you will need to cut the plywood, two 6.2mm x 12mm pieces »
Step (3) - Drill holes into the base piece for the gearbox and tank treads »
Step (4) - Cut out a 5.5mm x 6.2mm space for the battery in the roof piece »
Step (5) - Finally, using nuts and bolts, assemble it together »
Electrical Hardware
Step (1) - Gather All The Electrical Parts »
Step (2) - The first thing to build is the power circuit »
Step (3) - Next follow the schematic and assemble the IR circuit »
Step (4) - Now assemble together the analog brain part of the circuit »
Step (5) - Finally, assemble the motor circuit together on the breadboard »
Step (6) - Mount the breadboard on the tank and plugin the motor wires »
for more robotic tutorial just visit our official site
source: PyroElectro.com
I had never actually built a line-following robot until now for reasons unknown but I have to say the experience was enlightening. Getting a refresher in some analog circuit design did not hurt either.
Below is a test run of how well the line-following mini-tank works. It is suprising at how simplicity can meet functionality dead on!
Purpose & Overview of this project
The purpose of this project is to build a device that can sense the difference between black and white color so that the robot can follow a black line on a sheet of white paper.
The robot will be low cost and completely made in a DIY style. It will also be able to follow straight and curvy lines alike.
Parts List Details
You may or may not be familiar with the parts above so a picture of each item has been included to help give you an idea of what they look like.
I'll go through and explain the key parts below.
Analog Brains
The 2N2222 and TIP120 transistors are both of the NPN type. As you will see in the schematic portion of this project write-up, these transistors are used to decide what to do when the sensors see black or white. The TIP120 transistors are high-power which makes them perfect for running the motors.
IR Emitter & Phototransistor
These two components combined with a few resistors will tell the circuit whether black or white is currently sensed.
If white is sensed a 0.7-1.0 Volt signal is sent to the analog brains. If black is sensed, 0 Volts is sent.
Tamiya Tank Kit
This kit will give the foundation for the tank tread design of this robot. The treads can be lengthened or shortened but I find that keeping a tank shorter makes it more agile and therefore more mobile.
Tamiya Gearbox
This is the two motor gearbox that will drive the tank forward, backwards, left or right. The two motors are 3v motors which match up nicely with the 3.7v battery that will be used.
Schematic Overview
The Schematic has three main parts to it. The Sensor Circuitry where the accelerometer is wired up to the A/D converters. The second part is the power circuit where we have the On/Off switch, the 9v battery & +5v 7805 Voltage Regualtor. The 3rd part of the circuit is the 3 7-Segment LEDs.
Schematic Specifics
•Motor Circuit
The motor circuit controls the motors depending on the sensor data that comes in through the 'analog brain' circuit. The two motors are 3v and can move moderatley fast. The diode that connects the motors to the battery reduces the voltage at the motors which slows them down a little bit.
•IR Sensor Circuit
The IR Emitter LED and Phototransistor are used for sensing white or black color. The LED emits IR light and the phototransistor receives IR light. Together they work well at see what type of light if any is reflected from a surface.
•Analog Brain Circuit
This part of the circuit connects the sensor circuit and the motor circuit together so that the robot can do its job. A little ASIC logic is used to transfer incoming sensor signals into which motor should be turned on and when.
•Schematic Parts Reference:
Schematic Name | Part Name | Value/Type |
R1 | Resistor | 330Ω |
R2 | Resistor | 360Ω |
R3 | Resistor | 360Ω |
R4 | Resistor | 1500Ω |
R5 | Resistor | 10000Ω |
R6 | Resistor | 10000Ω |
R7 | Resistor | 15Ω |
R8 | Resistor | 10000Ω |
R9 | Resistor | 5000Ω |
R10 | Resistor | 10000Ω |
R11 | Resistor | 150Ω |
R12 | Resistor | 150Ω |
D1 | Diode | LED-Red (5mm) |
D2 | Diode | LED-IR Emitter (5mm) |
D3 | Diode | 1N4001 |
D4 | Diode | 1N4001 |
D5 | Diode | 1N4001 |
D6 | Diode | 1N4001 |
D7 | Diode | LED-Green (3mm) |
D8 | Diode | LED-Green (3mm) |
Q1 | Transistor | 2N2222 |
Q2 | Transistor | 2N2222 |
Q3 | Transistor | 2N2222 |
Q4 | Transistor | TIP120 |
Q5 | Transistor | TIP120 |
Q6 | Transistor | IR Phototransistor |
C1 | Capacitor | 47μF |
The Theory
The theory for this project is based upon the 3 main components of the schematic described in the previous page. Below I will run through the theory of how they work with some better illustrations to hammer the theory into your brain.
IR Emitter & Phototransistor Theory
The IR Emitter LED (D2) send outs IR light and the Phototransistor (Q6) receives IR light from the reflected surface.
From high school we learned that white will reflect all colors while black will absorb them. So when the LED emits IR onto white, the Phototransistor is turned on and sends a voltage signal to Q1. When light is reflected off of black color the Phototransistor (Q6) is then turned off and no signal is sent
Looking At The Motor Circuit
The motors are turned on when transistors Q4 or Q5 are switched on with a positive voltage. This happens in one of two cases. When black color is sensed, the circuit switches Q4 off and Q5 on. When white color is sensed the case is reversed with Q4 on and Q5 off. This means the motors are never actually on at the same time and the illusion of driving forward is created by quick back-and-forth movements
Working The Brains
This circuit combines the Motor circuit and the IR Sensor Circuit. Using 3 2N2222's and some resistors a circuit is built that interprets the two cases. When white color is detected Q1 is turned on, which turns off Q2 and Q3 on. In
the opposite case, when black color is detected Q1 is turned off, which means Q2 remains on and Q3 off. Understanding this circuit might take a few minutes staring at the schematic, it is a little complicated.
Hardware Design
With the schematic and a little theory under our belts let us move on to building the circuit and the hardware. First we will build the mini-tank platform. Then we will build the circuit on the breadboard.
Mechanical Hardware
Step (1) - Gather All The Mechanical Parts »
Step (2) - First you will need to cut the plywood, two 6.2mm x 12mm pieces »
Step (3) - Drill holes into the base piece for the gearbox and tank treads »
Step (4) - Cut out a 5.5mm x 6.2mm space for the battery in the roof piece »
Step (5) - Finally, using nuts and bolts, assemble it together »
Electrical Hardware
Step (1) - Gather All The Electrical Parts »
Step (2) - The first thing to build is the power circuit »
Step (3) - Next follow the schematic and assemble the IR circuit »
Step (4) - Now assemble together the analog brain part of the circuit »
Step (5) - Finally, assemble the motor circuit together on the breadboard »
Step (6) - Mount the breadboard on the tank and plugin the motor wires »
for more robotic tutorial just visit our official site
source: PyroElectro.com
pyroelectro- C Battery
- Posts : 288
Join date : 2010-11-23
Age : 40
Location : Cebu City
Re: Line-Following Mini-Tank
nyc post pyro.
yan ang needed dito.
post ka pa.. ung basic lng ha
_________________
6th member of STTM
former 2nd member
im always walking on the rain so that no one could see me crying
ultrasonic™- 24V BATTERY
- Posts : 4475
Join date : 2010-08-19
Age : 38
Location : Davao City
Re: Line-Following Mini-Tank
ultrasonic wrote:
nyc post pyro.
yan ang needed dito.
post ka pa.. ung basic lng ha
sir nasaan na iyong pinangako mong points ?
pyroelectro- C Battery
- Posts : 288
Join date : 2010-11-23
Age : 40
Location : Cebu City
Re: Line-Following Mini-Tank
sigurista pud ka noh..
ito points mu
+1
_________________
6th member of STTM
former 2nd member
im always walking on the rain so that no one could see me crying
ultrasonic™- 24V BATTERY
- Posts : 4475
Join date : 2010-08-19
Age : 38
Location : Davao City
Re: Line-Following Mini-Tank
weeeeeeee
DJFEL- 24V BATTERY
- Posts : 1780
Join date : 2012-11-21
Age : 42
Location : SIUIJOR
Similar topics
» MoTank / Plagiarism tank
» Sony kv-21JDR1/S Retrace line only
» samsung 21 retraced line ,audio ok
» Green raster with retrace line
» Help pls. No raster with retrace line. (china board)
» Sony kv-21JDR1/S Retrace line only
» samsung 21 retraced line ,audio ok
» Green raster with retrace line
» Help pls. No raster with retrace line. (china board)
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|