Title: Vehicle Following System
1Vehicle FollowingSystem
United Arab Emirates University College of
Engineering Graduation Project II
Project Advisor Dr. Hassan Noura Project
Co-ordinator Dr. Qurban Ali
- Mohammad Saad Laghari 200235906
- Saeed Aqeel Saeed 200305445
- Badr Al-Salmy 200235572
- Marwan Essa Bastaki 200540932
Second Semester 2007/2008
2Contents
- Introduction
- Background Theory
- Mathematical Modeling
- Digital Control
- Sensor
- Microcontroller
- Motor Switching Function
- System Structure and Final Design
- Gantt Chart for GPI
- Gantt Chart for GPII
- Conclusion
3Introduction
4- Make the 2nd car follow the 1st car
- 1st car ? remote controlled
- 2nd car ? autonomous motion by
- keeping the distance constant
- using a digital control system
- Safety Factor
- Environmental Factor
5- The team objective is to design this system and
develop the controller that allows achieving the
vehicle following system - Necessary instruments to complete the project
are - Sensors
- Micro-controller
- H-bridges
- Mosfets
- Circuit Components
- Etc.
6- The team work includes
- Design construction
- Instrumentation
- Computer modeling analysis
- Implementation and control
- Testing experimental investigation
7- Both cars are to communicate via a communication
system (transmitter receiver) set - A control system has to be installed on the
follower car - This will allow it to start into motion when the
first car does and stop when the first car stops,
keeping a predetermined distance - The control system basically includes some
computer software which translates the logic of
motion of the follower car - This software is to be installed onto an
appropriate micro controller chip
8Applications and Uses
- Decrease man-power (lower cost and time, more
work) - Pesticide Control (Farming)
- Transportation
- Manufacturing
- Carriages
- Automated High-ways
9Background Theory
10Cars
- Speed
- Deceleration
- Weight
- Size
- Circuitry of Motor
- Price
11Communication
- Ultra-sonic
- Only frequency around 40KHz is detected
- Distance increases, Voltage decreases
- (vice-versa)
12(No Transcript)
13(No Transcript)
14Microcontroller Motor
- The peak voltage received from receiver is
received by micro-controller - Micro-controller determines if the voltage is
nominal (set voltage) using simple
microprogramming codes - Micro-controller then sends a signal to the
H-bridges - The H-bridges then sends the signals to the
powere MOSFETs, which in turn send the signals to
the motors
15(No Transcript)
16Mathematical Modeling
17(No Transcript)
18(No Transcript)
19- The 2nd Cars body coordinates
Define
20This model is not complete, since the state space
should include input voltages (or currents).
21J Mass moment of inertia kt Torque Constant B
Friction of Motor
22(No Transcript)
23(No Transcript)
24(No Transcript)
25Digital Control
26Main Parts of a Digital Controller
- A/D conversion
- D/A conversion
- A program
27High Proportional Gain
28Low Proportional Gain
29Reasonable Proportional Gain
30PD Controller Response
31PID Controller Response
32Car Position Block Diagram
33Car Direction Block Diagram
34Sensors
35Ultra-sonic Sensors
- Systems typically use a transducer which
generates sound waves in the ultrasonic range,
above 20,000 hertz, - by turning electrical energy into sound,
- then upon receiving the echo
- turn the sound waves into electrical energy which
can be measured and displayed
36Transducer
- An ultrasonic transducer is a device that
converts energy into ultrasound, or sound waves
above the normal range of human hearing - Piezoelectric crystals
- Changing size when a voltage is applied
- Applying an alternating voltage (AC) across them
causes them to oscillate at very high frequencies - Thus producing very high frequency sound waves
37Detectors
- Since piezoelectric crystals generate a voltage
when force is applied to them, the same crystal
can be used as an ultrasonic detector - Since the detector will only be used to detect
ultrasonic waves, the design is such a way that
all other waves (or most of them) are eliminated
38 Receiver
Transmitter
39(No Transcript)
40- Frequency 40 KHz
- Input Voltage 14Vpp
Distance (cm) Receiver output (V)
50 0.646
37.5 0.91
25 1.23
12.5 1.4
41CAR 1
CAR 2
42 43(No Transcript)
44(No Transcript)
4515 cm
5 cm
1.2 mm
46(No Transcript)
47Logic
- Angle Sensors
- Programming
- Both increase or both decrease
- Right sensor increases, Left decreases
- car turns right
- Left sensor increases, Right decreases
- car turns left
48Microcontroller
49PIC16F877
- InputH and InputL
- 0-0.5V
- 2.0-5.5V
- OutputH and OutputL
- 0-0.7V
- 4.2-5V
50PIC16F877
51PIC Programming
- Ports (I/O)
- TRISA 0x00000000
- Bit 0 output, Bit 1 input
- (TRISA, TRISB, TRISC,
- TRISD, TRISE)
- ADCON1 00000000
- (Set PORTA to Analog)
52ADC
- Voltage range VCC (5V)
- 0-5V input 8 bits --gt 0-255 or 0-64k
- DEFINE ADC_BITS 8
- ADCIN 0, measurement
- DEFINE ADC_SAMPLEUS X
- (Sampling time in us)
53Reset Circuit
54External Oscillator
55Variable Speed
- Sensor Levels
- Motor Input
- Microcontroller Output
56PWM - Duty Cycle
57The Code
58(No Transcript)
59(No Transcript)
60(No Transcript)
61(No Transcript)
62Motor Switching Function
63High and Low Side Driver
64- Function
- Amplification
- Isolation
- Features
- Fully operational to 600V.
- Matched propagation delay for both channels.
- Noise immunity.
- Outputs in phase with inputs.
65(No Transcript)
66DC Motor-Driver H-Bridge Circuit
67A B C D State
0 0 0 0 Off
0 0 0 1 Off
0 0 1 0 Off
0 0 1 1 Brake
0 1 0 0 Off
0 1 0 1 SHORT
0 1 1 0 Reverse
0 1 1 1 SHORT
A B C D State
1 0 0 0 Off
1 0 0 1 Forward
1 0 1 0 SHORT
1 0 1 1 SHORT
1 1 0 0 Brake
1 1 0 1 SHORT
1 1 1 0 SHORT
1 1 1 1 SHORT
68(No Transcript)
69(No Transcript)
70System Structure and Final Design
71- AC Signal Generator
- Ultra-Sonic Transmitter-Receiver Set
- Bridge Rectifier Amplifier
- PIC16F877 Microcontroller
- Driver Chip MOSFET H-Bridge
- Voltage Regulator
72AC Signal Generator
73Bridge Rectifier Amplifier
74PIC16F877 Microcontroller
75Driver Chip MOSFET H-Bridge
76Voltage Regulator
77(No Transcript)
78Final Circuit of the Second Car
79Final Circuit of the First Car
80Final Design Side View
81Gantt Chart for GPI
82(No Transcript)
83Gantt Chart for GPII
84(No Transcript)
85Conclusion
86- Project was successful
- Information from courses
- Digital Control Systems
- Programming Courses (Java and C)
- Electronics
- Power Electronics
87- Hardships Faced
- Sensors
- H-Bridge
- Microcontroller
88Thank You For ListeningQUESTIONS?