Welcome to Computer Hardware!
Have you ever wondered what actually happens inside a computer when you click a mouse, play a video game, or type a message to a friend? It might look like magic from the outside, but underneath the screen is a team of amazing physical parts working together at lightning speed.
In these study notes, we will explore computer hardware. Don't worry if some technical words seem tricky at first — we will break down each part step-by-step with simple explanations, everyday analogies, and helpful memory tips!
---1. The Big Picture: Computer Systems, Hardware, and Software
What is a Computer System?
A computer system is a complete setup of physical parts and coded instructions that work together to take in raw data, process it, and produce a result or store it for later.
Hardware vs. Software: What is the Difference?
• Hardware: The physical, tangible parts of the computer that you can see and touch (such as the keyboard, screen, chips, and cables).
• Software: The programs, applications, and operating systems made of coded instructions that tell the hardware exactly what to do. Hardware cannot do anything without software, and software has nowhere to run without hardware!
Analogy time: Think of a computer system like a music player and a song. The physical headphones and player are the hardware; the digital music track telling the player what sounds to make is the software.
The IPOS Model (How Computers Work)
Every computer system, from a giant supercomputer to a tiny digital watch, follows four simple steps known as the IPOS model:
1. Input: Data or commands are sent into the computer (e.g. typing a letter on a keyboard).
2. Process: The computer works on the data by following instructions and doing calculations.
3. Output: The computer presents the finished result to the user (e.g. showing the letter on a screen).
4. Storage: The computer saves data or instructions so they are not lost when power is turned off.
Key Takeaway: Hardware is what you can touch; software is the set of instructions. All computers follow the Input \(\rightarrow\) Process \(\rightarrow\) Output \(\rightarrow\) Storage cycle.
---2. Inside the Case: Core Internal Hardware
The CPU (Central Processing Unit)
The Central Processing Unit (CPU) is often called the "brain" or the processing engine of the computer. It carries out program instructions, performs mathematical calculations (arithmetic), and makes logical decisions.
How the CPU Works: The Fetch-Decode-Execute Cycle
The CPU carries out instructions continuously, billions of times every second, by repeating a three-step cycle:
• Fetch: The CPU retrieves the next instruction waiting in the computer's temporary memory (RAM).
• Decode: The CPU figures out what the instruction actually means.
• Execute: The CPU carries out the instruction (such as adding two numbers together or moving data).
The Motherboard (System Board)
The motherboard is the main printed circuit board (PCB) inside the computer. It acts like a giant communication highway. Every single internal part (like the CPU and memory) and external device connects to the motherboard so they can send electrical signals to one another via tracks and buses.
Primary Memory: RAM vs. ROM
Inside the computer, there are two main types of primary memory. They sound similar, but they do completely different jobs!
• RAM (Random Access Memory):
- RAM is volatile memory, which means it requires electricity to keep its data. When you turn the computer off, everything in RAM is wiped clear.
- It acts as the computer's temporary working desk, holding the files, apps, and operating system instructions that are currently in use by the CPU.
- Memory trick: Think of RAM as a whiteboard. You write on it quickly while working, but wipe it completely clean at the end of the day.
• ROM (Read-Only Memory):
- ROM is non-volatile memory, meaning it keeps its contents permanently, even when the power is switched off.
- It contains the essential startup instructions (the bootstrap/BIOS/firmware) needed to turn on the computer and load the operating system.
- As the name says, it is "Read-Only" — the computer can read what is written on it, but cannot easily change or overwrite it.
- Memory trick: Think of ROM like a printed textbook. You can read the instructions again and again, but you cannot erase the printed ink.
Graphics Card (GPU - Graphics Processing Unit)
The graphics card contains a specialist processor called the GPU. It handles the heavy calculations needed to render pictures, videos, and complex 3D visuals on your display, taking the strain off the main CPU.
Power Supply Unit (PSU)
The Power Supply Unit (PSU) takes high-voltage alternating current (AC) electricity from your wall socket and converts it into smooth, low-voltage direct current (DC) electricity that the delicate internal computer chips need to run safely.
Key Takeaway: The CPU executes instructions using the Fetch-Decode-Execute cycle. RAM is temporary working memory (volatile), while ROM holds permanent startup instructions (non-volatile).
---3. Secondary Storage: Keeping Data Safe
Because RAM empties every time the computer is turned off, we need secondary storage. Secondary storage is non-volatile, meaning it stores your operating system, software programs, photos, games, and homework permanently until you choose to delete them.
There are three main types of secondary storage technologies:
1. Magnetic Storage:
• Examples: Hard Disk Drives (HDDs).
• How it works: Uses rotating magnetic platters and moving read/write heads to store data magnetically.
• Features: Offers large storage capacity for a relatively low cost, but moving parts can wear out or be damaged if dropped.
2. Solid-State Storage:
• Examples: Solid State Drives (SSDs), USB flash thumb drives, SD memory cards.
• How it works: Uses flash memory chips with no moving parts at all.
• Features: Extremely fast, quiet, and durable, making them ideal for laptops and smartphones.
3. Optical Storage:
• Examples: CDs, DVDs, Blu-ray discs.
• How it works: Uses laser beams to read and write data on the reflective surface of a spinning disc.
• Features: Cheap and portable, but slower to read and easily scratched.
Key Takeaway: Secondary storage is permanent (non-volatile). Magnetic uses spinning disks, solid-state uses flash memory with no moving parts, and optical uses lasers.
---4. Peripherals: Input and Output Devices
Peripherals are hardware devices attached to the outside of the computer system to help it communicate with the real world.
Input Devices
An input device passes data, commands, or signals into the computer system.
• Keyboard & Mouse / Trackpad: Allow humans to type text and give navigational commands.
• Microphone: Captures sound and converts it into digital audio data.
• Scanner & Digital Camera / Webcam: Capture physical images or video frames and convert them into digital files.
• Barcode & RFID Readers: Scan codes on products or cards to input identification numbers.
• Sensors: Measure physical properties from the environment automatically (e.g. temperature, light, and moisture sensors).
Output Devices
An output device takes processed data from the computer and presents it to people in a human-perceptible or physical form.
• Monitor / Screen: Displays visual output such as text, images, and video.
• Printers (Inkjet, Laser, 3D): Create physical copies of documents or build 3D physical objects.
• Speakers & Headphones: Turn digital audio signals into sound waves you can hear.
• Actuators / Motors: Create physical movement (e.g. moving a robotic arm or opening an automated valve).
Special Case — Touchscreens: A touchscreen is both an input device (when you touch the glass with your finger) and an output device (displaying pictures on the screen behind the glass).
Key Takeaway: Input devices put data in; output devices send processed results out.
---5. General-Purpose vs. Embedded Systems
Not all computer systems look like desktop PCs! We divide computer systems into two main categories:
1. General-Purpose Computers
These are versatile systems designed to perform many different tasks depending on the software you load onto them.
• Examples: Desktop PCs, laptops, tablets, and smartphones.
• Why they are general-purpose: You can use a laptop to write an essay, play a game, edit a video, or browse the web just by opening a different application.
2. Embedded Systems
An embedded system is a dedicated computer system built inside a larger mechanical or electrical machine to perform one specific task.
• Examples: Microwave ovens, washing machines, car engine management units, and digital watches.
• Features: They have their own processor, memory, and software, but they are built to do a single job reliably, cheaply, and efficiently.
Key Takeaway: General-purpose computers can do many different jobs by changing the software; embedded systems are built inside appliances to do one dedicated task.
---6. Common Mistakes to Avoid!
• Mistake 1: Confusing Memory (RAM) with Storage (HDD/SSD).
Correction: RAM is temporary working memory (volatile). If you run out of space to save games or photos, you need more secondary storage, not more RAM!
• Mistake 2: Thinking ROM and RAM are the same thing.
Correction: RAM can be written to and read from, but loses its data without power. ROM is permanent (non-volatile) and holds the startup instructions that should not be wiped.
• Mistake 3: Believing the CPU stores your files.
Correction: The CPU executes instructions and crunches numbers; it does not store your files or programs permanently.
• Mistake 4: Thinking only desktop PCs and laptops are computers.
Correction: Smartphones, game consoles, smart TVs, and even modern washing machines contain complete computer systems with processors and memory.
Quick Chapter Summary Checklist
Before moving on, make sure you can answer these quick questions:
• Can you explain the difference between hardware and software?
• What are the four stages of the IPOS model?
• What are the three steps of the CPU's Fetch-Decode-Execute cycle?
• What does volatile mean, and why is RAM volatile while ROM is non-volatile?
• Can you name the three types of secondary storage (magnetic, solid-state, optical)?
• Can you give two examples of an input device, two of an output device, and one embedded system?