Introducing Embedded Systems: A Cyber- Physical Approach Edward A. Lee Robert S. Pepper Distinguished Professor UC Berkeley Invited Keynote Talk Workshop.

Slides:



Advertisements
Similar presentations
Real-time Systems Lab, Computer Science and Engineering, ASU Please Standby Galileo Tech Talk at ASU Will Begin Shortly.
Advertisements

LabVIEW 7.1 Tutorial. Measurement Lab. MECH262-MECH261 Imran Haider Malik January 16, 2006.
Sensor Network Platforms and Tools
Presented by: Thabet Kacem Spring Outline Contributions Introduction Proposed Approach Related Work Reconception of ADLs XTEAM Tool Chain Discussion.
February 21, 2008 Center for Hybrid and Embedded Software Systems Cyber-Physical Systems (CPS): Orchestrating networked.
MotoHawk Training Model-Based Design of Embedded Systems.
Presenters: Adam Andy Andy Rachel
Lecture 1: Introduction II EEN 112: Introduction to Electrical and Computer Engineering Professor Eric Rozier, 1/16/2013.
Department of Computer Science and Electrical Engineering.
Overview of PTIDES Project
What disciplines students learn in Electrical and Computer Engineering Technology.
Digital Systems Emphasis for Electrical Engineering Students Digital Systems skills are very valuable for electrical engineers Digital systems are the.
Systems Engineering for Automating V&V of Dependable Systems John S. Baras Institute for Systems Research University of Maryland College Park
NSF Foundations of Hybrid and Embedded Software Systems UC Berkeley: Chess Vanderbilt University: ISIS University of Memphis: MSI A New System Science.
Chess Review October 4, 2006 Alexandria, VA Edited and presented by Educating a New Generation of Students in Embedded Systems Edward A. Lee Chair of EECS,
February 21, 2008 Center for Hybrid and Embedded Software Systems Organization Board of Directors Edward A. Lee, UC Berkeley.
Lee & Varaiya Introducing Signals and Systems The Berkeley Approach Edward A. Lee Pravin Varaiya UC Berkeley A computer without networking, audio, video,
Department of Electrical and Computer Engineering Texas A&M University College Station, TX Abstract 4-Level Elevator Controller Lessons Learned.
Chess Review May 11, 2005 Berkeley, CA Composable Code Generation for Distributed Giotto Tom Henzinger Christoph Kirsch Slobodan Matic.
Are “Embedded Systems" Just Systems Made with Small Computers? Chess: Center for Hybrid and Embedded Software Systems Invited Talk Artist International.
February 23, 2012 Center for Hybrid and Embedded Software Systems Organization Board of Directors Edward A. Lee, EECS Thomas.
Review of “Embedded Software” by E.A. Lee Katherine Barrow Vladimir Jakobac.
Define Embedded Systems Small (?) Application Specific Computer Systems.
Lecture161 Instrumentation Prof. Phillips March 14, 2003.
The Case for Precision Timed (PRET) Machines Edward A. Lee Professor, Chair of EECS UC Berkeley With thanks to Stephen Edwards, Columbia University. National.
Teaching Embedded Systems to Berkeley Undergraduates EECS124 at UC Berkeley co-developed by Edward A. Lee Sanjit A. Seshia Claire J. Tomlin
Design of Fault Tolerant Data Flow in Ptolemy II Mark McKelvin EE290 N, Fall 2004 Final Project.
7th Biennial Ptolemy Miniconference Berkeley, CA February 13, 2007 Cyber-Physical Systems: A Vision of the Future Edward A. Lee Robert S. Pepper Distinguished.
February 11, 2010 Center for Hybrid and Embedded Software Systems Cyber-Physical Systems (CPS): Orchestrating networked.
NSF Foundations of Hybrid and Embedded Software Systems UC Berkeley: Chess Vanderbilt University: ISIS University of Memphis: MSI A New System Science.
SEC PI Meeting Annapolis, May 8-9, 2001 Component-Based Design of Embedded Control Systems Edward A. Lee & Jie Liu UC Berkeley with thanks to the entire.
Center for Hybrid and Embedded Software Systems Jonathan Sprinkle Executive Director, CHESS Center for Hybrid and Embedded Software Systems UC Berkeley.
Chess Review October 4, 2006 Alexandria, VA Embedded Systems Education: Vanderbilt Edited and Presented by Janos Sztipanovits ISIS, Vanderbilt University.
Designing Predictable and Robust Systems Tom Henzinger UC Berkeley and EPFL.
November 18, 2004 Embedded System Design Flow Arkadeb Ghosal Alessandro Pinto Daniele Gasperini Alberto Sangiovanni-Vincentelli
MOBIES Project Progress Report Engine Throttle Controller Design Using Multiple Models of Computation Edward Lee Haiyang Zheng with thanks to Ptolemy Group.
1 CMPE1 Hands-on Computer Engineering Stephen Petersen Richard Hughey.
An Introduction to Real time Systems by Dr. Amin Danial Asham.
Lecture 7: Signal Processing V EEN 112: Introduction to Electrical and Computer Engineering Professor Eric Rozier, 2/27/13.
On the relation between software development and control function development in automotive embedded systems Stefan Kowalewski Embedded Software Laboratory.
REAL-TIME SOFTWARE SYSTEMS DEVELOPMENT Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical Engineering, WVU.
Designing a Multi-Disciplinary Hybrid Vehicle Systems Course Curriculum Suitable for Multiple Departments Dr. Vincent Winstead Assistant Professor Minnesota.
Tufts Wireless Laboratory School Of Engineering Tufts University “Network QoS Management in Cyber-Physical Systems” Nicole Ng 9/16/20151 by Feng Xia, Longhua.
Verification of Information Flow Properties in Cyber-Physical Systems Ravi Akella, Bruce McMillin Department of Computer Science Missouri University of.
EMBEDDED SYSTEMS FOUNDATIONS OF CYBER-PHYSICAL SYSTEMS PETER MARWEDEL Embedded System Design.
INTEGRATED SYSTEMS 1205 Technology Education A Curriculum Review Sabine Schnepf-Comeau July 19, 2011 ED 4752.
Micro processor and Micro Controllers
Department of Mechanical Engineering The University of Strathclyde, Glasgow Hybrid Systems: Modelling, Analysis and Control Yan Pang Department of Mechanical.
Hybrid Systems Concurrent Models of Computation EEN 417 Fall 2013.
Presenters: Adam Andy Andy
Tufts University School Of Engineering Tufts Wireless Laboratory TWL Direction Almir Davis 09/28/20091.
Model-Driven Analysis Frameworks for Embedded Systems George Edwards USC Center for Systems and Software Engineering
The Balance Between Theoretical and Practical Work Within Electrical and Computer Engineering Courses Dr. Bahawodin Baha March Development Partnerships.
REAL-TIME SOFTWARE SYSTEMS DEVELOPMENT Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical Engineering, WVU.
What is Electrical Engineering?
An Event-Based Robotic Sensors and Actuators Collection API from A Computer Science Perspective – An implementation in Mindstorms NXT Brick Li-Ren Chien.
UNIT I. EMBEDDED SYSTEM It is an electrical/electro-mechanical system designed to perform a specific function. It is a combination of hardware and software.
I ndustrial Cy ber- Ph ysical Systems October 16, 2015 CyPhySim CyPhySim is an open-source simulator for cyber-physical systems. The.
What’s Ahead for Embedded Software? (Wed) Gilsoo Kim
The Level-2 Projects for Course Clusters Haojun Sun College of Engineering Shantou University.
EKT 314/4 WEEK 2 : CHAPTER 1 INTRODUCTION TO EI ELECTRONIC INSTRUMENTATION.
February 11, 2016 Center for Hybrid and Embedded Software Systems Organization Faculty Edward A. Lee, EECS Alberto Sangiovanni-Vincentelli,
February 14, 2013 Center for Hybrid and Embedded Software Systems Organization Faculty Edward A. Lee, EECS Alberto Sangiovanni-Vincentelli,
Virtual Lab on Automation Systems A Proposal under Mechatronics Laboratory Presented By Tanuja Sheorey PDPM IIITDM Jabalpur.
Introduction To Modeling and Simulation 1. A simulation: A simulation is the imitation of the operation of real-world process or system over time. A Representation.
EE 249 Embedded Systems Design
Model-Driven Analysis Frameworks for Embedded Systems
Retargetable Model-Based Code Generation in Ptolemy II
An Embedded Systems Course and Course
An overview of the CHESS Center
Presentation transcript:

Introducing Embedded Systems: A Cyber- Physical Approach Edward A. Lee Robert S. Pepper Distinguished Professor UC Berkeley Invited Keynote Talk Workshop on Embedded Systems Education (WESE) ES Week Grenoble, France October 15, 2009

Lee, Berkeley 2 Courtesy of Kuka Robotics Corp. Cyber-Physical Systems (CPS): Orchestrating networked computational resources with physical systems Courtesy of Doug Schmidt Power generation and distribution Courtesy of General Electric Military systems: E-Corner, Siemens Transportation (Air traffic control at SFO) Avionics Telecommunications Factory automation Instrumentation (Soleil Synchrotron) Daimler-Chrysler Automotive Building Systems

Lee, Berkeley 3 Where CPS Differs from the traditional embedded systems problem: The traditional embedded systems problem: Embedded software is software on small computers. The technical problem is one of optimization (coping with limited resources and extracting performance). The CPS problem: Computation and networking integrated with physical processes. The technical problem is managing dynamics, time, and concurrency in networked computational + physical systems.

Lee, Berkeley 4 Content of an Embedded Systems Course Traditional focus Hardware interfacing Interrupts Memory systems C programming Assembly language FPGA design RTOS design … CPS focus Modeling Timing Dynamics Imperative logic Concurrency Verification …

Lee, Berkeley 5 A Theme in our CPS Courses: Model-based design Models are abstractions of systems: structural (OO design) ontological (type systems) imperative logic (“procedural epistemology”) functional logic actor-oriented (including dataflow models) All of these have their place…

Lee, Berkeley 6 Cyber Physical Systems: Computational + Physical CPS is Multidisciplinary Computer Science: Carefully abstracts the physical world System Theory: Deals directly with physical quantities

Lee, Berkeley 7 The Educational Challenge (1) Models for the physical world and for computation diverge. physical: time continuum, ODEs, dynamics computational: a “procedural epistemology,” logic There is a huge cultural gap. Physical system models must be viewed as semantic frameworks, and theories of computation must be viewed as alternative ways of talking about dynamics.

Lee, Berkeley 8 An Advantage: A Unified EECS Department

Lee, Berkeley 9 The Educational Challenge (2) Students are taught to use modeling techniques, not to evaluate modeling techniques. “this is how computers work” “this equation describes that feedback circuit” rather than “this is how VonNeumann proposed that we control automatic machines” “ignoring the intrinsic randomness and latency in this circuit, Black proposed that we could idealize its behavior in this way” Students must be taught meta-modeling, not just modeling. They must learn to think critically about modeling methods, not just about models.

Lee, Berkeley 10 The Graduate Curriculum We have developed courses in: Hybrid Systems Embedded Software and Systems Design Algorithmic CAD Model Integrated Computing A key challenge is to define the durable intellectual heart of hybrid and embedded systems, not on ad hoc engineering practice.

Lee, Berkeley 11 New Undergraduate Course (Spring 2008) “Introduction to Embedded Systems” This course is intended to introduce students to the design and analysis of computational systems that interact with physical processes. Applications of such systems include medical devices and systems, consumer electronics, toys and games, assisted living, traffic control and safety, automotive systems, process control, energy management and conservation, environmental control, aircraft control systems, communications systems, instrumentation, critical infrastructure control (electric power, water resources, and communications systems for example), robotics and distributed robotics (telepresence, telemedicine), defense systems, manufacturing, and smart structures. A major theme of this course will be on the interplay of practical design with formal models of systems, including both software components and physical dynamics. A major emphasis will be on building high confidence systems with real-time and concurrent behaviors. Cyber-Physical Systems Model-Based Design Sensors and Actuators Interfacing to Sensors and Actuators Actors, Dataflow Modeling Modal Behavior Concurrency: Threads and Interrupts Hybrid Systems Simulation Specification; Temporal Logic Reachability Analysis Controller Synthesis Control Design for FSMs and ODEs Real-Time Operating Systems (RTOS) Scheduling: Rate-Monotonic and EDF Concurrency Models Execution Time Analysis Localization and Mapping Real-Time Networking Distributed Embedded Systems

Lee, Berkeley 12 Modeling Physical Dynamics

Lee, Berkeley 13 Feedback Control Problem A helicopter without a tail rotor, like the one below, will spin uncontrollably due to the torque induced by friction in the rotor shaft. Control system problem: Apply torque using the tail rotor to counterbalance the torque of the top rotor.

Lee, Berkeley 14 Actor Model of Systems A system is a function that accepts an input signal and yields an output signal. The domain and range of the system function are sets of signals, which themselves are functions. Parameters may affect the definition of the function S.

Lee, Berkeley 15 Proportional controller desired angular velocity error signal net torque Note that the angular velocity appears on both sides, so this equation is not trivial to solve.

Lee, Berkeley 16 State Machines and Modal Models Modal models combine such actor models with state machines, where each state of the machine represents a mode of operation.

Lee, Berkeley 17 Hybrid Systems are Modal Models Example: Spring-mass system with collisions A model of a spring-mass system with collisions: Consider the velocity of each mass. Is it continuous? What about the acceleration?

Lee, Berkeley 18 A bit about Simulation Technologies, both Discrete and Continuous A basic continuous- time model describes an ordinary differential equation (ODE).

Lee, Berkeley 19 Lab Exercise – Version 1 Train a robot to climb a hill. We use the iRobot Create (the platform for the Roomba vacuum cleaner) with a pluggable Command Module containing an 8-bit Atmel microcontroller. Students have to extend it with sensors, construct models of its behavior, design a control system, and implement the control system in C.

Lee, Berkeley 20 Model-Based Design Solution

Lee, Berkeley 21 Real-World Version: Modal Model (Finite- State Machine) for Engine Control Source: Delphi Automotive Systems (2001)

Lee, Berkeley 22 Sensors: Spring-Mass-Damper Model of an Accelerometer: Use as a Tilt Sensor By Newton’s second law, F=ma, gravitational force and acceleration have the same effect (up to a scaling constant)

Lee, Berkeley 23 Silicon Accelerometer Design comes from Berkeley The Berkeley Sensor and Actuator Center (BSAC) created the first silicon microaccelerometers, MEMS devices now used in airbag systems, computer games, disk drives (drop sensors), etc. M. A. Lemkin, “Micro Accelerometer Design with Digital Feedback Control”, Ph.D. dissertation, EECS, University of California, Berkeley, Fall 1997

Lee, Berkeley 24 What Sensors to Use: Kingvale Blower Berkeley PATH Project, March, 2005

Lee, Berkeley 25 Sensors used here: Magnetometers A very common type is the Hall Effect magnetometer. Charge particles (electrons, 1) flow through a conductor (2) serving as a Hall sensor. Magnets (3) induce a magnetic field (4) that causes the charged particles to accumulate on one side of the Hall sensor, inducing a measurable voltage difference from top to bottom. The four drawings at the right illustrate electron paths under different current and magnetic field polarities. Image source: Wikipedia Commons Edwin Hall discovered this effect in 1879.

Lee, Berkeley 26 Design Issues with Sensors Calibration Relating measurements to the physical phenomenon Can dramatically increase manufacturing costs Nonlinearity Measurements may not be proportional to physical phenomenon Correction may be required Feedback can be used to keep operating point in the linear region Sampling Aliasing Missed events Noise Analog signal conditioning Digital filtering Introduces latency Students study these problems using LabVIEW.

Lee, Berkeley 27 A thought experiment: Browser of the future? (courtesy of Ras Bodik, UCB)

Lee, Berkeley 28 Other Topics Temporal logic Reachability Verification Controller synthesis Concurrency: threads and interrupts Real-time operating systems Concurrent models of computation

Lee, Berkeley 29 Lab Structure 5 weeks of structured labs introducing students to some of the tools of the trade. 10 weeks of group project efforts.

Lee, Berkeley 30 Tools Used in the Lab Nintendo Wii LabVIEW iRobot Create Embedded C Microcontroller

Lee, Berkeley 31 Version 2: Modified Platform –iRobot Create –Luminary Micro LM3s8962 (ARM) –ADXL-322 accelerometer –BlueSMiRF Bluetooth radio –Custom PCB for power and USB

Lee, Berkeley 32 Structured Labs followed by Team Projects Hill Climb –Sensing –Controller synthesis –Actuation Embedded C NI LabVIEW –Simulation –Embedded

Lee, Berkeley 33 Example Class Project May 16, 2008 One of the five project teams developed a balancing robot inspired by the Segway. They used a Nintendo Wiimote as a controller communicating with a PC running LabVIEW, communicating with a Lego Mindstorm NXT, which they programmed in C.

Lee, Berkeley 34 Example Class Project Robot Mapping & Localization Richard Schmidt Christopher Bakker Jeff C. Jensen This team mounted lasers and photo detectors on instances of the iRobot Create platform and programmed the robots to identify their positions relative to one another and communicate wirelessly to a mapping application running on a host PC.

Lee, Berkeley 35 The Prerequisite Challenge Core course Introduction to Embedded Systems

Lee, Berkeley 36 The Prerequisite Challenge Core course Prerequisites Structure and Interpretation of Signals and Systems Machine Structures Discrete Mathematics and Probability Theory

Lee, Berkeley 37 The Prerequisite Challenge Core course Prerequisites Defensible prerequisites Random processes Transducers Signals and Systems DSP Robotics Control Microcomputer interfacing Digital Systems Operating Systems Software Engineering Algorithms

Lee, Berkeley 38 The Prerequisite Challenge Core course Prerequisites Defensible prerequisites Transitive closure Random processes Transducers Signals and Systems DSP Robotics Control Microcomputer interfacing Digital Systems Operating Systems Software Engineering Algorithms

Lee, Berkeley 39 Conclusion A reductionist approach (where we teach all the foundations first) cannot work! We have to be prepared to review topics as needed, and deal with a mix of backgrounds in the students. The intellectual core is MODELS (as approximations, as abstractions, as ways of understanding interaction, etc.).