67
MATH101 NUMERICAL & IT LITERACY Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

Embed Size (px)

Citation preview

Page 1: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

MATH101NUMERICAL &

IT LITERACYLecture 2:

Secondary Storage, Input and Output Devices

Dr Yingchao ZHAO

Page 2: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

LECTURE OUTCOMES After this lecture, you should be able to:

Describe the different types of secondary storage devices

Be aware of the existence of different input devices and their basic mechanisms.

Be aware of the existence of different output devices and their basic mechanisms.

Page 3: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

SECONDARY STORAGE

Page 4: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

STORAGE Storage holds data, instructions, and

information for future use. Storage medium is the physical material

on which a computer keeps data, instructions, and information.

Two key areas in evaluating storage systems:CapacityAccess time

Page 5: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

STORAGE SYSTEMS

Page 6: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

CAPACITY Capacity is the number of bytes a

storage medium can hold.This shows

common units for counting

size.

From Wikipedia

Page 7: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

CAPACITY What can be stored in 1TB space?

500,000,000 pages of text285,000 digital photos250,000 songs120 hours of digital video

Page 8: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

HARD DISKS One of the most

popular secondary storage.

Mainly magnetic disks. Properties:

Random access – at any time, any part on HD can be accessed.

High capacity – up to TB Medium access time (several

ms) – ~100000 times slower than RAM, ~100 times faster than DVD.

Data stored on hard disks are first loaded into RAM before being processed or displayed.

Page 9: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

HARD DISKS – PRECAUTION A head crash occurs when a read/write

head touches the surface of a platter.E.g., when something happened suddenly

(power off, detach, fall down, etc.) during read/write.

Read/write head is really close to the

platters!

Always backup your hard disk!

Page 10: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

HARD DISKS – RECOVERY If a HD crashes, data inside it cannot be

retrieved by normal OS. Recovery is costly!

> $1000 for simple cases and >$10000 for more complex cases

Recovery of data is not guaranteed. Imagine the case where the read/write head

scratched a portion of disk platter. No way to recover the data stored inside.

Page 11: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

HARD DISKS – FORMAT Hard disks must be formatted before

useThe OS can then read/write files on the

disks. Different OSes format disks to different

formats, e.g.,FAT32 / NTFS for Windowsext4 for Linux / UNIXHFS+ for MacOS

New HDs are usually formatted before put on shelves.

Page 12: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

RAID AND NAS RAID (redundant array of independent

(inexpensive) disks) is a group of two or more integrated hard disks.Data are duplicated automatically.Data can be recovered even if one HD fails.Faster read access.

A network attached storage (NAS) device is a server connected to a network with the sole purpose of providing storage.

Page 13: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

OTHER HARD DISKSAn external hard disk is a separate free-standing hard disk that connects to your computer with a cable or wirelessly

A removable hard disk is a hard disk that you insert and remove from a drive

Internal and external hard disks are available in miniature sizes (miniature hard disks)

A disk controller sits between a hard disk and other parts in the computer like memory or CPU

- Consists of a special-purpose chip and electronic circuits.- Control the transfer of data to and from the disk through system bus.

Common disk controllers include:

DISK CONTROLLER

SATA EIDE

SCSI SAS

Page 14: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

FLASH MEMORY STORAGE Flash memory chips are a type of solid

state media (like EEPROM) Non-volatile No moving parts (unlike hard disks) In the form of flash cards or solid state

drives (SSD) SSD is better than HD (and more

expensive) in the areas that:Shorter access timeHigher transfer ratesGenerate less heat and

consume less powerLast longer

Page 15: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

FLASH MEMORY CARDS A memory card is a removable

flash memory device that you insert and remove from a slot in a computer, a mobile device or a card reader/writer.

from Wikipedia

from Wikipedia

from Wikipedia

from Wikipedia

Page 16: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

FLASH MEMORY CARDS SD Cards (SD, SDHC, SDXC)

One of the most commonly used flash cards Current SDHC cards may have capacity of

128GB Different form factors: SD, Mini SD, Micro SD

Memory Stick (Duo, PRO Duo, PRO-HG) Originated from, and mainly used in Sony

Compact Flash (CFast) Much faster than SD, more expansive Mainly used in high-end digital camera

xD-Picture Card Originated from Olympus & Fujifilm Fading out

See this for a comparison of memory cardshttp://en.wikipedia.org/wiki/Comparison_of_memory_cards

Page 17: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

USB FLASH DRIVE USB flash drives (or, thumb drives) are

plugged into a USB port on a computer. It’s very convenient:

Small, light-weight, removable, rewritable. But, handle with care!

Security is a big concern.

Have you heard about the news about

privacy data leakage through unattended USB thumb drives?

Page 18: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

OPTICAL DISCS An optical disc consists of a flat, round,

portable disc made of metal, plastic, and lacquer that is written and read by laser.

Typically store software, data, digital photos, movies, music, etc. (mainly for archive)

Read only vs. rewritableDVD vs. DVD-R, DVD+R vs.

DVD-RW, DVD+RW, DVD-RAM

Page 19: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

COMPACT DISCS (CD)A CD-ROM can be read from but not written to•Read from a CD-ROM drive or CD-ROM player•A capacity of 650MBA CD-R is a multisession optical disc on which users can write, but not erase•You may delete files, but the location can’t be used to store other data.

A CD-RW is an erasable multisession disc•Must have a CD-RW drive

Page 20: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

DVD AND BLU-RAY DISCSA DVD-ROM is a high-capacity optical disc on which users can read but not write or erase•Requires a DVD-ROM drive, capacity : 4.7-17 GB•Single-sided, double-sided, single-layered, double-layered.

The most updated optical disc standard. A Blu-ray Disc-ROM (BD-ROM) has a storage capacity of 100 GB. Usually stores HD video.

DVD-RW, DVD+RW, and DVD+RAM are high-capacity rewritable DVD formats

Page 21: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

MAGNETIC TAPES Tape is a magnetically coated ribbon of

plastic. It is capable of storing large amounts of data and information.

A tape drive reads and writes data and information on a tape sequentially.

Page 22: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

MAGNETIC CARD & SMART CARD A magnetic strip

card contains a magnetic strip that stores information.

A smart card stores information on a thin microprocessor embedded in the card.

Page 23: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

INPUT DEVICES

Page 24: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

INPUT DEVICES Input (noun) is any data and

instructions entered into the memory of a computer.

An input device is any hardware component that allows users to enter data and instructions into a computer.

Page 25: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

KEYBOARD A keyboard is an input device that

contains keys on which a user presses to enter input.

A standard input device in most of the computers.> 100 keysWired or wirelessSmall or virtual keyboards

on mobile devices.

USB port

Keyboard port

Wired Keyboards

Bluetooth

IrDA

Short range radio

Wireles

s Keyboards

Page 26: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

POINTING DEVICES – MOUSE A pointing device is an input device

that allows a user to control a pointer on the screen

A pointer is a small symbol on the screen whose location and shape change as a user moves a pointing device

A mouse is a pointing device that fits under the palm of your hand comfortablyMost widely used pointing

device on desktop computers A mouse can be wired

or wireless

Page 27: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

POINT DEVICES

Trackball•A trackball is a stationary pointing device with a ball on its top or side

Touchpad•A touchpad is a small, flat, rectangular pointing device that is sensitive to pressure and motion

Pointing Stick•A pointing stick is a pressure-sensitive pointing device shaped like a pencil eraser positioned between keys on a keyboard

Page 28: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

TOUCH SCREENS & TOUCH-SENSITIVE PADS

Microsoft Surface

Page 29: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

GAME CONTROLLERS Video games and

computer games use game controllers as the input devices that direct movements and actions of on-screen objects

Gamepads

Joysticks and Wheels

Light guns

Dance pads

Motion-sensing

controllers

Page 30: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

DIGITAL CAMERAS Digital camera

A digital camera is a mobile device that allows users to take pictures and store them digitally.

ScannerFlatbedPen or handheldSheet-feddrum

Flatbed Pen or Handheld

Sheet-fed Drum

Page 31: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

CAMERA QUALITIES Factors affecting image quality include:

Resolution

•Dimensions of the image in terms of pixels.•e.g., 640x480 (300k pixels), 3872x2592 (10M pixels)

No. of bits per pixel

•More bits more colors, more gray-shade levels.•e.g., 24-bit

Sensor (CCD) size

•Larger CCD more light collected per pixel more accurate color information•e.g., ½”, 1”, 4/3”, 35mm, etc.

Page 32: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

WEB CAM A Web cam is a type of digital video

camera that enables a user to:Capture video and still imagesSend e-mail messages with video

attachmentsAdd live images to instant messagesBroadcast live images over the InternetMake video telephone calls

A video conference is a meeting between two or more geographically separated parties.

Page 33: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

VOICE INPUT Voice input is the process of entering

input by speaking into a microphone Voice recognition is the computer’s

capability of distinguishing spoken words

Siri on iPhone 4S use your voice to send messages, schedule meetings, place phone calls, and more.

Page 34: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

OCR Optical character recognition (OCR)

involves reading characters from ordinary documents.

A turnaround document is a document you return to the company that creates

Page 35: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

BAR CODE READER A bar code reader, also called a bar

code scanner uses laser beams to read bar codes

Page 36: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

RFID READER RFID (radio frequency identification)

uses radio signals to communicate with a tag placed in or attached to an object.

In HK, we have Octopus card (八達通 ) which uses RFID technology

An RFID reader reads information on the tag via radio waves

RFID can track:

Inventory

Location of soldiers

Employee wardrobes

Airline baggage

Page 37: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

MAGNETIC STRIPE CARD READER

Reads the magnetic stripe on the back of cards such as:

Credit cards

Entertainment cards

Bank cards

Other similar cards

Page 38: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

MICR A magnetic ink character recognition

(MICR) device reads text printed with magnetized ink.

An MICR reader converts MICR characters into a form the computer can process.

Bank industry uses MICR for check processing.

Page 39: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

BIOMETRIC INPUT Biometric authenticates a person’s

identity by verifying a personal characteristic.

Fingerprint reader

Face recognition

system

Hand geometry system

Voice verification

system

Signature verification

system

Iris recognition

system

Page 40: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

BIOMETRIC INPUT EXAMPLE

fingerprint

reader

hand geometry system

iris recognition system

Page 41: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

OUTPUT DEVICES

Page 42: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

OUTPUT DEVICES Output is data that have been

processed into useful forms.

Page 43: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

WHAT IS OUTPUT? An output device is any type of

hardware component that conveys information to one or more people.

Display devices

Printers

Speakers, headphones, and earbuds

Data projectors

Page 44: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

DISPLAY A display device visually

conveys text, graphics and video information.

A monitor is packaged as a separate peripheral.LCD monitorsLED monitorsWidescreen

Page 45: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

DISPLAY The quality of an LCD monitor or LCD

screen depends primarily on:

Resolution

Response time

Brightness

Dot pitch

Contrast ratio

Page 46: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

LED MONITORS It is a screen that uses Light Emitting Diodes to

portray different colored pixels. It has better contrast and is more efficient than the LCD Monitors which constantly has a flash lamp that is turned on and the Plasma and the old tube monitors.

The difference between LED and LCD is the back-light of the monitors. While the technology of the displays of LCD’s and LED’s is basically the same, the LCD monitor uses cold cathode fluorescent lamps as back-lights as compared to the LED monitors that emit diodes. CRT

Monitor

Page 47: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

DIGITAL TV TV can also be used as

an output device.May require a converter

if you are connecting your computer to an analog computer.

Digital televisions offer a crisper, higher-quality display.

HDTV is the most advanced form of digital television.

Page 48: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

PRINTERS A printer

produces text and graphics on a physical medium.Printed

information is called a hard copy, or printout.

Landscape or portrait orientation

Page 49: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

NON-IMPACT PRINTERS A non-impact printer forms characters

and graphics on a piece of paper without actually striking the paper.

Ink-jet printers

Photo printers

Laser printers

Thermal printers

Page 50: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

INK-JET PRINTERS An ink-jet printer forms characters

and graphics by spraying tiny drops of liquid ink onto a piece of paper.black-and-white, orcolors (CYMK)

Cyan, Yellow, Magenta

One key property of a printer is dpi (dots per inch).

Page 51: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

PHOTO PRINTERS Produce color photo-

lab-quality pictures Mostly use ink-jet

technology PictBridge allows you

to print photos directly from a digital camera

Support printing from a memory card and preview photos on a built-in LCD screen

Page 52: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

LASER PRINTERS High quality High speed

THERMAL PRINTERS A thermal printer generates images

by pushing electrically heated pins against the heat-sensitive paper.

PLOTTERSPlotters are used to produce high-quality drawings.Large-format printers create photo-realistic quality color prints on a larger scale.

Page 53: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

IMPACT PRINTERS Impact printers from characters and

graphics on a piece of paper by striking a mechanism against an inked ribbon that physically contacts the paper.

Dot-matrix printer

Line printer

Page 54: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

DOT-MATRIX PRINTERS A dot-matrix printer produces printed

images when tiny wire pins on a print head mechanism strike an inked ribbon.

Advantageous to print multiple copies at a time.

A line printer prints an entire line at a time.

Page 55: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

LABEL PRINTERS A label printer is a

small printer that prints on adhesive-type material

A postage printer prints postage stamps

Postage also can be printed on other types of printers

Page 56: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

AUDIO OUTPUT DEVICES An audio output device produces

music, speech or other sounds. E.g.,

Speakers, headphones, earbuds

Usage of speakers:Generate high-quality sounds

for playing games Interact with multimedia

presentationsListen to musicView movies, etc.

A 5.1 surround sound speaker

set.

Page 57: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

AUDIO OUTPUT DEVICES Headphones are

speakers that cover our head or are placed outside your ears.

Earbuds (also called earphones) rest inside your ear canal.

Page 58: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

AUDIO OUTPUT DEVICES Some speakers are specifically designed

to play audio from a portable media player.

E.g., wireless speakers with dock.

Page 59: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

VOICE OUTPUT Voice output occurs when you hear a

person’s voice or when the computer talks to you through the speakers (and microphones).

Often works with voice input.

E.g., VoIP, Site readers

Page 60: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

OTHER OUTPUT DEVICES

Data projectors

Interactive whiteboards

Force-feedback game

controllers

Tactile output

They are available for specific uses and applications.

Page 61: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

PROJECTOR A data projector is a device that takes

the text & images displaying on a computer screen and projects them on a larger screen.E.g., digital light processing (DLP) projector

You’re now viewing a projector screen!

Page 62: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

INTERACTIVE WHITEBOARD An interactive whiteboard is a touch-

sensitive device, resembling a dry-erase board, that displays the image on a connected computer screen

Page 63: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

FORCE-FEEDBACK DEVICES Force-feedback

sends resistance to the device in response to actions of the user

Tactile output provides the user with a physical response from the device

Page 64: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

OUTPUT FOR PHYSICALLY CHALLENGED USERS Many accessibility options exist for

users with various disabilities.

Braille printer

Magnifier

Page 65: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

QUESTION DualShock and Wiimote, are they input

devices? Or output devices? Why?

Page 66: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

ACTIVITY Imagine, one day, your boss asks you to copy

many data of a project to his client. As you know, the data files are about 2GB in

size. How will you help to pass the data to your

client? Why you choose that method or storage media?

Page 67: Lecture 2: Secondary Storage, Input and Output Devices Dr Yingchao ZHAO

SUMMARY Different secondary storage devices in

computer systems are introduced.Hard disk, SSD, Flash memory, USB thumb

drive, magnetic tape. Common output devices include

monitors, printers, speakers and projectors Various input devices can help us to

instruct or provide data to the computer.Keyboard, mouse, track ball, voice input,

web cam, scanner, OCR, biometric, etc.