Turning Learners Into Developers
Codekilla
CODEKILLA
// computer.fundamentals · Chapter 06 / 20

All Parts of a Computer (Hardware)

Input, output, CPU, memory, storage, motherboard, power, cooling, ports — with an animated exploded view

On this page
MOTHERBOARDCPURAMRAMGPUChipsetM.2 SSDBIOSCMOS 🔋PSU230 V AC → 12 V DCHDD / SSDSATA · 2.5 / 3.5 inchCooling fanscase · CPU · GPUMonitorHDMI / DisplayPortKeyboard · MouseUSBSpeakers · Printer3.5 mm · USB · Wi-Fiports: USB-A · USB-C · HDMI · Ethernet · audio
Exploded view of a desktop PC. Everything plugs into the motherboard; the PSU feeds power to all parts.

Central Processing Unit (CPU) — the brain

CPUCONTROL UNITfetch · decode · directALU+ − × ÷ · AND OR NOTREGISTERSPC · IR · ACMAR · MDRL1 cache 64 KB↕ RAM (instructions + data)1. FETCH2. DECODE3. EXECUTE4. STORE
Machine cycle: Fetch → Decode → Execute → Store. The Control Unit directs, the ALU calculates, registers hold the working values.
CPU partJobHindi
Control Unit (CU)Fetches instructions from memory, decodes them, and sends control signals to every other part — the traffic policemanनियंत्रण इकाई
Arithmetic Logic Unit (ALU)Does all maths (+ − × ÷) and logic (AND, OR, NOT, compare)अंकगणितीय तर्क इकाई
RegistersTiny ultra-fast storage inside the CPU: Program Counter (PC), Instruction Register (IR), Accumulator (AC), Memory Address Register (MAR), Memory Data Register (MDR)रजिस्टर
Cache (L1 / L2 / L3)Small very fast SRAM that keeps frequently used data next to the cores; L1 ≈ 32–64 KB per core, L3 up to 96 MB+ on AMD X3D chipsकैश स्मृति
Cores & threadsEach core is a complete CPU; modern chips have 4–24 cores (desktop) or 192 cores (server AMD EPYC). Hyper-threading lets one core run 2 threadsकोर
ClockCrystal oscillator ticks billions of times per second (3–6 GHz) and synchronises every stepघड़ी
FPU / SIMD / NPUFloating-point unit for decimals; SIMD (AVX, NEON) for vectors; NPU for AI (40+ TOPS in 2024 laptops)—

Machine cycle: FETCH the instruction (PC → MAR → memory → MDR → IR) → DECODE it in the CU → EXECUTE in the ALU → STORE the result (write-back). Then PC = PC + 1. A 4 GHz CPU repeats this 4 billion times each second, and pipelining lets it work on several instructions at once.

Memory hierarchy (fast & small → slow & big)

Registers< 1 ns · bytesCache L1 / L2 / L31–10 ns · MBRAM (DDR5)80 ns · 8–64 GBSSD (NVMe)0.05 ms · 1–8 TBHDD / Tape / Cloud5 ms+ · ∞fast ↑big ↓₹₹₹₹
Memory pyramid — top is fastest and smallest, bottom is slowest and biggest.
LevelTypeTypical sizeSpeed (access)Volatile?Hindi
RegistersInside CPUa few hundred bytes< 1 nsYesरजिस्टर
Cache L1/L2/L3SRAMKB → tens of MB1–10 nsYesकैश
RAM (main memory)DRAM — DDR4 / DDR5 / LPDDR5X8–64 GB50–100 nsYes — wiped when power goesमुख्य स्मृति / यादृच्छिक अभिगम स्मृति
ROM / BIOS / UEFIFlash (EEPROM)16–32 MB~100 nsNoकेवल पठनीय स्मृति
SSDNAND flash (SATA ≈ 550 MB/s, NVMe PCIe 4/5 ≈ 7–14 GB/s)256 GB – 8 TB~0.05 msNoठोस अवस्था ड्राइव
HDDMagnetic spinning platters (5,400/7,200 rpm, ≈ 150–250 MB/s)1–24 TB~5–10 msNoहार्ड डिस्क
OpticalCD 700 MB · DVD 4.7 GB · Blu-ray 25–128 GB—slowNoप्रकाशीय डिस्क
Tape (LTO-9)Magnetic tape for archives18 TB per cartridgeminutes to seekNoचुंबकीय टेप
CloudSomeone else's data centre over the internetunlimiteddepends on networkNoक्लाउड
  • ITypes of RAM: SRAM (fast, used in cache), DRAM (needs refresh; used as main memory), SDRAM, DDR1→DDR5, LPDDR (phones), GDDR6/GDDR7 (graphics cards), HBM (AI chips).
  • IITypes of ROM: PROM (program once), EPROM (erase with UV light), EEPROM/Flash (erase electrically — pen drives, SSDs, BIOS chip).
  • IIIVirtual memory: when RAM is full, the OS uses part of the SSD/HDD as 'page file' or 'swap' — slower but prevents crashes.

Motherboard components

ComponentWhat it does
CPU socket (LGA 1851 Intel, AM5 AMD)Holds the processor; has 1,000–2,000 contact pins
Chipset (Intel Z890 / AMD X870)Traffic controller between CPU, RAM, storage and ports (older boards had a Northbridge + Southbridge)
RAM slots (DIMM)2–4 slots; dual-channel doubles bandwidth
PCIe slots (x16, x4, x1)Graphics card, capture card, Wi-Fi card; PCIe 5.0 x16 = 64 GB/s each direction
M.2 slotsNVMe SSDs and Wi-Fi modules — 22 mm wide, 80 mm long (2280)
SATA ports2.5-inch SSDs and 3.5-inch HDDs at 6 Gb/s
BIOS / UEFI chipFirmware that tests hardware (POST) and starts the OS; settings stored in CMOS
CMOS battery (CR2032)Keeps clock & BIOS settings when the PC is off — if the date resets, replace it
VRM (voltage regulator module)Converts 12 V to the CPU's ~1.2 V with heavy current; has its own heatsinks
Power connectors (24-pin ATX, 8-pin EPS)Bring power from the PSU
Front-panel header, fan headers, USB headersPower button, LEDs, case fans, case USB ports
Rear I/O panelUSB-A/USB-C/Thunderbolt, HDMI/DisplayPort, Ethernet, audio jacks, PS/2, antenna
BusesAddress bus (where), Data bus (what), Control bus (how) — the 'roads' on the board

Input devices (data goes INTO the computer)

DeviceHindiNotes
KeyboardकुंजीपटलQWERTY layout (1873 typewriter); 104 keys standard; types: membrane, mechanical, chiclet, virtual
Mouseमाउस / चूहाMechanical ball (1968) → optical (1999) → laser; DPI = sensitivity; invented by Engelbart
Touchpad / Trackpointस्पर्श पट्टLaptops
Touchscreenस्पर्श पटलResistive (pressure) vs capacitive (finger charge) — phones use capacitive
Scannerक्रमवीक्षकFlatbed, handheld, sheet-fed; OCR converts scanned text to editable text
Barcode / QR readerबारकोड पाठकShops, UPI payments
Microphoneध्वनिग्राहकVoice input; speech-to-text
Webcam / cameraकैमराVideo calls, face unlock
Joystick / gamepadजॉयस्टिकGaming, drones
Light pen & graphics tablet (stylus)प्रकाश लेखनीDrawing, signatures
OMR / OCR / MICR—OMR reads bubbles on exam sheets; OCR reads printed text; MICR reads magnetic ink on cheques
Biometric sensorsबायोमेट्रिकFingerprint, iris, face (Aadhaar uses all three)
Sensors (IoT)संवेदकTemperature, GPS, accelerometer, gyroscope in every phone

Output devices (information comes OUT)

DeviceHindiNotes
Monitorमॉनिटर / प्रदर्शकCRT (heavy glass tube, till 2005) → LCD → LED-backlit → OLED → mini-LED; resolution 1080p / 1440p / 4K / 8K; refresh 60–540 Hz
Printerमुद्रकImpact: dot-matrix (noisy, carbon copies). Non-impact: inkjet (home), laser (office, toner), thermal (bills/ATM), 3D printer (objects)
Speakers / headphonesध्वनि विस्तारकSound output
Projectorप्रक्षेपकClassrooms, cinema
Plotterआलेखित्रLarge engineering drawings; uses pens
Braille display / embosserब्रेलFor visually impaired users
Haptic / vibration motor—Phones, game controllers
Both input & output—Touchscreen, modem, network card, headset, VR headset, USB drive

Other hardware

PartJobTypical specs
GPU / graphics cardThousands of small cores draw pixels and run AI maths in parallelNvidia RTX 5090: 21,760 cores, 32 GB GDDR7, 575 W; integrated GPUs share RAM
Power Supply Unit (PSU / SMPS)Converts 230 V AC to 12 V / 5 V / 3.3 V DC450–1,000 W; 80 Plus Bronze/Gold/Platinum efficiency ratings
CoolingRemoves heat — a CPU can reach 100 °CHeatsink + fan, liquid AIO cooler, thermal paste, case fans
Cabinet / chassisHolds everythingFull tower, mid tower, mini-ITX, all-in-one
Network card (NIC) / Wi-Fi / BluetoothConnects to other computers2.5 Gb/s Ethernet, Wi-Fi 7 (46 Gb/s theoretical), Bluetooth 5.4
Sound cardConverts digital audio ↔ analogUsually built into the motherboard
UPSBattery backup during power cuts600 VA – 2 kVA for homes
Expansion cardsCapture cards, RAID, extra USBPCIe

Ports & connectors

PortUsed forSpeed / note
USB-A 2.0 / 3.xKeyboard, mouse, pen drive480 Mb/s / 5–20 Gb/s
USB-C / Thunderbolt 4–5Charging (up to 240 W), display, data — one port for everything40 / 80 Gb/s
HDMI 2.1TV & monitor video + audio48 Gb/s; 4K@120 Hz
DisplayPort 2.1Monitors80 Gb/s; 8K
VGA / DVIOld monitors (analog / digital)Legacy
RJ-45 EthernetWired internet1–10 Gb/s
3.5 mm audio jackHeadphones, micAnalog
SD / microSD card slotCameras, phonesUHS-II up to 312 MB/s
PS/2Old keyboard/mouse (purple/green)Legacy
LightningOlder iPhones (2012–2023)Replaced by USB-C in 2023
// Keep exploring
All chapters →