Top Banner
1 Yale Autonomous Vehicle Project: Implementing an Embedded System with an EBX Form Factor PC System and PIC Microcontrollers
32

1 Yale Autonomous Vehicle Project: Implementing an Embedded System with an EBX Form Factor PC System and PIC Microcontrollers.

Dec 20, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 1 Yale Autonomous Vehicle Project: Implementing an Embedded System with an EBX Form Factor PC System and PIC Microcontrollers.

1

Yale Autonomous Vehicle Project:

Implementing an Embedded System with an

EBX Form Factor PC System and PIC Microcontrollers

Page 2: 1 Yale Autonomous Vehicle Project: Implementing an Embedded System with an EBX Form Factor PC System and PIC Microcontrollers.

2

Team Members:

Mike Liu Ethan Bregman Alan Ghelberg

Andy Nelson Andy Graham Jimmy Su

Page 3: 1 Yale Autonomous Vehicle Project: Implementing an Embedded System with an EBX Form Factor PC System and PIC Microcontrollers.

3

Presentation Outline

•Basic Overview of Robot

•Example Programs

•Benefits of the EBX-Form Factor

Page 4: 1 Yale Autonomous Vehicle Project: Implementing an Embedded System with an EBX Form Factor PC System and PIC Microcontrollers.

4

Yale Autonomous Vehicle Project:

Page 5: 1 Yale Autonomous Vehicle Project: Implementing an Embedded System with an EBX Form Factor PC System and PIC Microcontrollers.

5

Yale Autonomous Vehicle Project:

Page 6: 1 Yale Autonomous Vehicle Project: Implementing an Embedded System with an EBX Form Factor PC System and PIC Microcontrollers.

6

Yale Autonomous Vehicle Project:

Page 7: 1 Yale Autonomous Vehicle Project: Implementing an Embedded System with an EBX Form Factor PC System and PIC Microcontrollers.

7

Yale Autonomous Vehicle Project:

Page 8: 1 Yale Autonomous Vehicle Project: Implementing an Embedded System with an EBX Form Factor PC System and PIC Microcontrollers.

8

Yale Autonomous Vehicle Project:

Page 9: 1 Yale Autonomous Vehicle Project: Implementing an Embedded System with an EBX Form Factor PC System and PIC Microcontrollers.

9

Yale Autonomous Vehicle Project:

Page 10: 1 Yale Autonomous Vehicle Project: Implementing an Embedded System with an EBX Form Factor PC System and PIC Microcontrollers.

10

Basic Block Diagram

EBX-Form Factor

PC System

Compass

&

Odometry

LCD Output

&

Keypad Input

Motor Control Sonar/GPS

COM1 COM2 COM3 COM4

Page 11: 1 Yale Autonomous Vehicle Project: Implementing an Embedded System with an EBX Form Factor PC System and PIC Microcontrollers.

11

Basic Block Diagram

EBX-Form Factor

PC System

COM1 COM2 COM3 COM4

Page 12: 1 Yale Autonomous Vehicle Project: Implementing an Embedded System with an EBX Form Factor PC System and PIC Microcontrollers.

12

Basic Block Diagram (PIC Level)

EBX-Form Factor

PC System

COM1 COM2 COM3 COM4

Page 13: 1 Yale Autonomous Vehicle Project: Implementing an Embedded System with an EBX Form Factor PC System and PIC Microcontrollers.

13

Physical Locations of Systems

Page 14: 1 Yale Autonomous Vehicle Project: Implementing an Embedded System with an EBX Form Factor PC System and PIC Microcontrollers.

14

Example Programs

•Turn.c

•Forward2.c

•Full5.c

Page 15: 1 Yale Autonomous Vehicle Project: Implementing an Embedded System with an EBX Form Factor PC System and PIC Microcontrollers.

15

Example Programs

•Turn.c

Page 16: 1 Yale Autonomous Vehicle Project: Implementing an Embedded System with an EBX Form Factor PC System and PIC Microcontrollers.

16

Flow Chart

•Turn.cInitialize COM Ports

Initialize Display

Initialize Variables

Get Time

Check to see if 90 ms have passed

If so, parse COM1 RS232 String Packets

Yes

No

Print to Screen Results

Adjust Heading Subprogram

Page 17: 1 Yale Autonomous Vehicle Project: Implementing an Embedded System with an EBX Form Factor PC System and PIC Microcontrollers.

17

Flow Chart

•Adjust Heading Subprogram

Get Heading Error Given

Current Heading and Destination

Heading

Compute Left Speed

Compute Right Speed

Output to Motor Control

Page 18: 1 Yale Autonomous Vehicle Project: Implementing an Embedded System with an EBX Form Factor PC System and PIC Microcontrollers.

18

Flow Chart

•Get Heading Error Subprogram

Current Heading: 20

Current Heading: 300

Destination Heading: 10

Reference Point: 360Destination

Heading: 310

Error Formula=

Ref-Current+Destination

10 degrees to right

10 degrees to left

Error Formula = 360-20+10 = 350 degree clockwise

Error Formula = 360-300+310 =

370 degree clockwise

Page 19: 1 Yale Autonomous Vehicle Project: Implementing an Embedded System with an EBX Form Factor PC System and PIC Microcontrollers.

19

Flow Chart

•Get Heading Error Subprogram

Destination in counter clock wise direction?

Diff >= 180

Return Counter

Clockwise Spin Amount

(Negative)

-180<diff<-1

Yes

Destination Reached?

Diff==0?

Return O

Destination in clock

wise direction?

Diff < 180

Return Clockwise Spin

Amount (Positive)

1<diff<180

Yes Yes

Get Counterclockwise difference from

reference value of 360 degrees

Page 20: 1 Yale Autonomous Vehicle Project: Implementing an Embedded System with an EBX Form Factor PC System and PIC Microcontrollers.

20

Example Programs

•Forward2.c

Page 21: 1 Yale Autonomous Vehicle Project: Implementing an Embedded System with an EBX Form Factor PC System and PIC Microcontrollers.

21

Flow Chart

•Forward2.cInitialize COM Ports

Initialize Display

Initialize Variables

Get Time

Check to see if 90 ms have passed

If so, parse COM1 RS232 String Packets

Yes

No

Print to Screen Results

Update Global Variable Counters

Check to see if “#”

has been

pressed

Reset Global Variable Counters

Yes

No

Page 22: 1 Yale Autonomous Vehicle Project: Implementing an Embedded System with an EBX Form Factor PC System and PIC Microcontrollers.

22

Example Programs

•Full5.c

Page 23: 1 Yale Autonomous Vehicle Project: Implementing an Embedded System with an EBX Form Factor PC System and PIC Microcontrollers.

23

Flow Chart

•Full5.cInitialize COM Ports

Startup Display

Main Menu

Get Menu Selection

“#” Pressed?

No

Update Display Feedback

Playback program?

Recording program?

DiagnosticMenu?

Yes

Yes

Yes

Playback Program

Playback Program

Yes Yes

Yes

Diagnostic Menu

Get Menu Selection

“#” Pressed?

Update Display Feedback

No

Manual Control?

Connect the Dots?

Yes Yes

Manual Control Program

Connect the Dots Program

Yes Yes

Find Heading?

Yes

Find Heading Program

Yes

Page 24: 1 Yale Autonomous Vehicle Project: Implementing an Embedded System with an EBX Form Factor PC System and PIC Microcontrollers.

24

Benefits of the EBX-Form Factor

•Low-Power

•Small Size

•PC-Compatible

•PC/104 Compatible

•4 COM Ports Built-In

•Solid-State Flash Disk

Page 25: 1 Yale Autonomous Vehicle Project: Implementing an Embedded System with an EBX Form Factor PC System and PIC Microcontrollers.

25

Benefits of the EBX-Form Factor

•Low-Power

Page 26: 1 Yale Autonomous Vehicle Project: Implementing an Embedded System with an EBX Form Factor PC System and PIC Microcontrollers.

26

Benefits of the EBX-Form Factor

•Small Size

Page 27: 1 Yale Autonomous Vehicle Project: Implementing an Embedded System with an EBX Form Factor PC System and PIC Microcontrollers.

27

Benefits of the EBX-Form Factor

•PC-Compatible

Page 28: 1 Yale Autonomous Vehicle Project: Implementing an Embedded System with an EBX Form Factor PC System and PIC Microcontrollers.

28

Benefits of the EBX-Form Factor

•Powerful CPU

Page 29: 1 Yale Autonomous Vehicle Project: Implementing an Embedded System with an EBX Form Factor PC System and PIC Microcontrollers.

29

Benefits of the EBX-Form Factor

•PC/104 Compatible

Page 30: 1 Yale Autonomous Vehicle Project: Implementing an Embedded System with an EBX Form Factor PC System and PIC Microcontrollers.

30

Benefits of the EBX-Form Factor

•4 COM Ports Built-In

Page 31: 1 Yale Autonomous Vehicle Project: Implementing an Embedded System with an EBX Form Factor PC System and PIC Microcontrollers.

31

Benefits of the EBX-Form Factor

•Solid-State Flash Disk

Page 32: 1 Yale Autonomous Vehicle Project: Implementing an Embedded System with an EBX Form Factor PC System and PIC Microcontrollers.

32

Figure KEYPAD

1 2 3

4 5 6

7 8 9

* 0 #

B G L

C H M

D I N

E J O