Introduction: The World Outside the CPU
Welcome! So far, you have looked at the "brain" of the computer—the CPU—and how it processes data. But a brain isn't very useful without a way to see the world, talk to people, or remember things long-term. That is where external hardware devices come in.
In these notes, we are going to explore input and output devices that let us interact with computers, and secondary storage devices that keep our files safe when the power is turned off. Don't worry if some of the technical names sound intimidating; we will break them down into simple, real-world ideas!
3.7.4.1 Input and Output Devices
Input devices take data from the real world and turn it into 0s and 1s for the computer. Output devices do the opposite—they take binary and turn it into something humans can understand, like a printed page or an image.
1. Barcode Readers
Purpose: To quickly identify products in shops, track parcels, or manage library books.
How it works:
1. The reader shines a laser or LED light onto the barcode.
2. The white bars reflect a lot of light, while the black bars absorb it.
3. A sensor (photo-electric cell) detects the amount of reflected light.
4. This "light and dark" pattern is converted into an electrical signal and then into binary data.
Analogy: Imagine shining a torch at a mirror vs. a piece of black coal. The mirror reflects the light back at you (white bar), but the coal keeps the light (black bar).
2. Digital Cameras
Purpose: To capture images and videos in a digital format.
How it works:
1. Light passes through the lens onto a sensor called a CCD (Charge-Coupled Device) or CMOS sensor.
2. This sensor is made of millions of tiny "buckets" called pixels.
3. When light hits a pixel, it creates an electric charge. The more light, the stronger the charge.
4. An ADC (Analogue to Digital Converter) measures these charges and turns them into binary numbers to create the image file.
3. Laser Printers
Purpose: To produce high-quality, fast-printed documents on paper.
How it works:
1. A rotating drum is given a positive electric charge.
2. A laser "draws" the page onto the drum, discharging the areas where the text should be (making them negative).
3. Toner (powdered ink) is positively charged, so it sticks only to the negatively charged parts of the drum.
4. The paper is rolled over the drum, and the toner transfers to the paper.
5. A fuser (hot rollers) melts the toner onto the paper so it stays there permanently.
Quick Review: Laser printers use static electricity to make the ink stick!
4. RFID (Radio Frequency Identification)
Purpose: Used for contactless payments, "chipping" pets, or tracking stock in warehouses.
How it works:
1. An RFID tag contains a tiny chip and an antenna.
2. An RFID reader sends out a radio signal.
3. The tag picks up this signal. If it's a passive tag, it actually uses the energy from the radio wave to "wake up" and send its data back to the reader.
Did you know? Passive RFID tags don't need batteries! They are "powered" by the reader's signal whenever they get close enough.
Section Summary: Input and output devices bridge the gap between us and the digital world. Barcode readers and cameras capture data, printers produce physical copies, and RFID allows for wireless data exchange.
3.7.4.2 Secondary Storage Devices
Why do we need secondary storage? Because Main Memory (RAM) is volatile—as soon as you turn the computer off, everything in RAM is deleted. Secondary storage is non-volatile, meaning it keeps your data safe forever (or until you delete it!).
1. Hard Disk Drives (HDD)
Characteristics: Uses magnetic platters that spin at high speeds.
How it works:
A mechanical read/write head moves across the spinning disks. It changes the magnetic polarity of tiny sections on the disk to represent 1s and 0s.
Suitability: Great for storing huge amounts of data (Terabytes) cheaply, but they can be damaged if dropped because they have moving parts.
2. Optical Disks (CD, DVD, Blu-ray)
Characteristics: Uses lasers to read and write data on a reflective surface.
How it works:
The disk surface has tiny "pits" (bumps) and "lands" (flat areas). A laser shines on the disk; when it hits a land, it reflects back perfectly. When it hits a pit, the light scatters. The sensor sees these changes as 1s and 0s.
Suitability: Very cheap and portable, but slow to read/write and can be easily scratched.
3. Solid-State Drives (SSD)
Characteristics: No moving parts! Uses NAND flash memory.
How it works (The Technical Bit):
1. SSDs use floating gate transistors to trap and store electrical charge.
2. Data is stored in pages, which are grouped into blocks.
3. Important Rule: An SSD cannot overwrite data directly on a page. To change data, a whole block must be erased before it can be written to again.
Common Mistake to Avoid: Don't confuse SSDs with HDDs. SSDs have no spinning disks; they are more like a giant, very fast version of a USB stick.
Comparison Table (Simplified):
- Speed: SSD is the fastest; HDD is medium; Optical is the slowest.
- Capacity: HDD and SSD are both very high; Optical is low.
- Durability: SSD is the best (no moving parts); HDD is fragile.
- Cost: Optical is cheapest; HDD is cheap per GB; SSD is the most expensive.
Key Takeaway: Choose an HDD for cheap, massive storage. Choose an SSD for speed and reliability in laptops. Use Optical for distributing movies or cheap backups.
Final Quick Review Box
Barcode: Reflection of light (Laser/LED).
Camera: Light to charge (CCD/CMOS sensor).
Laser Printer: Static electricity and heat (Fuser).
RFID: Radio waves (Tag and Antenna).
SSD: No moving parts, NAND flash, faster than HDD.
HDD: Magnetic, spinning disks, high capacity.
Optical: Lasers, Pits and Lands, portable.
Don't worry if this seems like a lot of steps! Just remember the core "energy" each one uses: Barcodes/Cameras use Light; HDDs use Magnetism; SSDs use Electricity; RFID uses Radio.