EE Embedded Systems Fall 2015

Slides:



Advertisements
Similar presentations
EML 2023 – Motor Control Lecture 4 – DAQ and Motor Controller.
Advertisements

FOLLOWER SENSORS AND ACTUATORS EE 552 INTSTRUCTOR :Dr MOHAN KRISNAN BY MOHAMMED KASHIF IQBAL ANESH BODDAPATTI UNIVERSITY OF DETROIT MERCY.
SENIOR DESIGN 10/16.
Electronics Design Laboratory Lecture #11, Fall 2014
Introduction.
ASPPRATECH.
Lecture – 7 Basic input and output
Micromouse Meeting #3 Lecture #2 Power Motors Encoders.
Autonomous Control of Scalextric Slot Car on User-Defined Track Siddharth Kamath Souma Mondal Dhaval Patel School of Electrical and Computer Engineering.
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
1 Motors & Motor Controllers ECE AC or DC Motors AC –Few robots use AC except in factories –Most of those that use AC first convert to DC DC –Dominates.
Applied Control Systems Technology. © t 4 Galway Education Centre 2 Applied Control Systems Inputs Push switches L.D.R. Microphone Tilt switch Infrared.
Microcontroller Hands-on Workshop #3 Ahmad Manshad New Mexico State University Institute of Electrical and Electronics Engineers November 7, 2009.
Segway Controller Notes. = connection on top layer of circuit board = connection on bottom layer of circuit board Ground Plane: Areas enclosed by the.
Servo Motor Control Demonstration.
PH4705 & ET4305: Digital Sensors
16F877A. Timer 0 The Timer0 module timer/counter has the following features: –8-bit timer/counter –Readable and writable –8-bit software programmable.
Servo Motor Control Demonstration. EML 2023 Department of Mechanical and Aerospace Engineering motor with gear reducer flex coupling incremental optical.
Digital to Analogue Converter
Typical Microcontroller Purposes
CS 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst Hybrid I/O – Pulses.
Instrumentation & Control Engg. Section Electrical Engineering Department Ahmedabad , Gujarat.
Motors & Motor Drivers ECE 450.
July 18, UCSD - R.A. de Callafon Short Intro to Micro Processors and I/O functions of our Kinetic Sculpture Control Box Raymond de Callafon.
M. Zareinejad 1. 2 Outline # Sensors –––– Sensor types Sensor examples #Actuators Actuator types Actuator examples ––––
18240 Element two - Components INPUTS OUTPUTS PURPOSE TYPICAL USE.
Department of Electronic & Electrical Engineering Introduction to microcontrollers A microcontroller is a small computer on a single integrated circuit.
ECE 445 Track Vehicle Project Team 25: Kuangxiao Gu Jialun Liu Jilin Jiang.
Networked Embedded Systems Pengyu Zhang & Sachin Katti EE107 Spring 2016 Lecture 4 Timers and Interrupts.
Sensing Algorithm using IR Sensor and ADC Soong-sil University. Robotics 기 정 두 원.
Microprocessors A practical approach..
A Project by ABHISHEK N (1P909EC001) YASHAS B R (1PI09EC129) J CHETAN (1PI09EC051) Guided by Ms. ANNAPOORNA K Y DEPARTMENT OF ELECTRONICS AND COMMUNICATION.
1 Microcontrollers. 2 Programmers work in the virtual world Machinery works in the physical world Microcontrollers connect the virtual and physical world.
ME6405 The George W. Woodruff School of Mechanical Engineering ME 4447/ME6405 Microprocessor Control of Manufacturing Systems/Introduction to Mechatronics.
Components of Mechatronic Systems AUE 425 Week 2 Kerem ALTUN October 3, 2016.
CNC FEED DRIVES Akhil Krishnan G M.Tech 1. CONTENTS 1.Introduction 2.Requirements of CNC feed drives 3.Servo motor 3.1 Servo drive control 3.2 Components.
CNC FEED DRIVES.
Motors & Motor Controllers
Introduction to Mechatronics
16F877A.
From Lecture1 vi , ii vo , io Power Processor Controller Source Load
Application Case Study Security Camera Controller
Timers and Event Counters
ECE 445 Smart Window Responding System
Input/Output Ports and Interfacing
SCADA for Remote Industrial Plant
Microcontroller Applications
ARDUINO LINE FOLLOWER ROBOT
Arduino - Introduction
Chapter E –Transistors and H-Bridges
Interfacing different devices & considerations
EE Embedded Systems Fall 2015
EE Embedded Systems Fall 2015
Introduction to Microprocessors and Microcontrollers
CBC Fundamentals Lecture is based on material from Robotic Explorations: A Hands-on Introduction to Engineering, Fred Martin, Prentice Hall, 2001.
EE Embedded Systems Fall 2015
EE Embedded Systems Fall 2015
enerlogic Energy Smart Office Control System
From Lecture1 vi , ii vo , io Power Processor Controller Source Load

Presentation of Robotics (3)
ADC and DAC Data Converter
Sensors and actuators Sensors Resistive sensors
Supervised by : Dr. Kamel Subhi
ADC and DAC Data Converter
Self-Adjusting Helmet
PIC16F887.  1.Microcontroller introducton  2.MPLAB,Hi-tech compilers  3.LED  4.Switches/push buttons  5.7-Segment Display  6.Keypad  7.LCD  8.Timers.
05 | Integrating Advanced Sensors and Shields
Presentation transcript:

EE 22442 - Embedded Systems Fall 2015 Chapter Eight: The human and physical interfaces EE 22442 - Embedded Systems Fall 2015 Belal H. Sababha, Ph.D. Assistant Professor of Electrical & Computer Engineering Computer Engineering Department King Abdullah II Faculty of Engineering Princess Sumaya University for Technology Amman, 11941, Jordan Phone: +962-6-535-9949 ext. 222 Email: b.sababha@psut.edu.jo Web: http://www.psut.edu.jo/sites/bsababha

Introduction In this chapter we will learn about: Human interfacing needs and some simple means of meeting these. Some simple example sensors. Some ways of interfacing between sensor signals and the microcontroller. Some simple example actuators. Some ways of interfacing between the microcontroller and the actuator.

Human physical interfaces

Human physical interfaces 2

The keypad

Reading a Keypad

LED displays

Multiplexing of digits

//Live Demo: Display a counter from 0 to 9 on a Single 7 Segment incremented every 1 sec unsigned char tick=0; unsigned char i; unsigned char mysevenseg[10]={0x3F, 0x06, 0x5B, 0x4F, 0x66, 0x6D, 0x7D, 0x07, 0x7F, 0x6F}; interrupt(){ // TMR0 overflow interrupt occurs every 32ms tick++; //increment tick evey 32ms if(tick==33){ // this condition is true every almost 1 second i++; // counter incremented every 1 second if(i==10) i=0; tick=0; } INTCON = INTCON & 0xFB; // clear the interrupt flag void main() { TRISD = 0x00; //PORTD connected to the 7 segment OPTION_REG = 0x07; // Osc clock/4, prescale of 256 TMR0 = 0; INTCON = 0xA0; // Global Interrupt Enable and Local Enable the TMR0 Overflow Interrupt while(1){ PORTD=mysevenseg[i];

unsigned char tick, i, qq, rr; unsigned char sevenseg[10]={0xBF, 0x06, 0x5B, 0x4F, 0x66, 0x6D, 0x7D, 0x07, 0x7F, 0x67}; interrupt(){ //TMR0 interrupt increments tick every 32 ms tick++; if(tick==33){ i++; //increment counter every 1 second if(i==100) i=0; qq=i/10; // split i into two separate digits rr=i%10; tick=0; }//if INTCON = INTCON & 0xFB; //clear T0IF flag }//interrupt void main() { TRISD= 0x00; PORTD=0x00; ADCON1= 0x06; //PORTA is Digital TRISA = 0x00; // PORTA output, PORTA is used to enable the required 7 segment display to do time multiplexing OPTION_REG= 0x07; //osc clock select, with prescaler of 256 TMR0=0x00; INTCON = 0xA0; //Global Interrupt Enable, Local TMR0 Overflow Interrupt Enable while(1){ if(TMR0&0x40){ PORTA=0x02; // enable the 10’s seven segment PORTD=sevenseg[qq]; else{ PORTA=0x01;// enable the 1’s seven segment PORTD=sevenseg[rr]; }//else }//while }//main //Live Demo: Display a counter from 0 to 99 on a multiple 7 Segments incremented every 1 sec

Some simple sensors The microswitch Light-dependent resistors Optical object sensing Ultrasonic object sensor Hall effect sensor Temperature Sensor

The microswitch

Light-dependent resistors (LDR)

Optical object sensing Infrared reflective sensor Infrared reflective sensor 1.6V 0.1mA

Optical object sensing Rangefinder IR sensor Measuring range: 10-80 cm Current consumption: 30mA typical Includes 10" 3-wire cable Supply voltage: 4.5 - 5.5 V

Ultrasonic object sensor e.g XL-MaxSonar®-EZ™ Sensor Line Component Overview Resolution of 1 cm 10Hz reading rate Read from all 3 sensor outputs: Analog Voltage, Serial, Pulse Width Virtually no dead zone, objects closer than 20 cm range as 20 cm Maximum Range of 765 cm (300 inches) or 1068 cm (420 inches) Operates from 3.3-5.5V Low 3.4mA current requirement Small, light weight module Designed for easy integration into your project or product Operational Temperature from -40˚C to +70˚C (-40˚F to +160˚F) Real-time automatic calibration (voltage, humidity, ambient noise) Firmware filtering for better noise tolerance and clutter rejection 200,000+ Hours Mean Time Between Failure Retail Price Range: $29.95-$54.95

Hall effect sensor

Temperature Sensor Microchip - MCP9700/9700A Typical Applications • Hard Disk Drives and Other PC Peripherals • Entertainment Systems • Home Appliance • Office Equipment • Battery Packs and Portable Equipment • General Purpose Temperature Monitoring

Ensuring legal logic levels and input protection

Switch debouncing Reading Switches Polling Use interrupt to read switches

Actuators: motors and servos Brushed DC Motors Brushless DC Motors Stepper Motors Servo Motors

Motors Brushed DC Motor Brushless DC Motor Stepper Motor

Servo Motors Angular positioning: the ‘servo’

Interfacing to actuators Simple DC switching Reversible switching: the H-bridge

Simple DC switching

Reversible switching: the H-bridge