interfacing to external devices explore digital interfaces techniques introduce some complex...

29
Interfacing to External Devices Explore Digital Interfaces techniques Introduce some complex optical devices and how to interface them Describe methods for switching devices on and off

Upload: scarlett-bishop

Post on 06-Jan-2018

223 views

Category:

Documents


0 download

DESCRIPTION

Forms of Signal Degradation

TRANSCRIPT

Page 1: Interfacing to External Devices  Explore Digital Interfaces techniques  Introduce some complex optical devices and how to interface them  Describe methods

Interfacing to External Devices

Explore Digital Interfaces techniques Introduce some complex optical devices and how to interface them Describe methods for switching devices on and off

Page 2: Interfacing to External Devices  Explore Digital Interfaces techniques  Introduce some complex optical devices and how to interface them  Describe methods

Interfacing Digital Input Signals

General requirements of all digital input signals: The voltage input level should only be the

legal allowed voltage. They should not be corrupted by glitches They should switch cleanly and fast.

Page 3: Interfacing to External Devices  Explore Digital Interfaces techniques  Introduce some complex optical devices and how to interface them  Describe methods

Forms of Signal Degradation

Page 4: Interfacing to External Devices  Explore Digital Interfaces techniques  Introduce some complex optical devices and how to interface them  Describe methods

Simple Interfacing for Digital Signals

Page 5: Interfacing to External Devices  Explore Digital Interfaces techniques  Introduce some complex optical devices and how to interface them  Describe methods

Switch Debouncing Switch debouncing happens when

mechanical contacts switch and thus from the force of the switching they bounce for a few milliseconds.

Page 6: Interfacing to External Devices  Explore Digital Interfaces techniques  Introduce some complex optical devices and how to interface them  Describe methods

Actual switch Bounce Signal

Page 7: Interfacing to External Devices  Explore Digital Interfaces techniques  Introduce some complex optical devices and how to interface them  Describe methods

Hardware Methods for Debouncing

Page 8: Interfacing to External Devices  Explore Digital Interfaces techniques  Introduce some complex optical devices and how to interface them  Describe methods

Software method of Debouncing 1

Page 9: Interfacing to External Devices  Explore Digital Interfaces techniques  Introduce some complex optical devices and how to interface them  Describe methods

Software method of Debouncing 2

Page 10: Interfacing to External Devices  Explore Digital Interfaces techniques  Introduce some complex optical devices and how to interface them  Describe methods

Interfacing Keypads 1

Page 11: Interfacing to External Devices  Explore Digital Interfaces techniques  Introduce some complex optical devices and how to interface them  Describe methods

Interfacing Keypads 2

Page 12: Interfacing to External Devices  Explore Digital Interfaces techniques  Introduce some complex optical devices and how to interface them  Describe methods

Keypad Scanning Algorithm

Page 13: Interfacing to External Devices  Explore Digital Interfaces techniques  Introduce some complex optical devices and how to interface them  Describe methods

Optical Devices: Single 7-segment Display

Page 14: Interfacing to External Devices  Explore Digital Interfaces techniques  Introduce some complex optical devices and how to interface them  Describe methods

Optical Devices: Multiplexed 7-segment Display

Page 15: Interfacing to External Devices  Explore Digital Interfaces techniques  Introduce some complex optical devices and how to interface them  Describe methods

Optical Devices: Example Circuit

Page 16: Interfacing to External Devices  Explore Digital Interfaces techniques  Introduce some complex optical devices and how to interface them  Describe methods

Optical Devices: Opto-Isolator

Page 17: Interfacing to External Devices  Explore Digital Interfaces techniques  Introduce some complex optical devices and how to interface them  Describe methods

Object Sensors

Page 18: Interfacing to External Devices  Explore Digital Interfaces techniques  Introduce some complex optical devices and how to interface them  Describe methods

Shaft Encoders

Angular Speed S = output frequency / number of holesrevolutions per second

This setup does not give indication of direction

Page 19: Interfacing to External Devices  Explore Digital Interfaces techniques  Introduce some complex optical devices and how to interface them  Describe methods

Incremental Quadrature Shaft Encoder

Page 20: Interfacing to External Devices  Explore Digital Interfaces techniques  Introduce some complex optical devices and how to interface them  Describe methods

Absolute Shaft Encoders

Page 21: Interfacing to External Devices  Explore Digital Interfaces techniques  Introduce some complex optical devices and how to interface them  Describe methods

Inductive Load Switching

Page 22: Interfacing to External Devices  Explore Digital Interfaces techniques  Introduce some complex optical devices and how to interface them  Describe methods

Examples of Inductive Loads

Page 23: Interfacing to External Devices  Explore Digital Interfaces techniques  Introduce some complex optical devices and how to interface them  Describe methods

Mechanical Relays

Page 24: Interfacing to External Devices  Explore Digital Interfaces techniques  Introduce some complex optical devices and how to interface them  Describe methods

The use of H-Bridge 1

Page 25: Interfacing to External Devices  Explore Digital Interfaces techniques  Introduce some complex optical devices and how to interface them  Describe methods

The use of H-Bridge 2

Page 26: Interfacing to External Devices  Explore Digital Interfaces techniques  Introduce some complex optical devices and how to interface them  Describe methods

The use of H-Bridge 3

Page 27: Interfacing to External Devices  Explore Digital Interfaces techniques  Introduce some complex optical devices and how to interface them  Describe methods

The use of H-Bridge 4

Page 28: Interfacing to External Devices  Explore Digital Interfaces techniques  Introduce some complex optical devices and how to interface them  Describe methods

Semiconductor H-Bridge 1

Page 29: Interfacing to External Devices  Explore Digital Interfaces techniques  Introduce some complex optical devices and how to interface them  Describe methods

Semiconductor H-Bridge 2

http://www.dprg.org/tutorials/1998-04a/