AME 3623: Embedded Real-Time Systems

37
1 AME 3623: Embedded Real-Time Systems Andrew H. Fagg Symbiotic Computing Laboratory School of Computer Science University of Oklahoma Teaching Assistant: Gareth Basset

Transcript of AME 3623: Embedded Real-Time Systems

Page 1: AME 3623: Embedded Real-Time Systems

1

AME 3623: Embedded Real-Time Systems

Andrew H. FaggSymbiotic Computing Laboratory

School of Computer ScienceUniversity of Oklahoma

Teaching Assistant: Gareth Basset

Page 2: AME 3623: Embedded Real-Time Systems

Andrew H. Fagg: Embedded Real-Time Systems: Introduction

2

What is an Embedded System?

Page 3: AME 3623: Embedded Real-Time Systems

Andrew H. Fagg: Embedded Real-Time Systems: Introduction

3

What is an Embedded System?

• Computing system with a non-standard interface (often no keyboard or screen)

• Often involved in sensing and control (and may not even talk to a human)

• Typically a custom system for a very specific application

Page 4: AME 3623: Embedded Real-Time Systems

Andrew H. Fagg: Embedded Real-Time Systems: Introduction

4

What is an Embedded System?(cont)

• Limited processing capabilities:– Can be extremely small– Can require a small amount of power

• Can have significant real-time constraints– Act on inputs very quickly– Generate high-frequency outputs

• Often a higher expectation of reliability

Page 5: AME 3623: Embedded Real-Time Systems

Andrew H. Fagg: Embedded Real-Time Systems: Introduction

5

Examples of Embedded Systems

Page 6: AME 3623: Embedded Real-Time Systems

Andrew H. Fagg: Embedded Real-Time Systems: Introduction

6

Robotics

Mark TildenLos Alamos

National Labs and Wowwee

picture from Robosapiens

Page 7: AME 3623: Embedded Real-Time Systems

7

Humanoid Robotics

NASA/JSC Robonaut UMass Torso

Page 8: AME 3623: Embedded Real-Time Systems

8

Real-Time Robotic Control

Page 9: AME 3623: Embedded Real-Time Systems

9

Dual-Limb Coordination

Page 10: AME 3623: Embedded Real-Time Systems

Andrew H. Fagg: Embedded Real-Time Systems: Introduction

10

Personal Satellite Assistants

NASA Ames Research Center

picture from Robosapiens

Page 11: AME 3623: Embedded Real-Time Systems

Andrew H. Fagg: Embedded Real-Time Systems: Introduction

11

Wearable Computing

Page 12: AME 3623: Embedded Real-Time Systems

12

Intelligent Prosthetics

Hugh Herr MIT Leg Lab

picture from Robosapiens

Page 13: AME 3623: Embedded Real-Time Systems

Andrew H. Fagg: Embedded Real-Time Systems: Introduction

13

Page 14: AME 3623: Embedded Real-Time Systems

Andrew H. Fagg: Embedded Real-Time Systems: Introduction

14

Page 15: AME 3623: Embedded Real-Time Systems

Andrew H. Fagg: Embedded Real-Time Systems: Introduction

15

Andrew Ng (Stanford)

Page 16: AME 3623: Embedded Real-Time Systems

Andrew H. Fagg: Embedded Real-Time Systems: Introduction

16

RC Heli Example

Page 17: AME 3623: Embedded Real-Time Systems

Andrew H. Fagg: Embedded Real-Time Systems: Introduction

17

RC Heli Example II

Page 18: AME 3623: Embedded Real-Time Systems

Andrew H. Fagg: Embedded Real-Time Systems: Introduction

18

Sensor Networks

1000 sensor nodes

Page 19: AME 3623: Embedded Real-Time Systems

Andrew H. Fagg: Embedded Real-Time Systems: Introduction

19

Embedded Systems Challenges

Page 20: AME 3623: Embedded Real-Time Systems

Andrew H. Fagg: Embedded Real-Time Systems: Introduction

20

Embedded Systems Challenges

• Sensing the environment:– Sensors are typically far from ideal (noise,

nonlinearities, etc.)– Sensors fail– Hard to get a ‘complete’ view of the

environment• Affecting the environment through

“actuators”– Application can require fast, precise

responses

Page 21: AME 3623: Embedded Real-Time Systems

Andrew H. Fagg: Embedded Real-Time Systems: Introduction

21

Embedded Systems Challenges(cont)

• Testing/debugging can be very difficult: – Hard to identify and replicate all possible situations– Often involves the interaction of many different

components– Often no standard user interface– Limited on-board resources with which to record

system state

• Competing requirements of cost, complexity, design time, size, power…

Page 22: AME 3623: Embedded Real-Time Systems

Andrew H. Fagg: Embedded Real-Time Systems: Introduction

22

Embedded Systems Challenges(cont)

• Lack of reliability can be a killer ….. literally

Page 23: AME 3623: Embedded Real-Time Systems

Andrew H. Fagg: Embedded Real-Time Systems: Introduction

23

My Assumptions About You

• Circuits and sensors class (or equivalent): basic analog circuits

• Some background in programming– We will be using C for all four projects

• Everyone has a laptop that can be used for the projects

Page 24: AME 3623: Embedded Real-Time Systems

Andrew H. Fagg: Embedded Real-Time Systems: Introduction

24

Course Goals

• Gain an understanding of:– Basics of computer architecture– Theory of embedded system design– Practical issues in embedded system

implementation• Gain hands-on experience with embedded

systems• Learn communication and team-oriented

skills within and outside of your field

Page 25: AME 3623: Embedded Real-Time Systems

Andrew H. Fagg: Embedded Real-Time Systems: Introduction

25

Sources of Information• Required textbooks:

– Designing Embedded Hardware, John Catsoulis, O'Reilly, 2005, 2nd Edition, ISBN: 0-596-00755-8

– Embedded C Programming and the Atmel AVR, Richard H. Barnett, Sarah Cox, Larry O'Cull (2006), 2nd Edition, Thomson/Delmar Learning, ISBN: 1418039594

• Class web page: www.cs.ou.edu/~fagg/classes/ame3623_s07/

• Desire2Learn: learn.ou.edu

You are responsible for making sure that you have access to all of these resources

Page 26: AME 3623: Embedded Real-Time Systems

Andrew H. Fagg: Embedded Real-Time Systems: Introduction

26

Page 27: AME 3623: Embedded Real-Time Systems

Andrew H. Fagg: Embedded Real-Time Systems: Introduction

27

Class Schedule

www.cs.ou.edu/~fagg/classes/ame3623_s07/schedule.html

• Lecture plans• Required reading

As changes are made, they will be posted here

Page 28: AME 3623: Embedded Real-Time Systems

Andrew H. Fagg: Embedded Real-Time Systems: Introduction

28

Channels of Communication

• Lecture• Class email list: time-critical messages to

the class• Desire2Learn announcements• Desire2Learn discussion group: you may

post questions (and answers) • Private email or office hours for non-public

questions/discussions

Page 29: AME 3623: Embedded Real-Time Systems

Andrew H. Fagg: Embedded Real-Time Systems: Introduction

29

Grading

• Components of your grade:– Midterm exam: 10%– Final exam: 20%– Five homework assignments and several pop

quizzes: 30%– Four projects: 35%– In-class participation: 5%

• Grades will be posted on the Desire2Learn

• Final grades will be computed on a curve

Page 30: AME 3623: Embedded Real-Time Systems

Andrew H. Fagg: Embedded Real-Time Systems: Introduction

30

Exams

• Closed book/closed notes– Exception: you are allowed 1 page of your own notes

• Assigned seating

• No electronic devices

• Grading questions must be addressed before the returned exams leave the classroom

Page 31: AME 3623: Embedded Real-Time Systems

Andrew H. Fagg: Embedded Real-Time Systems: Introduction

31

Homework Assignments

• Individual work• Hand-in:

– Through the digital dropbox of Desire2Learn or hardcopy

– By 5:00 on the due date (no exceptions)

• Grading questions must be addressed within one week of being returned

Page 32: AME 3623: Embedded Real-Time Systems

Andrew H. Fagg: Embedded Real-Time Systems: Introduction

32

Group Projects• Four group projects will focus on sensor

processing and design of robot control circuits– Control of an X-UFO

• Project Topics:– Inter-processor communication – Finite-state machines and microcontrollers– Sensor interface and processing

Page 33: AME 3623: Embedded Real-Time Systems

Andrew H. Fagg: Embedded Real-Time Systems: Introduction

33

Group Projects (cont)

• Groups will be of size ~4 and will be assigned• Be ready to demonstrate project by the due date• Projects require more than a day to complete• Project reports in pdf or postscript format• Projects may be late:

– 0-24 hrs: 10% penalty– 24-48 hrs: 20% penalty– 48+ hrs: 100% penalty

Page 34: AME 3623: Embedded Real-Time Systems

Andrew H. Fagg: Embedded Real-Time Systems: Introduction

34

Laboratory Details

• Location: EL 124• Times: both myself and the TA will hold

our office hours in the lab– Once projects are assigned, we will have the

lab open for 26 hrs/week

• Laboratory policies are discussed in the syllabus

Page 35: AME 3623: Embedded Real-Time Systems

Andrew H. Fagg: Embedded Real-Time Systems: Introduction

35

Academic Conduct/Misconduct

Homework assignments:• All work must be your own: no looking at

or copying solutions from other students or from the net

• General discussion is OK (e.g., the fundamental skills that we are learning)

• When in doubt: ask

Page 36: AME 3623: Embedded Real-Time Systems

Andrew H. Fagg: Embedded Real-Time Systems: Introduction

36

Academic Conduct/Misconduct

Projects:• All work must be that of your group: no

looking at or copying solutions from other groups or from the net

• General discussion is (again) OK

Secure your data

Page 37: AME 3623: Embedded Real-Time Systems

Andrew H. Fagg: Embedded Real-Time Systems: Introduction

37

Next Time

• Analog circuits review• Readings: Designing Embedded Hardware

(DEH) – pp. 65-86 (through RC circuits)– pp. 90-93 (Diodes)