Embedded Systems Lecture 2: Interfacing with the Environment. Björn Franke University of Edinburgh

Similar documents
Embedded System Hardware

Hardware Platforms and Sensors

Analogue Interfacing. What is a signal? Continuous vs. Discrete Time. Continuous time signals

Data Converters. Dr.Trushit Upadhyaya EC Department, CSPIT, CHARUSAT

EE251: Tuesday October 10

UNIT III Data Acquisition & Microcontroller System. Mr. Manoj Rajale

Advantages of Analog Representation. Varies continuously, like the property being measured. Represents continuous values. See Figure 12.

System on a Chip. Prof. Dr. Michael Kraft

Design IV. E232 Spring 07

Analog I/O. ECE 153B Sensor & Peripheral Interface Design Winter 2016

An Overview of Linear Systems

ELG3336 Design of Mechatronics System

EECS 373 Design of Microprocessor-Based Systems

Analog-Digital Interface

PRESENTED BY HUMANOID IIT KANPUR

FYS3240 PC-based instrumentation and microcontrollers. Signal sampling. Spring 2015 Lecture #5

Lab.3. Tutorial : (draft) Introduction to CODECs

Digital Sampling. This Lecture. Engr325 Instrumentation. Dr Curtis Nelson. Digital sampling Sample rate. Bit depth. Other terms. Types of conversion.

ELG3336: Converters Analog to Digital Converters (ADCs) Digital to Analog Converters (DACs)

FYS3240 PC-based instrumentation and microcontrollers. Signal sampling. Spring 2017 Lecture #5

Analog to Digital Converters

Data acquisition and instrumentation. Data acquisition

Analog-to-Digital Converter (ADC) And Digital-to-Analog Converter (DAC)

Ch 5 Hardware Components for Automation

Lecture Schedule: Week Date Lecture Title

EL6483: Sensors and Actuators

MECE 3320 Measurements & Instrumentation. Data Acquisition

Electronics A/D and D/A converters

P a g e 1. Introduction

Chapter 7. Introduction. Analog Signal and Discrete Time Series. Sampling, Digital Devices, and Data Acquisition

IT.MLD900 SENSORS AND TRANSDUCERS TRAINER. Signal Conditioning

Analog to Digital Conversion

Electronic Systems - B1 23/04/ /04/ SisElnB DDC. Chapter 2

ELECTRONIC SYSTEMS. Introduction. B1 - Sensors and actuators. Introduction

Introduction to Discrete-Time Control Systems

Analytical Chemistry II

Digital to Analog Conversion. Data Acquisition

Analog to digital and digital to analog converters

CENG4480 Lecture 04: Analog/Digital Conversions

Communications IB Paper 6 Handout 3: Digitisation and Digital Signals

Lecture 3: Sensors, signals, ADC and DAC

Analog to Digital Conversion

Digital Design Laboratory Lecture 7. A/D and D/A

Advanced Digital Signal Processing Part 2: Digital Processing of Continuous-Time Signals

Chapter 2 Analog-to-Digital Conversion...

DSP Project. Reminder: Project proposal is due Friday, October 19, 2012 by 5pm in my office (Small 239).

PHYS225 Lecture 22. Electronic Circuits

MSK4310 Demonstration

Analog/Digital and Sampling

WIRELESS DC MOTOR SPEED AND DIRECTION CONTROL USING RF COMMUNICATION

Sampling and Reconstruction of Analog Signals

10. Chapter: A/D and D/A converter principles

Introduction. These two operations are performed by data converters : Analogue-to-digital converter (ADC) Digital-to-analogue converter (DAC)

Chapter 2 Signal Conditioning, Propagation, and Conversion

II Year (04 Semester) EE6403 Discrete Time Systems and Signal Processing

Basic Concepts in Data Transmission

! Where are we on course map? ! What we did in lab last week. " How it relates to this week. ! Sampling/Quantization Review

EECS 373 Design of Microprocessor-Based Systems

Microprocessors & Interfacing

The operational amplifier

Analog Input and Output. Lecturer: Sri Parameswaran Notes by: Annie Guo

Actuator Components 2

Devices and Op-Amps p. 1 Introduction to Diodes p. 3 Introduction to Diodes p. 4 Inside the Diode p. 6 Three Diode Models p. 10 Computer Circuit

ECE 556 BASICS OF DIGITAL SPEECH PROCESSING. Assıst.Prof.Dr. Selma ÖZAYDIN Spring Term-2017 Lecture 2

CRN: MET-487 Instrumentation and Automatic Control June 28, 2010 August 5, 2010 Professor Paul Lin

Cyber-Physical Systems ADC / DAC

Switched Mode Power Conversion Prof. L. Umanand Department of Electronics Systems Engineering Indian Institute of Science, Bangalore

CHAPTER ELEVEN - Interfacing With the Analog World

CHAPTER 7 HARDWARE IMPLEMENTATION

In The Name of Almighty. Lec. 2: Sampling

Design Implementation Description for the Digital Frequency Oscillator

ni.com Sensor Measurement Fundamentals Series


CMPT 318: Lecture 4 Fundamentals of Digital Audio, Discrete-Time Signals

Chapter 10 Digital PID

Continuous vs. Discrete signals. Sampling. Analog to Digital Conversion. CMPT 368: Lecture 4 Fundamentals of Digital Audio, Discrete-Time Signals

SPEED CONTROL OF DC MOTOR USING PWM TECHNIQUE

A-D and D-A Converters

Embedded System Hardware - Reconfigurable Hardware -

DATA CONVERSION AND LAB (17.368) Fall Class # 07. October 16, 2008

Data Acquisition: A/D & D/A Conversion

EEE3410 Microcontroller Applications Department of Electrical Engineering. Lecture 10. Analogue Interfacing. Vocational Training Council, Hong Kong.

The quality of the transmission signal The characteristics of the transmission medium. Some type of transmission medium is required for transmission:

Figure 1.1 Mechatronic system components (p. 3)

Considerations for Analog Input and Output

CS545 Contents XIV. Components of a Robotic System. Signal Processing. Reading Assignment for Next Class

ELG4139: Converters Analog to Digital Converters (ADCs) Digital to Analog Converters (DACs)


Dr. Cahit Karakuş ANALOG SİNYALLER

ELT 215 Operational Amplifiers (LECTURE) Chapter 5

PC-based controller for Mechatronics System

Basic Harris DX Transmitter Tutorial

CT111 Introduction to Communication Systems Lecture 9: Digital Communications

MULTIMEDIA SYSTEMS

Hidden Active Cellphone Detector.

FRIDAY, 18 MAY 1.00 PM 4.00 PM. Where appropriate, you may use sketches to illustrate your answer.

Signal Sampling. Sampling. Sampling. Sampling. Sampling. Sampling

Control Design for Servomechanisms July 2005, Glasgow Detailed Training Course Agenda

ECET 211 Electric Machines & Controls Lecture 4-2 Motor Control Devices: Lecture 4 Motor Control Devices

SYLLABUS of the course BASIC ELECTRONICS AND DIGITAL SIGNAL PROCESSING. Master in Computer Science, University of Bolzano-Bozen, a.y.

Transcription:

Embedded Systems Lecture 2: Interfacing with the Environment Björn Franke University of Edinburgh

Overview Interfacing with the Physical Environment Signals, Discretisation Input (Sensors) Output (Actuators) Analog/Digital Conversion, Digital/Analog Conversion

Interfacing with the Physical Environment CPS & ES hardware is frequently used in a loop ( hardware in a loop ): Cyber-physical systems (!)

Sensors Capture physical/chemical quantity and convert to electrical quantity Sensors for many physical and chemical quantities, including weight, velocity, acceleration, electrical current, voltage, temperatures, and chemical compounds. Many physical effects used for constructing sensors. law of induction (generation of voltages in a magnetic field), light-electric effects,... Huge amount of sensors designed in recent years.

Sensors - Examples Acceleration Sensor Temperature Sensor, Pressure Sensor Image Sensor Rain sensors for wiper control, Proximity sensors, Engine control sensors ( Sensors multiply like rabbits [ITT automotive]) Hall effect sensors,... Deliver electrical representation of original physical/chemical quantity

Signals Sensors generate signals Definition: a signal s is a mapping from the time domain D T to a value domain D V : s : D T D V D T : continuous or discrete time domain D V : continuous or discrete value domain.

Discretisation of Time Digital computers require discrete sequences of physical values s : D T D V Discrete time domain! Sample-and-hold circuits

Sample and Hold Clocked transistor + capacitor; Capacitor stores sequence values e(t) is a mapping R R h(t) is a sequence of values or a mapping Z R

Aliasing Periods of p=8,4,1 Indistinguishable if sampled at integer times, p s =1

Sampling Theorem! Reconstruction impossible, if not sampling frequently enough How frequently do we have to sample? Nyquist criterion (sampling theory): Aliasing can be avoided if we restrict the frequencies of the incoming signal to less than half of the sampling rate. p s < ½ p N where p N is the period of the fastest sine wave or f s > 2 f N where f N is the frequency of the fastest sine wave f N is called the Nyquist frequency, f s is the sampling rate.

Anti-Aliasing Filter A filter is needed to remove high frequencies e 4 (t) changed into e 3 (t) Ideal filter Realizable filter f s /2 f s

Discretisation of Values Digital computers require digital form of physical values s: D T D V Discrete value domain!a/d-conversion; many methods with different speeds.

Flash A/D Converter No decoding of h(t) > V ref Encoding of voltage intervals 11 10 01 00 V ref /4 V ref /2 3V ref /4 V ref h(t)

Resolution " Resolution (in bits): number of bits produced " Resolution Q (in volts): difference between two input voltages causing the output to be incremented by 1 Q: resolution in volts per step V FSR : difference between largest and smallest voltage n: number of voltage intervals Example: Q = V ref /4 for the previous slide

Quantisation Noise h(t) w(t) Assuming rounding (tr uncating) towards 0 w(t)-h(t)

Signal to Noise Ratio e.g.: 20 log 10 (2)=6.02 decibels Signal to noise for ideal n-bit converter : n * 6.02 + 1.76 [db] e.g. 98.1 db for 16-bit converter, ~ 160 db for 24-bit converter Additional noise for non-ideal converters

Actuators Huge variety of actuators and output devices. Indicator lights (LED), LCD screen,... Relais, Optocouplers,... Motor, motorised valves, heaters,... Speakers, Buzzers,... Analog output: Digital-Analog-Converters

Digital/Analog Conversion Various types, can be quite simple, or more advanced.

Digital/Analog Conversion Loop rule:! In general: Junction rule:! I ~ nat (x), where nat(x): natural number represented by x; Hence: Op-amp turns current I ~ nat (x) into a voltage ~ nat (x)

Processing Chain * Assuming zero-order hold * Possible to reconstruct input signal?

Pulse Width Modulation Commonly used technique for controlling power to inertial electrical devices Average value of voltage (and current) fed to the load is controlled by turning the switch between supply and load on and off at a fast pace The longer the switch is on compared to the off periods, the higher the power supplied to the load is Made practical by modern electronic power switches Greater efficiency Switching mode voltage regulation - lower losses. Near lossless when off. RDS,On is typically low in MOSFET. Linear voltage regulation - higher losses Waste excess voltage in control element (transistor) as heat

Pulse Width Modulation

Summary Embedded System operates in physical environment: interfacing Discretisation: Time/Values Sensors: A/D Conversion Actuators: D/A Conversion, PWM

Preview Models of Computation