๐Ÿงช Lab: Building a Computer#

A Step-by-Step Guide: Building a Computer from Scratch ๐Ÿ’ป๐Ÿ› ๏ธ#

Introduction: Why Engineers Should Learn to Build Computers? ๐Ÿค”#

As an engineer, understanding how computers work at a fundamental level is critical. Computers are integral tools for designing, simulating, and testing solutions across various fields of engineering. Learning how to build one offers the following benefits:

  • Practical Knowledge: Familiarity with hardware components improves problem-solving skills when systems fail.

  • Customization: Tailor systems to specific tasks such as CAD, simulations, or software development.

  • Cost Efficiency: Save money by assembling computers with optimized configurations.

  • Troubleshooting: Diagnose and repair hardware issues with confidence.

Instructions: Building a Computer from Scratch ๐Ÿ› ๏ธ#

Building a computer is a valuable skill for engineers, providing insight into the integration of hardware components and their operation as a cohesive system. This process involves selecting compatible components, assembling them, and testing the system to ensure it functions as expected.

In this lab, you will focus on rebuilding old computers in small groups to understand hardware fundamentals and problem-solving techniques. This exercise mirrors the essential steps of building a computer from scratch while offering a practical introduction to key concepts. If you were to build a modern computer from scratch, hereโ€™s how the process would unfold:

Selecting Components: Choosing the Right Parts ๐Ÿงฉ#

The most critical step in building a computer is choosing components that meet your needs while ensuring compatibility. Hereโ€™s what you need to consider:

  • Processor (CPU): The brain of the computer. Select a CPU based on performance needs (e.g., Intel Core or AMD Ryzen series).

    • Compatibility Tip: Ensure the motherboard has the correct socket type (e.g., LGA 1700 for Intel or AM5 for AMD).

  • Motherboard: Acts as the backbone, connecting all components.

    • Key Features:

      • Socket compatibility with the CPU.

      • Sufficient RAM slots and support for desired memory speed.

      • PCIe slots for GPU or other expansion cards.

      • Built-in I/O ports (USB, Ethernet, HDMI).

  • Memory (RAM): Temporary storage for active processes.

    • Recommendation: DDR4 or DDR5 with a minimum capacity of 16GB.

    • Ensure the RAM is compatible with the motherboardโ€™s supported speed.

  • Storage: Choose a balance of speed and capacity:

    • NVMe SSD: For fast performance (e.g., boot times, application loads).

    • SSD: A good balance of speed and capacity for general use.

    • HDD: For additional storage of large files.

  • Graphics Card (GPU): Essential for graphical tasks like rendering, gaming, or CAD software. Also useful for machine learning or AI applications.

    • If the CPU has integrated graphics, you may not need a separate GPU for basic tasks.

  • Power Supply Unit (PSU): Provides electricity to all components.

    • Tip: Calculate the systemโ€™s power consumption and choose a PSU with at least 30% extra wattage for a safety factor.

  • Case: Protects and houses components. Look for proper size (ATX, Micro-ATX) and good airflow.

Resource for Compatibility ๐Ÿ–ฅ๏ธ#

  • PCPartPicker: This online tool simplifies the process of selecting and verifying compatible components. It flags potential issues, such as mismatched sockets or insufficient PSU wattage.

In-Lab Task: Rebuilding Old Computers#

In this lab exercise, you will:

  • Work in small groups to reassemble and disassemble old computers.

  • Identify and categorize components (CPU, RAM, storage, GPU, etc.).

  • Test rebuilt systems to ensure functionality.

  • Apply critical thinking to troubleshoot any errors or misconfigurations.

Mise en Place: Gather Your Tools ๐Ÿงฐ#

Warning

Electrical components are sensitive to static electricity. Before handling any parts, make sure to ground yourself by touching a metal object or wearing an anti-static wrist strap.

Warning

Ensure the power supply is unplugged and the power switch is off before starting the build process. Make sure that the system has been discharged of any residual power by pressing the power button after unplugging the power supply, and waiting at least 15 seconds before starting the build. Some capacitors can hold a charge even after the power supply is unplugged.

Warning

It is advisable to wear gloves when building computers this will prevent oils from your skin from getting on the components, and will protect you from chemical exposures such as thermal paste.

Warning

When handling the CPU, avoid touching the pins or the contact points on the bottom of the CPU. Hold the CPU by the edges to prevent damage.

Before you start building your computer you should ensure that you have all the necessary tools and components.

Tools Required:#

  • Screwdriver: For securing components to the case.

  • Anti-Static Wrist Strap: To prevent static discharge. Not needed here โ€“ these parts were destined for e-waste.

  • Thermal Paste: For CPU cooling (We are not going to apply thermal paste).

  • Cable Ties: For cable management (we are not going to do cable management). However, people love to see a clean build.

cable management

Components Required:#

Case:#

The enclosure that houses all components.

case

Motherboard:#

The main circuit board that connects all components. Your motherboard will already be installed in the case.

motherboard

CPU:#

This is the brain of the computer.

motherboard

CPU Cooler:#

To keep the CPU cool during operation.

motherboard

RAM:#

Random Access Memory for temporary storage.

ram

Storage:#

Non-volatile memory for storing data, and the operating system and preserving it when the power is off.

NVMe SSD

Non-Volatile Memory Express (NVMe) is a protocol for accessing high-speed storage media. NVMe can reach speeds up to 32 Gb/s, significantly faster than SATA SSDs.

nvme ssd

SSD

Solid State Drive (SSD) is a storage device that uses flash memory to store data. SSDs are faster and more reliable than traditional hard drives, and can achieve speeds up to 6 Gb/s.

ssd

HDD

Hard Disk Drive (HDD) is a traditional storage device that uses spinning disks to store data. HDDs are slower than SSDs but offer more storage capacity. They have speeds up to 1.2 Gb/s.

hdd

GPU:#

Graphics Processing Unit for rendering graphics. Note that some CPUs have integrated graphics with output on the motherboard.

gpu

Power Supply Unit (PSU):#

Supplies power to all components.

psu

Case Fans:#

For cooling the system. Your case will come with fans pre-installed, however, the power might not be connected.

USB Drive:#

Preloaded with the operating system for installation. We are going to install an open source Linux operating system called Ubuntu.

Assemble the Computer โš™๏ธ#

Step 1: Install the CPU ๐Ÿง #

1. Locate the CPU socket on the motherboard. This will be a square or rectangular slot with pins in the center of the motherboard. Usually, there is some sort of latch that you will need to release to open the socket.

locating the CPU socket

2. Release the latch and lift the CPU socket cover.

releasing the latch

3. Align the CPUโ€™s *golden triangle_ with the triangle on the socket. This ensures the CPU is oriented correctly. Sometimes the CPU will have a small arrow in one corner, this should be aligned with the arrow on the socket. These are called alignment markers or _feducial markers*. Make sure the pins are alligned to the holes in the cpu socket - this is where all the electrical connections are made.

aligning the CPU aligning the CPU

4. Place the CPU gently into the socket. *Do not force it*. Generally it should just drop in. If you have to apply force, you are doing something wrong.

placing the CPU

5. Secure the CPU by closing the latch.

latching the CPU

Step 2: Install the CPU Cooler โ„๏ธ#

Generally when you buy a CPU cooler, it will come with thermal paste pre-applied. If it does not, you will need to apply a small amount of thermal paste to the CPU. The thermal paste is used to fill in the microscopic gaps between the CPU and the cooler, which helps to transfer heat from the CPU to the cooler. Since we are just demonstrating how to build a computer and not actually building one, we will not be applying thermal paste.

Tip

It is important to apply the right amount of thermal paste. Too much can cause the paste to spill over the sides of the CPU and onto the motherboard, which can cause a short circuit. Too little can cause the CPU to overheat. A small pea-sized amount in the center of the CPU is generally sufficient.

thermal paste

2. Mount the cooler over the CPU using the included bracket or screws.

mounting the cooler

3. Connect the coolerโ€™s fan to the *CPU_FAN_ or _FAN_CPU* header on the motherboard.

Generally CPU coolers will have a 4-pin connector that will connect to the CPU_FAN header on the motherboard. This header is usually located near the CPU socket. This header is used to control the speed of the fan based on the temperature of the CPU.

fan header

Step 3: Install the RAM ๐Ÿ”‹#

1. Open the RAM slots on the motherboard by pushing the clips outward.

2. Align the *notch* on the RAM stick with the slot.

Tip

The ram sticks will have a notch in the middle of the stick. This is to ensure that the stick is inserted in the correct orientation. If the notch does not align with the slot, do not force the stick in. You may damage the stick or the slot.

3. Press down firmly until the clips snap back into place.

Tip

One of the most common reasons why a computer will not boot is because of a bad or improperly seated RAM stick. If you are having trouble booting your computer, try reseating the RAM sticks. This is troubleshooting 101.

installing RAM

Step 4: Install the PSU ๐Ÿ”Œ#

1. Place the PSU into the designated case compartment.

installing PSU

Note

PSU can either be modular or non-modular. Modular PSUs allow you to connect only the cables you need, reducing clutter. Non-modular PSUs have all cables attached.

Tip

When installing the PSU, make sure the fan is facing down. This will allow the PSU to draw in cool air from outside the case and exhaust hot air out the back of the case.

Tip

PSUs are one of the most failure-prone components in a computer. If your computer is not turning on, the PSU is one of the first things you should check.

2. Secure the PSU to the case with screws. These are usually located at the back of the case.

3. Connect the following power cables:

  • 24-pin ATX to the motherboard. This is the main power connector.

24-pin ATX cable 24-pin ATX
  • CPU power to the motherboard.

Most modern motherboards require an 8-pin CPU power connector. Some high-end motherboards may require both a 4-pin and an 8-pin connector, while others may only need a 4-pin connector. In some cases, all power may be supplied through the 24-pin connector. Look for a connector labeled CPU or EPS, usually located near the CPU socket.

4-pin CPU connector 4-pin CPU connector

Step 5: Install Storage ๐Ÿ’พ#

NVMe SSD:#

Most of the computers we have procured are rather old and do not have NVMe SSDs. However, the process of installing an NVMe SSD is very simple. You just need to insert the SSD into the M.2 slot at an angle and secure it with the small screw provided.

1. If your M.2 SSD comes with a heatsink pre-installed and the M.2 slot on your motherboard already has a heatsink cover, remove the motherboard heat sink cover.

M.2 SSD

2. If your motherboard has any standoffs pre-installed for short 2242 and 2260 M.2 SSDs, remove those standoffs to avoid damaging your 2280 M.2 SSD.

M.2 SSD Standoff

3. Install the standoff in the 2280 socket.

M.2 SSD Standoff Installation

4. Remove the mounting screw next to the M.2 slot.

5. Gently insert the M.2 SSD into the M.2 slot. The M.2 slot is designed so that the M.2 SSD can only be inserted one way, according to the M key of the 2280 M.2 SSD. If the M.2 SSD doesnโ€™t go in, do NOT force it in or you risk damaging your SSD and motherboard.

M.2 SSD Installation

6. Press down on the M.2 SSD so the notch on the left of the drive lines up with the screw hole.

7. Reinstall the screw to secure the M.2 SSD.

M.2 SSD Installation

Note

Most modern laptops use M.2 SSDs. Now you can upgrade your laptopโ€™s storage โ€“ sorry mac users, the new macbooks have soldered on storage so you canโ€™t upgrade them.

For SATA Drives:#

1. Mount the drive in the designated case bay. In this lab we can just find a temporary place to secure the drive.

2. Connect the *SATA cable* to the motherboard and drive.

SATA stands for Serial Advanced Technology Attachment. It is a standard for connecting and transferring data between hard drives and the motherboard. SATA cables are usually red, but can come in other colors as well.

SATA cable SATA motherboard port SATA drive connectors

3. Connect the *power cable* from the PSU.

SATA power cable

4. Final Connected Drive

connected drive

Note

If you want to install peripheral drives like a CD/DVD, zip, or floppy disk drives you will use SATA cables to connect them to the motherboard and the PSU, just like you would with a hard drive.

Step 6: Install the GPU (if applicable) ๐ŸŽฎ#

Many modern computers have integrated graphics and do not require a separate GPU. However, if you are building a gaming computer or a computer for machine learning, you will need a separate GPU.

1. Insert the GPU into the *PCIe x16 slot* on the motherboard.

locate the PCIe x16 slot on the motherboard. This is the slot that is used for the GPU. It is usually the topmost slot on the motherboard. The slot will have a latch that you will need to release to open the slot.

installing GPU

Make sure the GPU is aligned with the slot and press down firmly until the latch clicks into place. Usually it is best to insert the GPU at an angle and then press down on the back of the GPU to secure it in place working from the back to the front. There generally will be a noticeable click when the GPU is fully seated.

installing GPU

2. Secure it to the case with screws.

Generally the GPU will have a bracket that will need to be secured to the case with screws. The bracket will have a hole that lines up with a hole in the case. You will need to insert a screw through the bracket and into the case to secure the GPU.

If you have a case by a large vendor like Dell there might be an additional screwless mechanism to secure the GPU.

3. (optionally) Connect the *power cables* from the PSU.

Many older GPUs, or low-power GPUs can be powered directly from the PCIe slot. However, many modern GPUs require additional power from the PSU. This power is provided by 6-pin or 8-pin connectors. The connectors are usually labeled PCIe or VGA.

Note

PCIe stands for Peripheral Component Interconnect Express. It is a high-speed interface standard for connecting components, such as graphics cards and SSDs, to a motherboard. If you need custom hardware likely you will connect it via PCIe.

PCIe Generation

Release Year

Clock Frequency

Bandwidth per Lane (One Direction)

x1 Total Bandwidth

x4 Total Bandwidth

x8 Total Bandwidth

x16 Total Bandwidth

PCIe 1.0

2003

2.5 GHz

250 MB/s

250 MB/s

1 GB/s

2 GB/s

4 GB/s

PCIe 2.0

2007

5 GHz

500 MB/s

500 MB/s

2 GB/s

4 GB/s

8 GB/s

PCIe 3.0

2010

8 GHz

~1 GB/s (985 MB/s)

985 MB/s

~4 GB/s

~8 GB/s

~16 GB/s

PCIe 4.0

2017

16 GHz

~2 GB/s (1969 MB/s)

~2 GB/s

~8 GB/s

~16 GB/s

~32 GB/s

PCIe 5.0

2019

32 GHz

~4 GB/s (3938 MB/s)

~4 GB/s

~16 GB/s

~32 GB/s

~64 GB/s

PCIe 6.0

2022

64 GHz

~8 GB/s (7877 MB/s)

~8 GB/s

~32 GB/s

~64 GB/s

~128 GB/s

Definitions

Clock Frequency: The speed at which the PCIe bus operates. This is how many cycles the bus can complete in one second.

Note

In computers moving data around is a big deal. The faster you can move data around the faster your computer will be. You can improve the speed by increasing the clock frequency, number of lanes, or bit width of the bus.

Data Usage by Application#

Application

Data Rate

Details

Texting

~1 KB/min

Minimal data usage, primarily sending small text messages.

Email

~50 KB/email

Typical email without attachments; with attachments, can be higher.

Audio Streaming

128-320 Kbps

Quality varies: 128 Kbps (standard), 320 Kbps (high-quality audio).

SD Video Streaming

1-3 Mbps

Standard definition (480p) video on platforms like YouTube.

HD Video Streaming

5-8 Mbps

High definition (1080p) video on platforms like Netflix or Hulu.

4K Video Streaming

15-25 Mbps

Ultra HD video, often used on platforms like Netflix or YouTube.

8K Video Streaming

50-100 Mbps

Ultra-high-resolution video, still emerging in mainstream use.

Zoom Video Call (SD)

~1-2 Mbps

Standard video resolution for one-on-one calls.

Zoom Video Call (HD)

~2.6-3.8 Mbps

High-definition video for group calls.

Online Gaming

1-3 Mbps

Data rates depend on the game but are generally low.

Cloud Gaming (1080p)

10-15 Mbps

High-quality cloud gaming services like Stadia or Xbox Cloud Gaming.

Cloud Gaming (4K)

30-50 Mbps

Requires significantly more bandwidth for ultra-high resolution.

Web Browsing

~1 Mbps

Average rate for browsing static websites; video ads increase usage.

Social Media (Basic)

1-5 MB/min

Scrolling and viewing images or short clips.

Social Media (Video)

~10-20 MB/min

Watching videos on platforms like Instagram or TikTok.

File Downloading

Variable

Depends on the file size and connection speed.

IoT Devices

10-100 KBps

Smart home devices like thermostats or lights.

AR/VR Streaming

50-300 Mbps

Immersive applications like virtual reality experiences.

What is the units of data bits and bytes?#

Unit

Abbreviation

Value

Description

Example Use

Kilobyte

KB

1 KB = 1,024 Bytes

Used for measuring file sizes.

A short text file (~4 KB).

Kilobit

Kb

1 Kb = 1,000 Bits

Used in networking to measure data transfer speeds.

Dial-up internet (~56 Kbps).

Megabyte

MB

1 MB = 1,024 KB = 1,048,576 Bytes

Common for medium-sized files like images or documents.

A high-resolution photo (~5 MB).

Megabit

Mb

1 Mb = 1,000 Kb

Network speeds often described in Mbps (Megabits per second).

Broadband speeds (~50 Mbps).

Gigabyte

GB

1 GB = 1,024 MB = 1,073,741,824 Bytes

Common for larger files such as videos or software.

A 4K movie download (~10-20 GB).

Gigabit

Gb

1 Gb = 1,000 Mb

High-speed internet connections or data center links.

Fiber-optic internet (~1 Gbps).

Terabyte

TB

1 TB = 1,024 GB = 1,099,511,627,776 Bytes

Large-scale storage systems.

External hard drive (~1 TB).

Terabit

Tb

1 Tb = 1,000 Gb

Used in data center backbone connections.

Data center infrastructure speeds (~100 Tbps).

Petabyte

PB

1 PB = 1,024 TB

Extremely large storage systems, such as data archives or cloud storage.

Large-scale data backups (e.g., cloud storage).

Petabit

Pb

1 Pb = 1,000 Tb

Used in discussing extreme data transmission capabilities.

Hypothetical global internet traffic (~5-10 Pbps).

Byte

B

1 Byte = 8 Bits

Smallest standard measure of digital information storage.

A single character of text.

Bit

b

1 Bit = Basic unit of digital data

Often used in networking for data transmission speeds (e.g., Mbps or Kbps).

Binary state (0 or 1).

Note

Modern gaming GPUs can draw more than 375 watts of power under load. This is more power than the CPU and motherboard combined. Make sure you have a PSU that can provide enough power for your GPU.

installing GPU

This is about 1/3 the power of a hairdryer โ€“ but it might run 24/7.

Step 7: Connect Front Panel and Case Fans ๐ŸŒฌ๏ธ#

1. Connect the front panel headers (power button, reset, USB, audio) to the motherboard.

This is how you turn on your computer and access basic functions like USB ports and audio. The front panel connectors are usually located in the bottom right corner of the motherboard.

USB header

USB header

Power Switch

power switch

Note

If you purchase a independent motherboard the front panel connectors do not follow a standard, usually you will need to arrange the connectors in a specific order. The order is usually printed on the motherboard itself.

installing GPU

Step 9: Resetting the BIOS ๐Ÿ”„#

The BIOS (Basic Input/Output System) is a firmware that initializes hardware components during the boot process. If you are reusing a motherboard, it is a good idea to reset the BIOS to its default settings. This ensures that any previous configurations are cleared, and the system starts fresh.

1. Locate the CMOS battery on the motherboard.

The Complementary Metal-Oxide Semiconductor (CMOS) battery is a small, round battery that powers the BIOS settings when the computer is turned off. Removing the battery will reset the BIOS settings to default.

CMOS battery

2. Remove the CMOS battery for a few seconds and reinsert it.

Step 10: Closing the Case ๐Ÿ”’#

1. Ensure all components are securely installed and connected. 2. Make sure all cables are neatly organized and out of the way of fans. 3. Close the case and secure it with screws, or any other mechanism provided by the case manufacturer.

Step 11: Powering On the System ๐Ÿ”Œ#

1. Connect the power cable to the PSU and plug it into a power outlet. If the PSU has a power switch, turn it on.

2. Plug in the monitor, keyboard, and mouse.

case

3. Connect the USB drive with the Ubuntu operating system to a USB port.

case

4. Press the power button on the case to start the system.

5. Ensure that the monitor is powered on and set to the correct input source.

Step 12: Installing the Operating System ๐Ÿ–ฅ#

Computers that you build do not come with an operating system pre-installed. You will need to install an operating system to use the computer. In this lab, we will install Ubuntu, a popular open-source Linux distribution. Linux is widely used in engineering and scientific computing due to its flexibility and customization options. It is also free to use and has a large community for support.

1. Boot the computer from the USB drive.

bios screen

When you turn on the computer, you will see a screen that usually displays the motherboard manufacturer logo and โ€œPress F2 to enter BIOSโ€. Press the key indicated to enter the BIOS. You might need to change the boot order to boot from the USB drive. This is usually done by pressing F12 or F11 during boot. You will need to select the USB drive as the boot device.

You will see a screen that looks like this:

bios control panel

2. Set to boot from the USB drive.

Use the arrow keys to navigate to the Boot tab and select the USB drive as the first boot device. Save the changes and exit the BIOS. The computer will restart and boot from the USB drive.

Alternatively, you can press the key indicated to enter the boot menu during boot. This will allow you to select the USB drive as the boot device without changing the BIOS settings.

bios boot order

3. You will see the Ubuntu installation screen. Select *Try or Install Ubuntu* to begin the installation process.

ubuntu installation

3. Follow the on-screen instructions to install Ubuntu.

You will be asked to select the language, keyboard layout, and installation type. Choose the options that suit your preferences. Here, we recommend to install by erasing the disk and installing Ubuntu. This will erase all data on the drive and install Ubuntu as the only operating system.

ubuntu installation language ubuntu installation type

When completing the setup you will be asked to create a user account and password. You can choose any user name and password you like.

Tip

When building a computer, setting up partitions can help organizing storage and improving flexibility. During the OS installation, create separate partitions for the system (OS, applications, recovery, etc.) and user data to simplify future upgrades or reinstalls without affecting personal files. For dual-boot setups, allocate partitions for each operating system and a shared data partition with a compatible file system. Thoughtful partitioning enhances organization, security, and long-term system management.

4. Once the installation is complete, remove the USB drive and restart the computer.

5. Log in to Ubuntu using the account you created during installation.

ubuntu installation user account

6. Congratulations! You have successfully built and installed an operating system on your computer.

ubuntu installation complete

7. Explore Ubuntu and enjoy your new computer!

Conclusion: Your Engineering Journey Begins! ๐Ÿš€#

Congratulations on successfully building your computer! ๐ŸŽ‰ Youโ€™ve just taken a significant step in your engineering journey. Not only have you learned how to assemble and install components to create a functional system, but youโ€™ve also gained invaluable troubleshooting skills that will serve you well in your career.

Building a computer is more than just a technical task; itโ€™s a hands-on experience that sharpens your problem-solving abilities and deepens your understanding of how hardware and software interact. As an engineer, these skills are crucial. Whether youโ€™re designing cutting-edge technology, optimizing systems, or diagnosing complex issues, your ability to troubleshoot and innovate will set you apart.

Keep building, keep learning, and most importantly, keep pushing the boundaries of whatโ€™s possible. Welcome to the exciting world of engineering!