Leanpub Header

Skip to main content

Topics

Computer Hardware

From bits, registers and processors to PC building, boot firmware, small boards and the first supercomputers, computer hardware as told through the free samples of the Leanpub books about it.

Created from the free samples of 11 Leanpub books and the descriptions and tables of contents of 19 more, with every source cited.

Computer hardware is the physical part of a computer: the processor that executes instructions, the memory and storage that hold programs and data, the buses and ports that join them, and the devices through which people and other machines reach them. One of the library's introductory guides defines a computer as hardware, operating system software, application software and peripheral devices together, with the hardware as the platform that processes and stores data according to its instructions,[1] and another states the dependence both ways: hardware without software is hazardous waste, and software without hardware is meaningless text.[2]

The subject runs from the logic of a single gate to rooms full of machines. The same guide sorts computers by size and speed into supercomputers, mainframes, minicomputers and microcomputers, the last including personal computers, laptops and smartphones, and by use into general-purpose machines and special-purpose ones such as sensors and appliances.[1] Underneath, all of them are built alike: a processor with a small number of registers as wide as its word size, memory that data must be moved in and out of, and peripherals, stepping through instructions at a rate set by a clock that now runs billions of times a second.[2] Around computing proper lies electrical engineering, which supplies the power, the sensing and the control.

This article follows the subject from the inside out: where to begin, the history, how a processor works, the personal computer and its parts, the point where hardware hands over to software, small boards and microcontrollers, supercomputers, the electrical engineering around the machine, and one proposal for computing without silicon. Its sources are the free samples of the Leanpub books listed at the end, with the descriptions and tables of contents of the books whose samples were not available, and every claim that rests on a source is cited to it. The shelf is a small one for so large a subject: few of its books are about hardware alone, most meet it from the side of the software that drives it, and it holds nothing yet on graphics processors. This is therefore a shorter article than the library's larger subjects get.

Where to start

For a reader who wants to know how a computer works and has no background, Inside the Machine (2026) is addressed to students, beginning programmers and enthusiasts and does not assume a specialist, building from bits to a complete system;[12] Computer Systems (2019) says it needs no experience at all and starts by counting in binary.[2] Introduction to the BBC micro:bit (2017) is a booklet for children and young people built around one small board,[8] and Raspberry Pi Pico Tips and Tricks (2024), which its author says is not written for experts, introduces a microcontroller board one component at a time.[16]

For someone who wants to build, mend or support machines, Assemble your Pc and upgrade your laptops (2021) shows the assembly of a desktop PC in photographs,[14] and Hardware & Operating Systems is a self-paced guide to hardware and Windows for people preparing for help-desk and support work, asking only basic computer skills.[1] IT Help Desk Technician Workbook covers the job those readers are aiming at.[30]

Programmers have their own entrances. Developing a Computer Operating System from Scratch teaches the little C and assembly a newcomer needs before writing an operating system,[21] while Build Your Own Operating System assumes C and is for the person who has wondered what happens between the power button and the blinking cursor.[6] Retrocomputing with Clash (2022) is for experienced Haskell programmers,[13] and Battery Management Systems Made Easy is for engineers who design, review or debug battery systems.[17]

History

Calculating machines are centuries old, but the electronic digital computer dates from the 1940s, built from vacuum tubes and soon given programs stored in its own memory. The transistor, invented in 1947, and the integrated circuit, at the end of the 1950s, shrank it; the microprocessor, a whole central processing unit on one chip, arrived with Intel's 4004 in 1971 and within a decade had made the personal computer possible. Gordon Moore's observation of 1965, that the number of transistors on a chip doubles at a regular interval, described the industry's next half-century.

The library's books enter this history at several points. Hardware & Operating Systems begins further back, with a calculating device of ancient Greece used to track eclipses and the punched cards of the Jacquard loom.[1] THE CODE REVOLUTION (2026) is a history of computing from mechanical calculation through electronic and personal computers to the Internet and artificial intelligence, concerned with how the technologies connect.[27] The fullest account is of supercomputing: Nobody but Us: A History of Cray Research's Software and the Building of the World's Fastest Supercomputer, by a veteran of Cray Research, traces high-performance computing to wartime radio intelligence and Cold War weapons work, and reaches the machines themselves with the founding of Cray Research by Seymour Cray in April 1972 and the delivery of the first CRAY-1 systems in 1976 and 1977.[4] For the personal computer's later life there are two books on one product line: Beneath A Surface (2018) tells how Microsoft's own hardware began in 2012 with a 900 million dollar write-down of unsold stock and survived,[22] and Microsoft Surface Quickly (2024) is a short overview of the devices and how the line has changed.[15]

From bits to processors

The explanation of a computer conventionally starts with the bit. Computer Systems has its reader count in binary, group bits into the four-bit nibble and the hexadecimal digit, and then describes the machine in those terms: a processor of a given width has registers of that width and can operate on a whole register in one clock cycle; it has only a few registers, and many processors cannot calculate on memory directly, so programs spend much of their time moving values between memory and registers; the set of operations a processor offers is its instruction set, and a program is a sequence of them.[2] Inside the Machine lays the same ground out as a chain of chapters, from information and bits through Boolean logic, circuits, memory, the processor and its instructions to performance, caches and the memory hierarchy, storage, input and output and the buses inside the machine, before it turns to the operating system.[12] A short course written for cancer researchers, Computing for Cancer Informatics, covers the basic building blocks of a computer and how binary data becomes computation, for readers who need the ideas in order to choose computing resources.[25]

The four things a computer does with all this, in the support guide's summary, are input, processing, output and storage, with the processor seated on the main circuit board, the motherboard. Its first module also teaches the number systems a technician meets, in hardware addresses, colour values and the character codes ASCII and Unicode, and what to look at when judging a processor, memory and storage.[1]

Processors as designs

A processor need not be bought; it can be described in code and loaded into a field-programmable gate array, a chip whose logic is configured rather than fixed. Retrocomputing with Clash does this in Clash, a hardware description language based on Haskell, building a library of reusable components and then whole historical machines from them: a calculator, Pong, an Intel 8080 processor, Space Invaders and the Compucolor II home computer. Its early chapters treat a signal and a combinational circuit in the functional programmer's own terms, then clocks and registers, LEDs, seven-segment displays and the scanning of a keypad, and video output for a VGA monitor, with a simulator so that a design can be tried on an ordinary computer before any chip is programmed. Its description sends readers to the author's site for sample chapters.[13]

The personal computer, its parts and its upkeep

Hardware & Operating Systems gives three of its five modules to the parts of a PC: the devices and peripherals around it, the ports and connectors, and the components inside the case, the motherboard, processor, memory, drives, expansion cards and cooling. Its list of what a support technician must recognise runs from printers, scanners and pointing devices to display, audio and network cards, wired and wireless connections and the settings held in the BIOS.[1] Assemble your Pc and upgrade your laptops puts the parts together. It starts from what the computer is for and what it will cost, then works through its builds in photographs, on AMD and Intel processors, with a shorter part on upgrading a laptop.[14] When the machine misbehaves the subject becomes troubleshooting: IT Help Desk Technician Workbook teaches a structured method of diagnosis as part of help-desk work, in which hardware is one concern among ticketing, accounts, networking and customer service.[30]

Storage and servers at home

Storage is where hardware choices are least forgiving. ZFS on Ubuntu 20.04 LTS (2022), by the author of the assembly guide, opens with the choice of server, of SAS or SATA and of solid-state or spinning drives, with the advantages and expected speed of each, and with a section headed simply that drives die, before it turns to the file system itself.[26] Pragmatic Self-Hosting (2024) has a chapter, of which the sample shows only the headings, on choosing hardware for a home server: ARM against x86, used PCs, laptops and thin clients, a self-built storage machine with its controllers and drives, power consumption, and the Raspberry Pi.[11]

Where hardware meets software

A computer's first instructions come from its own hardware. Build Your Own Operating System starts where the firmware of a PC hands over, with a boot sector of 512 bytes, and explains its choice of the older BIOS route over UEFI as the simpler one to learn first, a few hundred bytes of assembly being enough to boot; the kernel that follows handles interrupts, memory, a disk and a framebuffer, is developed in an emulator, and is then tried on a real machine. Its description admits what real machines did to it, a desktop whose firmware reported no usable memory and a disk driver that hung on a machine with no legacy port, and the author's advice is that the ideas, booting, memory, scheduling and drivers, carry to other architectures though the instructions do not.[6] Developing a Computer Operating System from Scratch takes a beginner along the same path, from a boot sector to a small system with keyboard, disk and graphics drivers.[21] Computer Systems has a name for the moment: the first attempt to run one's own software on new hardware is a bring-up, and its first goal is to light an LED.[2] On a Raspberry Pi the handover is simpler still, which is why Computer Systems Laboratory uses one: the board runs whatever image is on its memory card, and its processor, graphics processor and memory are packaged as one chip, a system on a chip, a different one in each generation of the board, with the third adding a separate chip for Wi-Fi and Bluetooth.[3]

What makes that first step trustworthy is the subject of Visual Guide to Secure Boot (2026), a ten-page illustrated guide. Its opening chapter defines the root of trust as a hardware component trusted because it cannot be changed, code in a read-only memory that runs before anything else and keys fused into the silicon, on which each later stage, bootloader, operating system and applications, depends in turn. It names the forms this takes in current processors, a dedicated security processor beside the main one or a partition of the chip into secure and non-secure worlds, and its remaining chapters cover the one-time programmable fuses that hold the keys, digital signatures, the chain of bootloaders and certificates, and the attacks on each.[7]

Small boards and microcontrollers

Much of the hardware people now handle directly is a small board. Introduction to the BBC micro:bit describes one: twenty-five LEDs and two buttons on the front, and on the back a 32-bit Arm processor with 16 kilobytes of memory, a Bluetooth radio, a compass and an accelerometer, with an edge connector for circuits; it appears to a computer as a USB drive, and a program, assembled from blocks in a browser editor, is loaded by copying a file onto it.[8] Raspberry Pi Pico Tips and Tricks does the same for the Raspberry Pi Pico, with a chapter on how a microcontroller differs from a computer and then one short chapter to each sensor, motor or display.[16]

The best-selling books on this shelf are of this kind, Neil Kolban's collected notes on the ESP32 and ESP8266 microcontrollers and on the C.H.I.P. single-board computer, though with no sample and no table of contents they can only be named: Kolban's book on ESP32 (2018),[18] Kolban's Book on the ESP32 & ESP8266 (2016)[19] and Kolban's Book on C.H.I.P. (2016).[20] Programming the Raspberry Pi with Perl (2018) teaches the electrical interfaces of a Raspberry Pi, its general-purpose pins, pulse-width modulation and the I2C, SPI and serial buses;[23] Raspberry Pi Computing: Gas Sensors (2020) wires a gas sensor to one through an analogue-to-digital converter;[24] and Beyond Blinky is about the firmware that sits directly on such hardware, written so that a driver does not care which bus its device is on.[10]

Supercomputers and high-performance computing

At the other end of the scale, Nobody but Us: A History of Cray Research's Software and the Building of the World's Fastest Supercomputer is a history of Cray Research written as a primary source by someone who worked there. Its thesis is that high-performance computing is design under constraint: a supercomputer is never built first and found a use afterwards, but is designed against a problem that cannot yet be solved, and since about 1995, the author argues, ordinary computing has hidden its physical constraints behind abstractions that this branch of the craft cannot afford. The sampled chapter reaches the hardware with the first CRAY-1: a refrigeration system using freon, invented when machines were generally cooled by air; columns of modules above the power supplies; the first systems delivered in 1976 to laboratories founded for nuclear weapons design; and a third machine whose sale depended on an operating system and a FORTRAN compiler that a company with no software staff had yet to write. The title is an intelligence doctrine, the confidence that nobody else has the means to exploit a weakness, which the book records a former intelligence chief expressing as the need to own an acre and a half of Cray machines.[4] The same author's Constraint-Based Design: An Unexpected Gateway to Understanding Modern LLM Architecture (2026) is a case study from that world, a game written in 1986 to run on the bare metal of a Cray's input and output subsystem, its whole state held as sixteen yes-or-no flags in one 16-bit register.[5]

For most users high-performance computing now means shared machines rather than owned ones. Computing for Cancer Informatics explains cluster, grid and cloud resources to researchers, with a chapter on the etiquette of sharing them.[25]

Power, sensing and control

Three books by one author stand for the electrical engineering that surrounds a computer. Battery Management Systems Made Easy (2026) is about the electronics and firmware that keep a lithium-ion pack within its limits, since, as its description puts it, a cell is damaged by too high a voltage or by charging below freezing, and a noisy current sensor makes the estimate of remaining charge drift.[17] Sensor Fusion Made Easy (2026) is about combining imperfect readings from inertial sensors, satellite positioning, cameras and lidar into one estimate,[28] and Control Systems Made Easy (2026) about feedback control, from transfer functions and PID tuning to digital control.[29]

Beyond silicon

Fungal Computing: Theoretical, Hypothetical, and DIY Approaches to Building a Mycelium-Based Computer at Home (2025) is the shelf's one book on unconventional hardware, and by its own title a theoretical and hypothetical one. It treats the mycelium of a fungus as a network that carries electrical signals, compares it with silicon, which it grants is faster and more uniform while the fungus is adaptive, parallel and slow, and describes a home experiment: grow the mycelium, insert carbon-based electrodes, apply pulses from a signal generator and record what comes back. Its later chapters, by their titles, are speculative, and the book locates the promise of the idea in flexible electronics, biodegradable materials and decentralised processing rather than in speed.[9]

Sources

Every source is a Leanpub book or course. The note after each says which part of it was read; where no sample was available, only the public description and table of contents were used.

  1. 1.
    Hardware & Operating Systems, Bolakale Aremu: A Practical Guide for Getting Job-ready Skills in Information Technology Free sample: the table of contents, the introduction and the opening of the first module, classifying computers and the four tasks a computer performs. 2026. Free sample: PDF · EPUB
  2. 2.
    Computer Systems, Sean Lawless: Incremental Systems Engineering Free sample: chapter one, on system software, binary and hexadecimal numbers and how a processor, its registers and memory compute. 2019. Free sample: PDF · EPUB
  3. 3.
    Computer Systems Laboratory, Sean Lawless: for Raspberry Pi Free sample: Lab 1 on why the Raspberry Pi is used and its hardware, and the start of Lab 2. 2019. Free sample: PDF · EPUB
  4. 4.
    Nobody but Us: A History of Cray Research's Software and the Building of the World's Fastest Supercomputer, Edward W. Barnard: HPC Tradecraft Apprenticeship, Volume 2 Free sample: the introduction and the first chapter of Part I, from wartime radio intelligence to the first CRAY-1 deliveries. 2026. Free sample: PDF · EPUB
  5. 5.
    Constraint-Based Design: An Unexpected Gateway to Understanding Modern LLM Architecture, Edward W. Barnard: The HPC Tradecraft Master Practitioner, Volume 3 Free sample: chapter one on the plan of the book and the game's design, and an appendix; later chapters are headings only. 2026. Free sample: PDF · EPUB
  6. 6.
    Build Your Own Operating System, Noah Parsons Free sample: the preface, chapter one on what an operating system is and what will be built, and chapter two on the toolchain and a first boot sector. 2026. Free sample: PDF
  7. 7.
    Visual Guide to Secure Boot, Sumanth Murali Free sample: the contents page and chapter one, on the root of trust. 2026. Free sample: PDF
  8. 8.
    Introduction to the BBC micro:bit, Joachim Haagen Skeie Free sample: chapter one on the board and how it is programmed, and the start of chapter two. 2017. Free sample: PDF
  9. 9.
    Fungal Computing: Theoretical, Hypothetical, and DIY Approaches to Building a Mycelium-Based Computer at Home, Dr. Brent Allen Jensen Free sample: chapters one to five, on what fungal computing is, mycelium as a network, the comparison with silicon and the steps of a home build; the sample opens with leftover template text. 2025. Free sample: PDF · EPUB
  10. 10.
    Beyond Blinky, Nguyen Hoan Hoang: Object-Oriented C++ Programming for Embedded Systems Free sample: the table of contents, the preface and chapter one on C++ in embedded systems. 2025. Free sample: PDF
  11. 11.
    Pragmatic Self-Hosting, Andrej Friesen: How to get started with self-hosting for absolute beginners Free sample: the preface and introduction on what self-hosting is and why to do it; the hardware chapter appears as headings only. 2024. Free sample: PDF · EPUB
  12. 12.
    Inside the Machine, Mohammad Kamrul Hassan: How Computers Really Work—from Bits and Logic to CPUs, Memory & Operating Systems No sample: from the description, which lists the chapters. 2026.
  13. 13.
    Retrocomputing with Clash, Gergő Érdi: Haskell for FPGA Hardware Design No sample here: from the description and table of contents. 2022.
  14. 14.
    Assemble your Pc and upgrade your laptops, Carles Mateo: Intel and AMD year 2021 No sample: from a one-sentence description and the table of contents. 2021.
  15. 15.
    Microsoft Surface Quickly, Anand Narayanaswamy: Exploring Microsoft's Masterpiece: The Evolution and Innovations of Surface Devices No sample: from the description alone; the table of contents is empty. 2024.
  16. 16.
    Raspberry Pi Pico Tips and Tricks, Malcolm Maclean No sample: from the description and table of contents. 2024.
  17. 17.
    Battery Management Systems Made Easy, Alex Morgan : A Practical Engineer's Guide to Designing, Building, and Validating Lithium-Ion Battery Management Systems No sample: from the description alone; the table of contents is empty. 2026.
  18. 18.
    Kolban's book on ESP32, Neil Kolban No sample: from the description alone; the table of contents is empty. 2018.
  19. 19.
    Kolban's Book on the ESP32 & ESP8266, Neil Kolban No sample: from the description alone, which covers only the ESP8266; the table of contents is empty. 2016.
  20. 20.
    Kolban's Book on C.H.I.P., Neil Kolban No sample: from the description alone; the table of contents is empty. 2016.
  21. 21.
    Developing a Computer Operating System from Scratch, TINU TOM: An Attempt to Introduce OS Development at Beginner Level No sample: from the description and table of contents. 2025.
  22. 22.
    Beneath A Surface, Brad Sams No sample: from the description and chapter titles. 2018.
  23. 23.
    Programming the Raspberry Pi with Perl, Timm Murray, Steve Bertrand No sample: from the description and table of contents. 2018.
  24. 24.
    Raspberry Pi Computing: Gas Sensors, Malcolm Maclean No sample: from the description and table of contents. 2020.
  25. 25.
    Computing for Cancer InformaticsCourse, Carrie Wright, Sarah Wheelan, Candace Savonen, Fred Hutch No sample: from the course description and its list of seven lessons. 2023.
  26. 26.
    ZFS on Ubuntu 20.04 LTS, Carles Mateo: Working with ZFS 0.7 and 0.8.3 on Ubuntu Linux No sample: from the description and table of contents. 2022.
  27. 27.
    THE CODE REVOLUTION, Mohammad Kamrul Hassan: From Binary to Brains: The Evolution of Computer Science, Information & AI No sample: from the description alone; the table of contents is empty. 2026.
  28. 28.
    Sensor Fusion Made Easy, Alex Morgan : A Practical Engineer's Guide to Combining Sensors, Estimating State, and Building Reliable Fusion Pipelines No sample: from the description alone; the table of contents is empty. 2026.
  29. 29.
    Control Systems Made Easy, Alex Morgan : A Practical Engineer's Guide to Feedback, Stability, PID Control, State Space Systems, and Real-World Automation No sample: from the description and a table of contents that still carries template placeholder sections. 2026.
  30. 30.
    IT Help Desk Technician Workbook, Kompri No sample: from the description and table of contents. 2026.

Further reading

Other books in the library on the same ground, not cited above.

This is an article created from the free samples of 11 Leanpub books and the descriptions and tables of contents of 19 more. We're building these articles to provide you, the Leanpub reader, with a good jumping-off point to discover more Leanpub books that are interesting and relevant to you. We never use material which is paid-only when building these articles: we only use material which is already free on Leanpub. However, Leanpub authors can opt out from inclusion in articles from their book settings page.

Updated November 2026.

In the Leanpub store: 101 books · 2 courses in the Computer Hardware category · also filed under Electrical Engineering, GPU Programming, CUDA, High Performance Computing, Signal processing

All topics