Unit-II-Computer-hardware_notes
Unit-II-Computer-hardware_notes
Introduction
The computer system is an electronic device which can take in data with the help of input devices, process it using Central
Processing Unit, gives out information with the help of output devices and can store data and information for future use
permanently using storage devices.
Input Device: -Input devices are used to input the data and instructions to the computer system. There are various types of
input devices such as keyboard, mouse, joystick, scanner, MICR, OCR, OMR, BCR, light pen, etc. These devices are easy
to use by human being and accept alphabets, numbers and other useful data from the user and convert them into the binary
code used by computer system. Regardless of the types of input devices used in a computer system, they must perform
the following functions:-
A. Accept data and instructions from the outside earth the
B. Convert it into a computer understandable form.
C. Supply the converted data to CPU for further processing.
CPU (Central Processing Unit):-The CPU is the brain of the computer system and is responsible for all types of
calculation and data processing jobs. Examples of CPU are 386, 486, PI, PII, PIII, PIV, etc. These are the CPU
manufactured by Intel.
4 basic operations:
• Fetch – obtain a program instruction or data item from memory
• Decode - translate the instruction into commands
• Execute - carry out the command
• Store - write the result to memory
A computer operates through four primary components: Input, Output, Processing, and Storage.
1. Input
Function: Receives data and instructions from the user or external environment.
Examples of Input Devices:
Keyboard: Allows users to type data and commands.
Mouse: Provides point-and-click functionality.
Microphone: Captures audio input.
Scanner: Digitizes physical documents and images.
Camera: Captures video or still images.
Purpose: Converts external data into a digital format understandable by the computer.
2. Processing
Function: Processes input data and performs calculations or decision-making based on instructions (programs).
Core Components:
Central Processing Unit (CPU): Executes instructions and performs arithmetic, logical, and control operations.
Graphics Processing Unit (GPU): Specialized for rendering images, videos, and graphics-intensive tasks.
Memory (RAM): Temporary workspace for the CPU to store and manipulate data during processing.
Purpose: Acts as the "brain" of the computer, executing instructions to transform data into useful outputs.
3. Output
Function: Displays or conveys processed data in a usable form to the user or another system.
Examples of Output Devices:
Monitor: Displays visual output (text, images, videos).
Printer: Produces hard copies of digital documents.
Speakers: Play audio output.
Projectors: Show output on a large screen.
Purpose: Converts processed data from digital to a human-readable or usable form.
4. Storage
Function: Retains data and programs for immediate or future use.
Types of Storage:
Primary Storage (Volatile):
RAM: Temporary and fast; used for data currently being processed.
Secondary Storage (Non-Volatile):
o Hard Disk Drive (HDD) and Solid-State Drive (SSD): Long-term storage for files, programs, and system data.
o Optical Disks (CD/DVD) and Flash Drives: Portable storage solutions.
Cloud Storage: Remote storage accessed via the internet.
Purpose: Ensures data persistence even after the computer is turned off.
These components work together to process, store, and exchange information, enabling computers to perform a wide
range of tasks efficiently.
Types of Computers
Computers can be categorized into various types based on their form, purpose, and capabilities.
1. Desktops
Description:
A desktop computer is a stationary computing device designed for use at a single location,
typically on a desk.
Key Characteristics:
Composed of separate components: monitor, CPU tower, keyboard, and mouse.
High performance and durability due to larger hardware components.
Easily upgradable and customizable.
Use Cases:
Home or office tasks, gaming, graphic design, and software development.
Advantages:
Powerful performance.
Cost-effective compared to laptops with similar specifications.
Limitations:
Lack of portability.
Requires a dedicated workspace.
2. Laptops
Description:
A portable, all-in-one computing device with an integrated screen, keyboard, and
touchpad.
Key Characteristics:
Lightweight and compact, designed for mobility.
Powered by rechargeable batteries or an AC adapter.
Typically less powerful than desktops of similar price ranges but offer adequate performance for most users.
Use Cases:
Students, professionals, travelers, and remote workers.
Advantages:
Portability and convenience.
Wireless connectivity features like Wi-Fi and Bluetooth.
Limitations:
Limited upgrade options.
Smaller screens and keyboards may be less ergonomic.
3. Servers
Description:
A server is a specialized computer designed to provide services, manage resources, or store data for other computers
(clients) in a network.
Key Characteristics:
High processing power, large memory, and robust storage.
Operates 24/7 with minimal downtime.
Often housed in data centers, using server racks.
Use Cases:
Hosting websites, managing databases, running enterprise applications, and supporting cloud services.
Advantages:
Reliable and scalable for multi-user environments.
Optimized for specific tasks like data processing or hosting.
Limitations:
Expensive and requires technical expertise to manage.
Not suitable for general-purpose computing.
4. Mobile Devices
Description:
Compact, handheld computing devices such as smartphones, tablets, and
wearable devices.
Key Characteristics:
Small form factor with touch-based interfaces.
Powered by mobile operating systems like Android, iOS, or HarmonyOS.
Integrates cellular, Wi-Fi, and Bluetooth for connectivity.
Use Cases:
Communication, entertainment, navigation, and lightweight productivity tasks.
Advantages:
Highly portable and always connected.
User-friendly and designed for personal use.
Limitations:
Limited processing power and storage compared to desktops or laptops.
Shorter lifespan due to rapid technological advancements.
Each type of computer is optimized for specific purposes, with unique advantages and limitations, catering to a wide
range of user needs.
Hardware Components
The hardware components of a computer are the physical parts that work together to perform computing tasks. They
can be broadly categorized into five main groups: Input Devices, Output Devices, Processing Unit, Storage Devices,
and Peripheral Devices.
Memory:-
Memory is a device or unit that is used to store data and instruction (programs). Memory is divided into a number of
location called Memory Blocks or Memory Cells. Every Block is capable of certain amount of information. Every
memory cell has its own unique address and this address is used to store and read information from memory.
Memory Capacity
Bit: Short for binary digit (0s and 1s), the only data that a CPU can process.
Byte: An 8-bit string of data, needed to represent any one alphanumeric character or simple mathematical operation.
Memory Hierarchy
The figure depicts the Memory Hierarchy in computer architecture, which organizes memory systems based on speed,
cost, and storage capacity.
Explanation:
MU (Memory Unit):
Located at the top of the pyramid.
Represents the fastest and most expensive type of memory, typically involving CPU registers and high-speed buffers.
Lowest storage capacity compared to other levels.
Cache Memory:
A small-sized, high-speed memory located closer to the CPU than primary memory.
Stores frequently accessed data and instructions to reduce latency during processing.
Higher cost per byte than primary or secondary storage but faster access speed.
Primary Memory (RAM, ROM):
Includes Random Access Memory (RAM) and Read-Only Memory (ROM).
RAM is volatile and used for temporary data storage during operation.
ROM is non-volatile and stores critical startup instructions (e.g., firmware).
Offers moderate speed, storage capacity, and cost.
Secondary Memory:
Comprises devices like hard disks, CDs, DVDs, and floppy disks.
Non-volatile and used for long-term storage.
Higher storage capacity but slower and cheaper than primary memory.
Secondary Memory:-It is used for mass storage of data or information or programs permanently. The storage capacity of
secondary memory is very much larger than primary memory. But the speed of secondary memory is less than the primary
memory. The commonly used secondary storage devices are Hard Disk, Floppy Disk, Magnetic Tape, Compact Disk, etc..
Hard drives: A form of secondary storage that stores data on platters divided into concentric tracks and sectors,
which can be read by a read/write head that pivots across the rotating disks.
Compact disk, read-only memory (CD-ROM/RW):
Digital video disk (DVD): An optical storage device used to store digital video or computer data.
More Storage Options
o Memory cards: Credit-card-size storage devices that can be installed in an adapter or slot in many personal
computers (i.e. memory sticks, thumb drives).
o Universal Serial Bus (USB) drives:
ii. Registers:- Registers are part of the CPU with the least storing capacity, extremely limited amounts of instructions
and data. It is a small, high-speed computer circuit that holds value of internal operations, such as the address of the
instruction being executed and the data being processed.
2. Gesture-Control Devices
Working Principle:
Utilize cameras, depth sensors, or infrared to capture physical gestures.
Sensors track hand or body movements and process them through algorithms to recognize predefined gestures.
The gestures are translated into commands or inputs for the system.
Applications:
Touchless navigation in smart TVs, laptops, and AR/VR applications.
Sign language interpretation tools.
Interactive displays for presentations, retail, and museums.
Biosensors
Working Principle:
Detection: Biosensors detect physiological signals, such as heart rate, blood pressure, or glucose levels, using specialized
sensors (e.g., optical, electrochemical, or piezoelectric).
Signal Processing: The captured signals are converted into electrical signals.
Data Analysis: The signals are analyzed and interpreted by algorithms to extract meaningful metrics like pulse rate or
oxygen levels.
Output: The processed data is displayed on connected devices (e.g., screens, apps) for monitoring or analysis.
Applications:
Healthcare and Fitness:
Heart Rate Monitors: Used in wearable fitness devices like smartwatches to track cardiovascular activity.
Glucose Monitors: Used by diabetic patients for non-invasive or minimally invasive glucose level tracking.
Blood Pressure Monitors: Assist in managing hypertension.
Sports and Athletics:
Monitoring performance metrics like heart rate, oxygen levels, and recovery times to optimize training.
Clinical Diagnostics:
Biosensors in medical devices (e.g., electrocardiograms or oximeters) for continuous patient monitoring.
Remote Health Monitoring:
IoT-connected biosensors enable healthcare providers to monitor patients' health remotely.
Research and Development:
Measuring physiological responses in neuroscience, psychology, and human-computer interaction studies.
Smart Devices:
Integration in wearable technology like smart rings and wristbands for real-time health insights.
Biosensors play a crucial role in health monitoring and early detection of medical conditions, enhancing both preventive
and personalized healthcare.
Digitizers
Working Principle:
A digitizer converts analog input (e.g., hand-drawn sketches or handwriting) into digital data that a computer can
process.
Graphics Tablets and Stylus Input:
o The tablet has a grid of sensors that detect the position and movement of the stylus or pen.
o Pressure-sensitive technology captures varying levels of force, enabling dynamic line thickness or
shading.
o Signals from the stylus are transmitted to the computer, where specialized software interprets the input
into digital artwork or text.
Applications:
1. Digital Art and Design:
o Used by artists and designers for creating detailed illustrations, animations, and 3D models.
o Popular in industries like graphic design, animation, and gaming.
2. Education:
o Facilitates online teaching and note-taking with stylus-enabled devices.
o Interactive whiteboards allow teachers to draw or write directly on the display.
3. Engineering and Architecture:
o Used for CAD (Computer-Aided Design) to create precise technical drawings or blueprints.
4. Medical Applications:
o Digitizing patient records, X-rays, and annotations on medical images.
5. Signatures and Document Editing:
o Signing digital documents or annotating PDFs directly with a stylus.
6. Virtual Collaboration:
o Enhancing real-time collaboration in virtual meetings or brainstorming sessions.
Digitizers bridge the gap between traditional handwriting/drawing and modern digital workflows, providing precision and
efficiency.
Microphones
Working Principle:
Analog Microphones:
o Convert sound waves (vibrations in the air) into electrical signals using a diaphragm that vibrates when
sound hits it.
o The movement of the diaphragm generates a corresponding analog electrical signal.
Digital Microphones:
o Combine a microphone capsule with an analog-to-digital converter (ADC) to directly output a digital
signal.
o The ADC converts the analog sound signal into digital data for use in computers and other digital
systems.
Condenser Microphones:
o Use a thin, electrically charged diaphragm placed near a metal backplate.
o Vibrations caused by sound waves change the capacitance, producing an electrical signal.
o Require external power (e.g., phantom power) to operate.
Applications:
1. Voice Communication:
o Used in telephony, video conferencing, and voice-over-IP (VoIP) applications like Zoom or Skype.
2. Recording and Broadcasting:
o Essential for professional audio recording in studios, podcasts, and live broadcasts.
o Used by musicians, streamers, and YouTubers.
3. Speech Recognition and AI Assistants:
o Microphones capture voice input for virtual assistants like Siri, Alexa, and Google Assistant.
4. Public Address Systems:
o Used in events, presentations, and concerts for amplifying speech or music.
5. Surveillance and Security:
o Integrated into security systems for audio monitoring.
6. Education and E-Learning:
o Facilitate online teaching, lectures, and webinars.
Microphones are versatile input devices, enabling seamless communication, content creation, and interaction with digital
systems.
Vision-Based Devices
1. Cameras
Working Principle:
A camera captures light from a scene through a lens and focuses it on a sensor (e.g., CMOS or CCD).
The sensor converts the light into electrical signals, which are processed into digital images or videos.
Applications:
Photography and Videography: Capturing images and videos for personal or professional use.
Surveillance: Security cameras monitor activities in real-time.
Augmented Reality (AR): Capturing real-world visuals to overlay digital content.
Machine Vision: Quality control in manufacturing.
3. Infrared Sensors
Working Principle:
Detect infrared radiation (heat) emitted by objects.
Convert the radiation into an electrical signal, which can be visualized or used for measurements.
Applications:
Thermal Imaging: Night vision cameras and fire detection.
Healthcare: Monitoring body temperature or detecting heat patterns.
Industrial Use: Checking heat signatures for equipment maintenance.
Gesture Recognition: Detecting hand movements in touchless systems.
Summary of Differences:
CRT: Large, bulky, outdated technology, now largely replaced by more efficient display types.
LED: Slim, energy-efficient, and widely used in modern monitors and TVs. Typically uses backlighting with an
LCD panel.
OLED: Offers superior contrast, faster response times, and no backlight, making it ideal for high-end devices and
displays with flexibility and color accuracy.
These monitors are crucial components for visual output, with each technology offering unique features suited to different
needs and applications.
2. Laser Printers
Working Principle:
Laser printers use a laser beam to project an image of the document onto a rotating drum coated with a
photosensitive material.
The laser creates an electrostatic pattern on the drum, which attracts toner (powdered ink) to the paper, creating
the text or image.
The toner is then fused to the paper with heat and pressure.
Applications:
High-Volume Printing: Ideal for office environments that require fast and efficient monochrome (or color)
document printing.
Professional Documents: Used for printing high-quality text and graphics at a high speed.
3. 3D Printers
Working Principle:
3D printers create objects layer by layer from digital designs.
They use materials such as plastic, metal, or resin, which are extruded through a heated nozzle or cured with light
to form solid layers.
The object is built up in successive layers based on a 3D digital model.
Applications:
Prototyping: Used in product development for creating physical models of designs.
Medical Devices: Producing custom prosthetics and implants.
Manufacturing: For creating complex parts and models in industries like aerospace and automotive.
The three types of printers serve different purposes, from high-quality photo printing to creating physical models or parts
in 3D.
2. Headphones
Working Principle:
Headphones work similarly to speakers, but they are designed for personal use. An audio signal is sent to small
speakers inside the earcups.
They use a magnet and coil system to create vibrations that produce sound, directly transmitted into the ear canal.
There are different types: wired, wireless (Bluetooth), over-ear, on-ear, and in-ear, each designed for different use
cases and comfort levels.
Applications:
Personal Listening: For music, podcasts, gaming, and phone calls.
Studio Monitoring: Used by audio professionals for accurate sound reproduction in music and video production.
Noise Cancelling: Some headphones use active noise cancellation (ANC) to reduce ambient noise, making them
ideal for travel or work in noisy environments.
In summary:
Speakers provide audio output for general use, amplifying sound for larger spaces.
Headphones are designed for personal, private listening.
Surround Sound Systems create immersive, three-dimensional audio experiences with multiple speakers, often
used in home theaters and gaming setups.
Summary of Applications:
Braille Readers are specifically designed for individuals with visual impairments to access written content
through touch.
Haptic Feedback Systems provide tactile sensations to enhance interaction with devices, offering immersive
experiences in gaming, VR, and offering sensory feedback in everyday devices.