+ All Categories
Home > Documents > Project Report

Project Report

Date post: 07-Nov-2014
Category:
Upload: mahendra-pratap-singh
View: 46 times
Download: 0 times
Share this document with a friend
Popular Tags:
38
Project report on line following robot By: SAURABH RANA
Transcript
Page 1: Project Report

Project report on

line following robot

By: SAURABH RANA

Page 2: Project Report

introducTION

• The line follower is a self operating

robot that detects and follows a line that is drawn on the floor. The path consists of a black line on a white surface (or vice versa). The control system used must sense a line and maneuver the robot to stay on course, while constantly correcting the wrong moves using feedback mechanism, thus forming a simple yet effective closed loop System. The robot is designed to follow very tight curves.

Page 3: Project Report

Basic design

Page 4: Project Report

Basic Requirements

• ATmega16 • L293D• IR sensors• Eclipse galileo(software)• LCD• WHEELS(3)• MOTORS(2)

Page 5: Project Report

Software Used

• Ecllipse Galileo (Programing Software)

• USB TINY 2.0(Burner)

Page 6: Project Report

Programming And Simulating

• The program code acts as the decision-maker embedded in the micro-controller i.e. it decides what will be the outputs for particular set of input combination. Programs for the AVR series of microcontrollers can be written in assembly (AVR ASM), C and BASIC. AVR Studio, WinAVR,etc. are some free development softwares for programming the AVR Microcontrollers. We will be using winAVR for programming and ECLIPSE GALILEO for simulating (Simulation means debugging the code on software,one can virtually give the input and check the output for that code). In winAVR programmers Notepad we write our C code,after compilation it generates ‘.hex’file which is a hardware level code.

Page 7: Project Report

Hardware Used

• 1.Microcontroller (ATmega16) Present on

• 2.L293D AVR33 Kit

• 3.LM234• 4.60 Rpm motors(2)• 5.Rear wheel(2)• 6.One front drum wheel• 8.IR Sensors• 9.Wooden Base

Page 8: Project Report

Microcontroller (ATmega16)

• High-performance, Low-power AVR® 8-bit Microcontroller

Advanced RISC Architecture

32 x 8 General Purpose Working Registers

Up to 16 MIPS Throughput at 16 MHz

On-chip 2-cycle Multiplier High Endurance Non-

volatile Memory segments Peripheral Features Two 8-bit Timer/Counters

with Sepa Programmable Watchdog

Timer with Separate On-chip Oscillator

Page 9: Project Report

On-chip Analog Comparator

I/O and Packages :- 32 Programmable I/O Lines

40-pin PDIP, 44-lead TQFP, and 44-pad QFN/MLF

Operating Voltages :- 4.5 - 5.5V for ATmega16

Speed Grades :-0 - 16 MHz for ATmega16

Power Consumption @ 1 MHz, 3V, and 25°C for ATmega16L

Page 10: Project Report

L293D

IC, RELAY DRIVER QUAD, DIP16, 293 Motor Type: Half-H No. of Outputs: 4 Supply Voltage Range: 4.5V to 36V Driver Case Style: DIP No. of Pins: 16 Operating Temperature Range: -40°C to +150°C SVHC: No SVHC (18-Jun-2012) Base Number: 293 Device Marking: L293NEE4 Device Type: Motor IC Generic Number: 293 Logic Function Number: 293 No. of Channels: 4 No. of Drivers: 4 Output Current Max: 2A Output Voltage Max: 36V Package / Case: DIP Supply Voltage : 36V- 4.5V

Page 11: Project Report

BRiCS AVR333 Development Board with Atmega16/32 DIP type

supported microcontroller• The board measures 10 cm x 6 cm, ideal for learning about AVR .  • Specification: • · Dimension: 104 x 65 mm · CPU: Atmega 16,32.•  · Serial Ports: 1x male DB9 connector (Serial Programming)

and 1x female DB9 connector (RS-232 Communication)•   Beeper: PWM buzzer  · LCD Interface•  · 16x2 Displays:  · Monochrome (green and Blue)

 · 8 ADC outputs•  · Expansion: 44 pin I/O headers•  · 3 Buttons (1 Reset, 2x external interrupt)•  · Green Connectors: For operating Max. 12 volt devices ( DC

motors and Relays)•  · 2x power LEDs  · 2x L293D IC  ·

1X 7805 IC•  · 2x jumpers (For changing power supply channel one for

Board and one for L293D)•  · Power: regulated 5V to 12 V and 1 Amps.

Page 12: Project Report
Page 13: Project Report

BRiCS USBtiny is an ultra low cost ISP Programmer for AVR

applications suitable for beginners.

Specification:• · CPU: ATtiny 2313. • · 32 bit and 64 bit supported.• · AVRdude compatible• · Durable off-the-shelf enclosure• · High speed! Max clock rate is 400KHz. • Write speed:1Kb/s, read speed: 2Kb/s.

(Atmega8 takes 8s to write, 4s to read/verify)• · Works with any AVR ISP chip with 64K of flash

(or less) - does not work with Atmega1281/1280/2561/2560

• · USB drivers available for Windows using libusb, no drivers needed for Mac OS X or Linux

Page 14: Project Report

OTHER IMPORTANT COMPONENTS

Caster wheel - Medium 18mm

LCD 75 RPM I-Type

Single Shaft-700x700

Page 15: Project Report

IR SENSOR

Page 16: Project Report

BUILDING LFRSENSORS

WHEELSMICROCONTROLER

Page 17: Project Report
Page 18: Project Report
Page 19: Project Report
Page 20: Project Report
Page 21: Project Report
Page 22: Project Report
Page 23: Project Report
Page 24: Project Report
Page 25: Project Report
Page 26: Project Report
Page 27: Project Report
Page 28: Project Report
Page 29: Project Report
Page 30: Project Report
Page 31: Project Report
Page 32: Project Report

SO HERE’S THE CODE

Page 33: Project Report

if(s1<850&s2<850) /// change the value according the sensor value PORTD=0b10010000;// forward when both sensor are in white surface

if(s1>850&s2<850) PORTD=0b10100000;// right when one sensor in black & one sensor in white surface

if(s1<850&s2>850) PORTD=0b01010000;// left when one sensor in white & one sensor in black surface

if(s1>850&s2>850) PORTD=0b10010000;// forward when both sensor are in black surface

Page 34: Project Report

Now how it looks in real!

Page 35: Project Report
Page 36: Project Report
Page 37: Project Report
Page 38: Project Report

THANK YOU

Team mates:MAHENDRA PRATAP SINGH Arjun Raina, Amit kumar,Vishal Srivastava


Recommended