Outlines. Examples. Hardware Interface. What s Embedded Systems? Krerk Piromsopa, Ph.D. Department of Computer Engineering Chulalongkorn University

Similar documents
Introduction to Real-Time Systems

Programming and Interfacing

Activity 4: Due before the lab during the week of Feb

Building an Analog Communications System

5 Channel Multifunctional PWM Controller. HomLiCon LCH5T. Technical Specifications

Unit level 5 Credit value 15. Introduction. Learning Outcomes

νµθωερτψυιοπασδφγηϕκλζξχϖβνµθωερτ ψυιοπασδφγηϕκλζξχϖβνµθωερτψυιοπα σδφγηϕκλζξχϖβνµθωερτψυιοπασδφγηϕκ χϖβνµθωερτψυιοπασδφγηϕκλζξχϖβνµθ

Servo and Motor Controller

Hello, and welcome to this presentation of the STM32 Infrared Timer. Features of this interface allowing the generation of various IR remote control

Training Schedule. Robotic System Design using Arduino Platform

EE445L Fall 2012 Final Version B Page 1 of 7

A PID Controller for Real-Time DC Motor Speed Control using the C505C Microcontroller

The University of Texas at Arlington Lecture 10 ADC and DAC

ME 333 Assignment 7 and 8 PI Control of LED/Phototransistor Pair. Overview

Sensor, Op-amp comparator, and output revision.

DC motor control using arduino

INTERFACING WITH INTERRUPTS AND SYNCHRONIZATION TECHNIQUES

Direct Current Waveforms

T6+ Analog I/O Section. Installation booklet for part numbers: 5/4-80A-115 5/4-90A-115 5/4-80A /4-90A-1224

Hello, and welcome to this presentation of the STM32 Digital Filter for Sigma-Delta modulators interface. The features of this interface, which

ELCT 912: Advanced Embedded Systems

GSM BASED PATIENT MONITORING SYSTEM

Design of Low Cost Embedded Power Plant Relay Testing Unit

CprE 288 Introduction to Embedded Systems (Output Compare and PWM) Instructors: Dr. Phillip Jones

Automated Industrial Wind Tunnel Network Control with LabVIEW. Matt Draear

Controlling DC Brush Motor using MD10B or MD30B. Version 1.2. Aug Cytron Technologies Sdn. Bhd.

Hello, and welcome to this presentation of the FlexTimer or FTM module for Kinetis K series MCUs. In this session, you ll learn about the FTM, its

Exercise 3: Sound volume robot

Hardware Flags. and the RTI system. Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff

Laboratory 11. Pulse-Width-Modulation Motor Speed Control with a PIC

PIC Functionality. General I/O Dedicated Interrupt Change State Interrupt Input Capture Output Compare PWM ADC RS232

Power Factor Correction in Digital World. Abstract. 1 Introduction. 3 Advantages of Digital PFC over traditional Analog PFC.

TKT-3500 Microcontroller systems

MEMS Accelerometer sensor controlled robot with wireless video camera mounted on it

Lecture 2: Embedded Systems: An Introduction

CATALOG. ANALOG COMMUNICATION SYSTEMS DIGITAL COMMUNICATION SYSTEMS Microcontroller kits Arm controller kits PLC Trainer KITS Regulated Power supplies

ANSWERS AND MARK SCHEMES. (a) A base 1 B collector 1 C emitter 1. (b) = 2.82 ma 1. (c) Zero or very low current 1

EE445L Fall 2011 Quiz 2A Page 1 of 6

DESIGN AND IMPLEMENTATION OF A MICROPROCESSOR BASED TEMPERATURE CONTROLLER WITH REAL TIME DISPLAY

Standard single-purpose processors: Peripherals

Embedded Robotics. Software Development & Education Center

MICROPROCESSORS A (17.383) Fall Lecture Outline

Own Your Technology Presents Workshop on

Pulse-Width-Modulation Motor Speed Control with a PIC (modified from lab text by Alciatore)

Design and Simulation of Automatic Temperature Control and Alert System Based PIC16F887

Castle Creations, INC.

Embedded System Design (10EC74)

6. HARDWARE PROTOTYPE AND EXPERIMENTAL RESULTS

DC Motor and Servo motor Control with ARM and Arduino. Created by:

Real Time Operating Systems Lecture 29.1

Microcontroller interfacing

Unit 24: Controlling Systems Using IT

Analysis and Construction of a Robot controlled by a Universal Remote Control

Published by: PIONEER RESEARCH & DEVELOPMENT GROUP ( 1

GCSE DESIGN AND TECHNOLOGY SYSTEMS AND CONTROL TECHNOLOGY

SPY ROBOTIC MODULE USING ZIGBEE

PIC Analog Voltage to PWM Duty Cycle

Speed Control of DC Motor Using Microcontroller

RoboDragons 2010 Team Description

EE 308 Spring S12 SUBSYSTEMS: PULSE WIDTH MODULATION, A/D CONVERTER, AND SYNCHRONOUS SERIAN INTERFACE

ZKit-51-RD2, 8051 Development Kit

Industrial Automation Training Academy. Arduino, LabVIEW & PLC Training Programs Duration: 6 Months (180 ~ 240 Hours)

Design and Construction of PIC-based IR Remote Control Moving Robot

ARDUINO / GENUINO. start as professional. short course in a book. faculty of engineering technology

Homework 9: Software Design Considerations

Electronics Design Laboratory Lecture #4. ECEN 2270 Electronics Design Laboratory

Interfacing Sensors & Modules to Microcontrollers

AVR42778: Core Independent Brushless DC Fan Control Using Configurable Custom Logic on ATtiny817. Features. Introduction. AVR 8-bit Microcontroller

Wireless Speed Control of an Induction Motor Using Pwm Technique with Gsm

Mechatronics Engineering and Automation Faculty of Engineering, Ain Shams University MCT-151, Spring 2015 Lab-4: Electric Actuators

EMBEDDED BOOST CONVERTER USING VOLTAGE FEEDBACK TECHNIQUE

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

Input/Output Control Using Interrupt Service Routines to Establish a Time base

Peripheral Link Driver for ADSP In Embedded Control Application

VOICE OTP IC ap sec ap sec ap sec ap sec 8 PIN

Circuit Debugging Questions And Answers With Circuits For Ece

INTELLIGENCE HOME AUTOMATION SYSTEM USING LDR

STEM in Practice AISWA SAMPLE. with KodeKLIX. Def ine Plan Model Test Ref lect Improve EXTENSION ACTIVITIES

Advanced Soldier Monitoring and Tracking System Using GPS and GSM Introduction

Energy Monitoring System (EMS) Abstract

At the end of this course, students should be able to: 1 explain experimental results with theoretical expected outcome

3.1 ignored. (a) (b) (c)

EMI DUE AND ALCOHOL DETECTION BASED AUTOMATIC VEHICLE LOCKING SYSTEM

MICROCONTROLLER TUTORIAL II TIMERS

DIGITAL ELECTRONICS ANALOG ELECTRONICS

Lecture 3: Sensors, signals, ADC and DAC

DeviceCraft Revision #1 11/29/2010

Sensors. CS Embedded Systems p. 1/1

Introduction to Using the PIC16F877 Justin Rice IMDL Spring 2002

MECHATRONICS SYSTEM DESIGN

DSP BASED SYSTEM FOR SYNCHRONOUS GENERATOR EXCITATION CONTROLL

Model-Based Design as an Enabler for Supply Chain Collaboration

Project Final Report: Directional Remote Control

Module 13: Interfacing ADC. Introduction ADC Programming DAC Programming Sensor Interfacing

PIR sensor control chip

A Design for the Integration of Sensors to a Mobile Robot. Mentor: Dr. Geb Thomas. Mentee: Chelsey N. Daniels

INTRODUCTION OF SOME APPROACHES FOR EDUCATIONS OF ROBOT DESIGN AND MANUFACTURING

UNIVERSITY OF VICTORIA FACULTY OF ENGINEERING. SENG 466 Software for Embedded and Mechatronic Systems. Project 1 Report. May 25, 2006.

Embedded Systems. Oscillator and I/O Hardware. Eng. Anis Nazer First Semester

1 0 / 1 1 / Due : Fri. Nov. 2 nd / Mon. Nov. 5

Transcription:

Outlines Hardware Interface Introduction to Embedded / Real Time Systems Polling, Interrupt Devices and Interfaces LED Krerk Piromsopa, Ph.D. Department of Computer Engineering Chulalongkorn University DC, Stepped Motors Switch, Sensors, etc 1 2 What s Embedded Systems? Examples an ill-defined term A special-purpose system designed to perform one or few dedicated functions [embedded systems glossary] Optimize for cost, size, reliability, and performance Complexity varies from a single micro-controller chip to multiple units Process control: food processing, plants Office Automation: Printers, Fax, Copier (Xerox) Computer Peripherals: Printers, Terminals, Modems Communication: Switches, Routers Aerospace: Flight Control System, Jet Engine Controls Personal devices to nuclear power plants controlling 3 4

Automotive: ECU, ABS Robots Home: Washing machines, Thermostats, Microwave ovens, TV, VCR, DVD, etc Common Characteristics Real-time performance that must be met. Built-in to controlled devices Software is often called Firmware and is often stored in read-only memory or flash memory 8

Real-time Systems Pitfalls Depends upon logical correctness and time. usability (soft real-time systems) e.g. multimedia video/audio Tasks are performed as fast as possible, but don t have to finish by specific times. safety (hard real-time systems) e.g. Engine Control Unit Tasks have to be performed not only correctly, but also on time. can have both hard and soft requirements. hard versus soft real-time does not necessarily relate to the length of time available A system may overheat if a cooling system is not functioning in 5 minutes --- hard A network packet may drop buffered data if it is not processed in 0.1 sec. --- soft High Performance <> real time Examples? Chess-Playing Programs? 9 10 Software Models Foreground/Background Systems (aka. super-loops) Real-Time OS (aka. Real-Time kernel) Non-preemptive (Cooperative Multitasking) Preemptive Super loop in C void main(void) { initialise(); superloop(); } void superloop(void) { while(1) { task1(); task2(); task3();... } } 11 12

Super-loops Foreground/ Background Foreground (ISR) handles Asynchronous events. Background handles task level. Critical operations in ISR Real-time O.S. Tasks (with priorities) Non-Preemptive Kernels Each task has to explicitly give up control of the CPU. Preemptive Kernels Use priority as a criteria. 13 14 Preemption Priority Inversions Two solutions priority inheritance priority ceilings (no need for semaphore) 15 16

Devices and Interface POP Quiz Digital vs. Analog What is Digital? On/Off What is Analog? Fuzzy? How to connect Digital to Analog Device? Label the following item as Digital or Analog Temperature luminous of light Picture/Color Voice What else? Analog Output? Analog Input Analog-to-Digital Converter On/Off PIC 16F877 has build-in A2D Color / Pictures Steps / Levels Digital-to-Analog-Converter

What is Sensors? LDR A device that convert the information into voltage, current (usually resistance). Light LDR (Light Dependent Resistor) Photo Diode, Photo Transistor Temperature Thermistor, Thermocouple, Infrared Sensor Interface betwen Different Voltages Driving DC Motor/Steps Motor Relay Transistor Optoisolator

How about other devices? Resources Microphone Speaker Motion Sensor Angle Speed Power TV Monitors (You name it) http://www.epanorama.net/links/automation.html Several interface and circuit books PIC 16F877 Pulse Width Modulation FIGURE 8-4: PWM OUTPUT Period Duty Cycle TMR2 = PR2 TMR2 = Duty Cycle TMR2 = PR2 Synchronous Communication FIGURE 11-1: A/D BLOCK DIAGRAM 10 Bit A2D (8 channels) Interrupts VAIN (Input Voltage) CHS2:CHS0 111 110 101 100 011 RE2/AN7 (1) RE1/AN6 (1) RE0/AN5 (1) RA5/AN4 RA3/AN3/VREF+ Question? A/D Converter 010 001 RA2/AN2/VREF- RA1/AN1 VDD 000 RA0/AN0 VREF+ (Reference Voltage) PCFG3:PCFG0 VREF- (Reference Voltage) VSS PCFG3:PCFG0 Note 1: Not available on PIC16F873/876 devices.