IO in Embedded Systems Martin Schöberl. Embedded IO2 Overview Input/Output Digital, Analog Translation Heater control example.

Slides:



Advertisements
Similar presentations
EMS1EP Lecture 8 Pulse Width Modulation (PWM)
Advertisements

Analog-to-Digital Converter (ADC) And
Digital to Analogue Conversion
Digital-to-Analog & Analog-to-Digital Conversion BJ Furman 17APR2014.
Data Acquisition Risanuri Hidayat.
Module 4: Analog programming blocks. Module Objectives Analyze a control task that uses analog inputs. Connect a potentiometer to LOGO! controller and.
Khaled A. Al-Utaibi  Digital Vs Analog Signals  Converting an Analog Signal to a Digital One  Reading Analog Sensors with the.
Potentiometer Electric circuit Cell or Battery Resistor Switch Bulb Earth/Ground LED.
Lecture 9: D/A and A/D Converters
Unit 4 Sensors and Actuators
Digital Signal Processing (DSP) Fundamentals. Overview What is DSP? Converting Analog into Digital –Electronically –Computationally How Does It Work?
Railway Foundation Electronic, Electrical and Processor Engineering.
Railway Foundation Electronic, Electrical and Processor Engineering.
Digital I/O Connecting to the Outside World
Digital to Analog Converters
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
Colorado Space Grant Consortium Gateway To Space ASEN 1400 / ASTR 2500 Class #12 Gateway To Space ASEN 1400 / ASTR 2500 Class #12 T-58.
Department of Electronic & Electrical Engineering Embedded system Aims: Introduction to: Hardware. Software Ideas for projects ? Robotics/Control/Sensors.
Open and Closed Loops Standard Grade Computing Studies.
An Introduction to Real time Systems by Dr. Amin Danial Asham.
Data Converters ELEC 330 Digital Systems Engineering Dr. Ron Hayne
DATA ACQUISITION Today’s Topics Define DAQ and DAQ systems Signals (digital and analogue types) Transducers Signal Conditioning - Importance of grounding.
Module 4: Analog programming blocks. Module Objectives Analyze a control task that uses analog inputs. Connect a potentiometer to LOGO! controller and.
ACOE2551 Microprocessors Data Converters Analog to Digital Converters (ADC) –Convert an analog quantity (voltage, current) into a digital code Digital.
1 4-Integrating Peripherals in Embedded Systems (cont.)
©2008 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. This material is protected under all copyright laws as they currently exist.
Final Control Chapter 7.
PH4705 & ET4305: Digital Sensors
Typical Microcontroller Purposes
Data Acquisition Systems
CS 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst Hybrid I/O – Pulses.
Lecture 15: Digital to Analog Converters Lecturers: Professor John Devlin Mr Robert Ross.
Chapter 10 Advanced Programming, PLC Interfacing, and Troubleshooting
Lesson 1.4. and ornot Logic Gate: A device that acts on input signals that it receives to produce an output signal (1 or 0). True = 1 False = 0.
Representing Numerical Data Analog Any signal that varies continuously over time Mechanical Pneumatic Hydraulic Electrical Digital Quantities are represented.
CEC 220 Digital Circuit Design Number Systems & Conversions Friday, January 9 CEC 220 Digital Circuit Design Slide 1 of 16.
Temperature Signal Simulator Sponsor: Emerson- Kent Burr Advisor- Dr. Semih Aslan Group: NPPH(2.4) Victor Pinones, Taylor Nash, Rey Perez, and Travis Howell.
CSCI1600: Embedded and Real Time Software Lecture 14: Input/Output II Steven Reiss, Fall 2015.
Microcontroller based system design Asst. Prof. Dr. Alper ŞİŞMAN.
Analog/Digital Conversion
Comparators, DAC, and ADC
Rebecca Bruce and Susan Reiser, May 2015 Analog Input and Output.
CEC 220 Digital Circuit Design Number Systems & Conversions Wednesday, Aug 26 CEC 220 Digital Circuit Design Slide 1 of 16.
Department of Electronic & Electrical Engineering Introduction to microcontrollers A microcontroller is a small computer on a single integrated circuit.
Throttle Arduino RC Receiver Stock Golf Cart Motor Controller Motor 1 PWM signal: Voltage: 0 – 5V Period = 22ms Positive Pulse Width: 1ms – 2ms Digital.
Closed Loop Temperature Control Circuit with LCD Display Mike Wooldridge ECE 4330 Embedded Systems.
Electrical signaldigital signal Actuators and acting.
Lecture Notes / PPT UNIT III
1 Summary Lecture: Part 1 Sensor Readout Electronics and Data Conversion Discovering Sensor Networks: Applications in Structural Health Monitoring.
Analog-Digital Conversion. Other types of ADC i. Dual Slope ADCs use a capacitor connected to a reference voltage. the capacitor voltage starts at zero.
Analog Circuits Hiroyuki Murakami. CONTENTS Structure of analog circuits Development of wide linear range CSA system Problem of analog circuits How to.
Networked Embedded Systems Sachin Katti & Pengyu Zhang EE107 Spring 2016 Lecture 13 Interfacing with the Analog World.
Lesson 1 PLC BASICS. PLC Definition  Programmable Logic Controllers are industrial computers that control machine and other applications.  PLC have.
Case Study #1 Microcontroller System. What is a microcontroller? A microcontroller can be considered a self-contained system with a processor, memory.
What is a DAC? A digital to analog converter (DAC) converts a digital signal to an analog voltage or current output DAC.
Digital-to-Analog Analog-to-Digital
3 Computing System Fundamentals
How to avoid catching things on fire.
Analog Input through POT
Arduino Analog I/O Analog input pins: 0 – 5
Engineering 4862 Microprocessors Lecture 25
MicroLogix Packaged Controllers
PIC18F458 Analog-to-Digital
CSCI1600: Embedded and Real Time Software
Analog versus Digital Systems
ADC and DAC Programming in AVR
Data Acquisition (DAQ)
Analogue Inputs and Processing
CSCI1600: Embedded and Real Time Software
Maker Education Manipulator
Presentation transcript:

IO in Embedded Systems Martin Schöberl

Embedded IO2 Overview Input/Output Digital, Analog Translation Heater control example

Embedded IO3 Input Usually simple No or minimal UI Examples Buttons Sensors (e.g. temperature) Camera

Embedded IO4 Output Again simple (UI) Output signal needs amplification (Solid-state) relays (On/Off) Pulse-Width Modulation (PWM) Failure on output? Broken wire Read back with an input

Embedded IO5 Digital IO 1/0 – On/Off Represented as electrical value E.g. 0=0V, 1=5V Translation to the real world Contact switches Relay Several IO bits/pins in one register

Embedded IO6 Analog IO Value range E.g. -20°C … 100°C Representation as electrical signal Voltage e.g. 0-20V Resistance issue Current 0-20mA Industry standard 4-20mA Value, <4mA broken wire

Embedded IO7 Analog/Digital Conversion Electrical signal to digital information Input: Analog/Digital Converter (ADC) Output: Digital/Analog Converter (DAC) Resolution in bits E.g. 8 bits => 0…255

Embedded IO8 Translation Example -20°C … 100°C => 4mA … 20mA 0mA … 20mA => 0 … 255 What value is read at 27°C? Is the temperature sensor linear?

Embedded IO9 Control Read input Calculate output Write output Continue this loop forever

Embedded IO10 Example: Temperature control For (;;) { int temp = readTemp(); if (temp < 27) { heaterOn = true; } else { heaterOn = false; } setHeater(heaterOn); waitForNextPeriod(); }

Embedded IO11 Heater Example cont. What happens around 27°C? On – Off – On – Off …. Not so good Heater does not like this Relay does not like this Solution Hysteresis (two thresholds)

Embedded IO12 Example: Heater revised for (;;) { int temp = readTemp(); if (temp < 27) { heaterOn = true; } else (temp > 30) { heaterOn = false; } else { // we keep the heater state } setHeater(heaterOn); waitForNextPeriod(); }

Embedded IO13 Summary IO is very simple Translation Physical world to electrical signals Electrical signals to digital information Almost no UI Control runs in a loop The control loop