Title: AUTOMATED CAR FOR DOOR ENTRY:
1AUTOMATED CAR FOR DOOR ENTRY
- Zhen Hao Chng
- Mavis Rodrigues
- TA Paul Rancuret
2Inspiration for our project
3What is our project about?
- Automatic avoidance of obstacles
- Automated navigation out of parking area
- Prototype for implementation in motor vehicles
4Design implementation
Controller
Sensors Data
Wireless RF transmission
PIC
CMOS H-Bridge
Motor
Steering Servo
5Controller Purpose
- To start the device at a distance
- To stop the device for safety purposes
- To transmit the direction of un-parking
- Forward
- Backward
6Controller Select ON/OFF
- One Switch and Transmitter for ON/OFF
- Considering
- Bit 1 VCC (5V)
- Bit 0 Gnd (0V)
7Controller Select Direction
- One Switch and Transmitter for DIRECTION
- Considering
- Bit 1 VCC (5V)
- Bit 0 Gnd (0V)
8Controller Components
- Voltage regulator Device uses 5V
- Wireless Transmission
- Two Transmitters Linx TXM-900-HP3
- One Receiver (on Car) Linx RXM-900-HP3
- For User-Friendliness
- Two Switches Easy to make choice (On/Off and
direction) - Two LED To indicate users choice
9ControllerTesting Accuracy of Wireless
Transmission
MAX 5.8 V
Transmitter
MIN -800 mV
MAX 5.25 V
Receiver
MIN -560 mV
2.6us
Distance 5 m Scale 5us/div Frequency
40Khz
10Controller Setting the channel
903.37Hz
0
CS0
0
CS1
0
CS0
0
CS2
Transmitters
On/off
From PIC
CS1
907.87Hz
0
CS0
1
0
CS1
CS2
0
CS2
Receiver
Direction
CS0, CS1, CS2 Set the Transmission and Receiving
Channels
11Controller Setting the channel
Receiver
903.37Hz
0
CS0
0
CS1
0
CS0
0
CS2
Transmitters
On/off
0 (From PIC)
CS1
907.87Hz
0
CS0
0
CS2
1
CS1
0
CS2
Reads ON/OFF Transmission
Direction
12Controller Setting the channel
Receiver
903.37Hz
0
CS0
0
CS1
0
CS0
0
CS2
Transmitters
On/off
1 (From PIC)
CS1
907.87Hz
0
CS0
0
CS2
1
CS1
0
CS2
Reads DIRECTION Transmission
Direction
13Controller Testing Time to Change Channel using
PIC
14Controller Testing Time to Change Channel using
PIC
Channel
Receiver Output
1.07ms
15Controller Testing Time to Change Channel using
PIC
CS1 from PIC
Receiver Output
1.04ms
16UltraSonic Sensors
Devantech SRF05
17UltraSonic Sensors
Distance 628/58 10.82 cm
18Sensitivity analysistest accuracy of sensors
19Sensitivity analysis
20ERROR CORRECTION
- Percentage error greater than 10 within 5 cm
- Reduce error by shifting sensors inwards
- Instead of measuring 17cm as clearancedistance,
we take 22cm as clearance distance
5cm
21Infrared sensors
Sharp GP2D120
22Infrared sensors
-
V from IR sensor
V out
V Ref 0.6V
LM339A
LM339
23H-Bridge Purpose
- To amplify PIC current
- Easier to move car forward/backward
- Simple to invert the voltage across motor
24H-Bridge Components
- Consists of two CMOS inverters
S Source D Drain G Gate
25H-Bridge Working
- Motor is between the two inverters
M
M-
Back
Front
26H-Bridge Working
- The PMOS and NMOS acts like switches
PMOS
NMOS
27H-Bridge Working
- The PMOS and NMOS acts like switches
PMOS
NMOS
28H-Bridge Working
PMOS Switch
NMOS Switch
29H-Bridge Working
5V
0V
PMOS Switch
NMOS Switch
Input 0V
Input 5V
30H-Bridge Working
5V
0V
PMOS
NMOS
Input 0V
Input 5V
31H-Bridge Working
5V
0V
PMOS
NMOS
5 V across the Motor gt Forward
Input 0V
Input 5V
32H-Bridge Working
0V
5V
PMOS
NMOS
Input 5V
Input 0V
33H-Bridge Working
0V
5V
PMOS
NMOS
-5 V across the Motor gt Backwards
Input 5V
Input 0V
34H-Bridge Working
0V
0V
PMOS
NMOS
Input 5V
Input 5V
35H-Bridge Working
0V
0V
PMOS
NMOS
0 V across the Motor gt Stop
Input 5V
Input 5V
36H-Bridge Working
5V
5V
PMOS
NMOS
Input 0V
Input 0V
37H-Bridge Working
5V
5V
PMOS
NMOS
SHORTCIRCUIT AVOID!
Input 0V
Input 0V
Sure at least one input is 5 V
38H-Bridge Graph of Input/Output to CMOS
Front input
Front output
Back input
Back output
39H-Bridge Graph of Inputs to Motor
STOP
Front Motor input
Back Motor input
40H-Bridge Graph of Inputs to Motor
Forward
Front Motor input
Back Motor input
41H-Bridge Graph of Inputs to Motor
Backward
Front Motor input
Back Motor input
42Steering Servo
- Actuates the steering of the front wheels
- Fast actuators enable quick steering
- Consistent and easy to control
Futaba S3003
43Steering servo
Frequency 50Hz
44Steering algorithm
45Steering algorithm
Distance reading of sensors From PIC
All Distance readings gt Clear distance
NO
One Distance readings lt Too Near
YES
NO
SUCCESS!
YES
Steer Straight
Obstacle Avoidance
46Obstacle avoidance algorithmLeft Right
Steer Straight
47Obstacle avoidance algorithmleft lt Right
Turns 5
Turns 10
48Obstacle avoidance algorithmrightltleft
Turns 5
Turns 10
49Motor Testing the Power Requirement
50Motor Testing the Power Requirement
Using CMOS
51Motor Speed
- When all sensors are not clear, Voltage across
the motor is 5V for 250ms - Distance 3cm
- When all sensors are clear, Voltage across the
motor is 5V for 500ms - Distance 6cm
- Speed 12cm/sec
52Logical algorithm
Check RF Transmitter
System Off
ON
Pulse Sensors for Data
Compare Readings and RF Command
OFF
Different
Same
Steering Algorithm
Motor Steering Control
53Voltage regulator
LM78M05CT
12V
12V
12Vdc
12Vdc
LM78
LM78
LM78
5Vdc
5Vdc
5Vdc
CMOS
CMOS
Logic Circuit
54microcontroller
PIC16F877A
- Main brain for the system
- Reads signal from RF transmitter and enable
state transition - Pulse Ultrasonic Sensors and reads and evaluate
data received - Process algorithm for obstacle avoidance
- Outputs Logic to control CMOS to control Motor
- Process closed-loop state transition without
user interaction -
55Microcontroller
US_RX6
US_RX5
US_RX4
US_RX3
US_RX2
US_RX1
RECEIVER INPUT
CHANNEL SELECT
LED SIGNAL
STEERING
US_TX3
US_TX6
MOTOR -
US_TX5
MOTOR
US_TX4
US_TX2
LCD SERIAL
US_TX1
56LCD DISPLAY
BPI 216
- Easy to program and use
- Bright and Clear LCD
- Used for printing sensor readings
- Used for printing state of system and error
debugging
57Success
- Wireless Transmission
- Receiving data from sensors
- Control the Receiver using PIC
- PIC integration with sensors
- PIC integration with steering
- Current Amplification
- Running the Motor
58Challenges
- PIC programming
- Powering the Motor
- Figuring out steering control
- Current amplification
- Understanding the Transmitter
- and receiver
59The next steps
- Improve algorithm to accommodate more test cases
- Use one transmitter by using a PWM
- Add more sensors to enable more robust algorithm
and error checking detection - Implement it on a real vehicle by scaling the
range appropriately
60Questions?