Refactor computer post and vault cleanup
2
content/.obsidian/graph.json
vendored
@@ -17,6 +17,6 @@
|
||||
"repelStrength": 10,
|
||||
"linkStrength": 1,
|
||||
"linkDistance": 250,
|
||||
"scale": 0.12668834340524918,
|
||||
"scale": 0.19003251510787372,
|
||||
"close": true
|
||||
}
|
||||
7
content/.obsidian/plugins/oz-clear-unused-images/data.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"deleteOption": ".trash",
|
||||
"logsModal": true,
|
||||
"excludedFolders": "",
|
||||
"ribbonIcon": false,
|
||||
"excludeSubfolders": false
|
||||
}
|
||||
83
content/.obsidian/workspace.json
vendored
@@ -13,12 +13,12 @@
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "posts/exploring-freebsd.md",
|
||||
"file": "notes/ready/how_to_computer/index.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
},
|
||||
"icon": "lucide-file",
|
||||
"title": "exploring-freebsd"
|
||||
"title": "index"
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -78,7 +78,7 @@
|
||||
}
|
||||
],
|
||||
"direction": "horizontal",
|
||||
"width": 213.5
|
||||
"width": 312.5
|
||||
},
|
||||
"right": {
|
||||
"id": "f049c1d8215eafd9",
|
||||
@@ -141,13 +141,13 @@
|
||||
"state": {
|
||||
"type": "outline",
|
||||
"state": {
|
||||
"file": "posts/exploring-freebsd.md",
|
||||
"file": "notes/ready/how_to_computer/index.md",
|
||||
"followCursor": false,
|
||||
"showSearch": false,
|
||||
"searchQuery": ""
|
||||
},
|
||||
"icon": "lucide-list",
|
||||
"title": "Outline of exploring-freebsd"
|
||||
"title": "Outline of index"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -156,16 +156,16 @@
|
||||
"state": {
|
||||
"type": "advanced-tables-toolbar",
|
||||
"state": {},
|
||||
"icon": "lucide-file",
|
||||
"title": "Plugin no longer active"
|
||||
"icon": "spreadsheet",
|
||||
"title": "Advanced Tables"
|
||||
}
|
||||
}
|
||||
],
|
||||
"currentTab": 3
|
||||
"currentTab": 4
|
||||
}
|
||||
],
|
||||
"direction": "horizontal",
|
||||
"width": 200
|
||||
"width": 246.5
|
||||
},
|
||||
"left-ribbon": {
|
||||
"hiddenItems": {
|
||||
@@ -179,48 +179,51 @@
|
||||
"table-editor-obsidian:Advanced Tables Toolbar": false
|
||||
}
|
||||
},
|
||||
"active": "b73f137a8a755c19",
|
||||
"active": "ab03f7100c1ce0fb",
|
||||
"lastOpenFiles": [
|
||||
"textgenerator/templates/awesomePrompts/statisticianAwesome.md",
|
||||
"textgenerator/templates/awesomePrompts/techreviewerAwesome.md",
|
||||
"textgenerator/templates/awesomePrompts/pythoninterpreterAwesome.md",
|
||||
"textgenerator/templates/awesomePrompts/storytellerAwesome.md",
|
||||
"textgenerator/templates/awesomePrompts/techwriterAwesome.md",
|
||||
"textgenerator/templates/awesomePrompts/startuptechlawyerAwesome.md",
|
||||
"textgenerator/templates/awesomePrompts/tictactoegameAwesome.md",
|
||||
"textgenerator/templates/awesomePrompts/timetravelguideAwesome.md",
|
||||
"textgenerator/templates/awesomePrompts/regexgeneratorAwesome.md",
|
||||
"textgenerator/templates/awesomePrompts/travelguideAwesome.md",
|
||||
"textgenerator/templates/awesomePrompts/teatasterAwesome.md",
|
||||
"textgenerator/templates/awesomePrompts/seniorfrontenddeveloperAwesome.md",
|
||||
"textgenerator/templates/awesomePrompts/talentcoachAwesome.md",
|
||||
"textgenerator/templates/awesomePrompts/positioninterviewerAwesome.md",
|
||||
"textgenerator/templates/awesomePrompts/salespersonAwesome.md",
|
||||
"textgenerator/templates/awesomePrompts/stackoverflowpostAwesome.md",
|
||||
"textgenerator/templates/awesomePrompts/spokenenglishteacherandimproverAwesome.md",
|
||||
"textgenerator/templates/awesomePrompts/softwarequalityassurancetesterAwesome.md",
|
||||
"textgenerator/templates/awesomePrompts/proofreaderAwesome.md",
|
||||
"textgenerator/templates/awesomePrompts/technologytransfererAwesome.md",
|
||||
"textgenerator/templates/awesomePrompts/wikipediapageAwesome.md",
|
||||
"textgenerator/templates/awesomePrompts/plagiarismcheckerAwesome.md",
|
||||
"textgenerator/templates/awesomePrompts/socratAwesome.md",
|
||||
"textgenerator/templates/awesomePrompts/webbrowserAwesome.md",
|
||||
"textgenerator/templates/awesomePrompts/selfhelpbookAwesome.md",
|
||||
"textgenerator/templates/awesomePrompts/speechlanguagepathologistslpAwesome.md",
|
||||
"textgenerator/templates/awesomePrompts",
|
||||
"textgenerator/templates",
|
||||
"textgenerator",
|
||||
"notes/ready/how_to_computer/Pasted image 20250319161431.png",
|
||||
"notes/ready/how_to_computer/image 1.png",
|
||||
"notes/ready/how_to_computer/Pasted image 20250318102600.png",
|
||||
"posts/exploring-freebsd/freebsd14-install.png",
|
||||
"posts/exploring-freebsd",
|
||||
"posts/dotfiles.md",
|
||||
"posts/jcionx-mac-utils/index.md",
|
||||
"posts/jcionx-favorite-macos-utilities.md",
|
||||
"posts/jcionx-mac-utils/jcionx-favorite-macos-utilities.md",
|
||||
"posts/jcionx-mac-utils/syncthing.png",
|
||||
"posts/jcionx-mac-utils/stats.png",
|
||||
"posts/jcionx-mac-utils/keka.png",
|
||||
"posts/jcionx-mac-utils/appcleaner.png",
|
||||
"posts/jcionx-mac-utils/alfred.png",
|
||||
"posts/jcionx-mac-utils/lunar.png",
|
||||
"posts/jcionx-mac-utils/mos.png",
|
||||
"posts/jcionx-mac-utils/macmousefix2.png",
|
||||
"posts/jcionx-mac-utils/macmousefix1.png",
|
||||
"posts/jcionx-mac-utils",
|
||||
"notes/ready/how_to_computer/index.md",
|
||||
"_Templates/note.md",
|
||||
"_Templates/post.md",
|
||||
"notes/ready/c-language.md",
|
||||
"posts/linux-starter-guide/index.md",
|
||||
"posts/linux-starter-guide/gnome46.jpeg",
|
||||
"posts/linux-starter-guide",
|
||||
"posts/linux-vs-freebsd-vs-openbsd.md",
|
||||
"posts/local-llm.md",
|
||||
"notes/ready/c-snippets.md",
|
||||
"notes/ready/encryption.md",
|
||||
"notes/ready/firewall.md",
|
||||
"notes/ready/gdb.md",
|
||||
"notes/ready/git.md",
|
||||
"notes/ready/http.md",
|
||||
"notes/ready/https-ssl-certs.md",
|
||||
"notes/ready/irc.md",
|
||||
"notes/ready/binary_operations/index.md",
|
||||
"notes/ready/cpu_architecture/index.md",
|
||||
"Clippings/Latches in Digital Logic - GeeksforGeeks.md",
|
||||
"Clippings",
|
||||
"notes/ready/how_to_computer",
|
||||
"notes/ready/pass.md",
|
||||
"posts/notes-update.md",
|
||||
"posts/personal-web.md"
|
||||
"notes/ready/how_to_computer"
|
||||
]
|
||||
}
|
||||
|
Before Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 7.5 KiB |
|
Before Width: | Height: | Size: 499 KiB |
|
Before Width: | Height: | Size: 502 KiB |
|
Before Width: | Height: | Size: 239 KiB |
|
Before Width: | Height: | Size: 232 KiB |
|
Before Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 1010 KiB |
|
Before Width: | Height: | Size: 213 KiB |
|
Before Width: | Height: | Size: 219 KiB |
|
Before Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 186 KiB |
|
Before Width: | Height: | Size: 214 KiB |
|
Before Width: | Height: | Size: 297 KiB |
|
Before Width: | Height: | Size: 306 KiB |
|
Before Width: | Height: | Size: 121 KiB |
|
Before Width: | Height: | Size: 139 KiB |
|
Before Width: | Height: | Size: 358 KiB |
|
Before Width: | Height: | Size: 357 KiB |
|
Before Width: | Height: | Size: 244 KiB |
|
Before Width: | Height: | Size: 217 KiB |
|
Before Width: | Height: | Size: 205 KiB |
|
Before Width: | Height: | Size: 89 KiB |
|
Before Width: | Height: | Size: 313 KiB |
|
Before Width: | Height: | Size: 318 KiB |
|
Before Width: | Height: | Size: 338 KiB |
|
Before Width: | Height: | Size: 324 KiB |
|
Before Width: | Height: | Size: 187 KiB |
|
Before Width: | Height: | Size: 228 KiB |
|
Before Width: | Height: | Size: 216 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 314 KiB |
|
Before Width: | Height: | Size: 298 KiB |
|
Before Width: | Height: | Size: 90 KiB |
|
Before Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 60 KiB |
|
Before Width: | Height: | Size: 72 KiB |
|
Before Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 89 KiB |
|
Before Width: | Height: | Size: 33 KiB |
|
Before Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 5.4 KiB |
|
Before Width: | Height: | Size: 132 KiB |
|
Before Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 72 KiB |
|
Before Width: | Height: | Size: 136 KiB |
|
Before Width: | Height: | Size: 39 KiB |
|
Before Width: | Height: | Size: 205 KiB |
|
Before Width: | Height: | Size: 348 KiB |
|
Before Width: | Height: | Size: 82 KiB |
|
Before Width: | Height: | Size: 86 KiB |
|
Before Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 7.6 KiB |
|
Before Width: | Height: | Size: 91 KiB |
|
After Width: | Height: | Size: 312 KiB |
|
After Width: | Height: | Size: 209 KiB |
@@ -1,7 +1,7 @@
|
||||
---
|
||||
title: Building a Computer From Scratch
|
||||
description: From diodes and transistors, to a Turing complete computer.
|
||||
summary: From diodes and transistors, to a Turing complete computer.
|
||||
summary: "[CS 0] From diodes and transistors, to a Turing complete computer."
|
||||
draft: false
|
||||
tags:
|
||||
- electronics
|
||||
@@ -27,37 +27,41 @@ Anode (+) --|>|-- Cathode (-)
|
||||
|
||||
```Plain
|
||||
[Conventional Current (+) -> (-)]
|
||||
(+)------|>|------(-) Current can flow - The diode is now a conductor.
|
||||
(+)------|<|------(-) Current can't flow - The diode is now an insulator.
|
||||
(+)------|>|------(-) Current can flow - The diode became a conductor.
|
||||
(+)------|<|------(-) Current can't flow - The diode became an insulator.
|
||||
```
|
||||
|
||||
### Use Cases
|
||||
|
||||
- Protect a circuit (if a battery is connected incorrectly, for example)
|
||||
- Convert AC to DC current
|
||||
Fun fact: An LED, for example, is a Light-Emitting Diode.
|
||||
|
||||
> An LED, for example, is a Light-Emitting Diode.
|
||||
|
||||
### How a Diode Works
|
||||
|
||||
#### Conductors and Insulators
|
||||
|
||||
An atom contains the following elements:
|
||||
- Nucleus (Protons - Neutrons)
|
||||
- Orbital Shells (Holds the electrons, which orbit around the nucleus)
|
||||
An atom is composed of the following elements:
|
||||
- Nucleus (Protons and Neutrons)
|
||||
- Orbital Shells (Holds electrons, which orbit around the nucleus)
|
||||
- Conduction band
|
||||
The electrons closest to the nucleus hold the most energy.
|
||||
The outermost shell is the valence shell. A conductor has 1-3 electrons in the valence shell.
|
||||
|
||||
The outermost shell is the valence shell. A conductor can have between 1 and 3 electrons in its valence shell.
|
||||
|
||||
If an electron reaches the conduction band, it can break free and move to another atom.
|
||||
An insulator, however, has a conduction band that is far from the valence shell, making it difficult for an electron to escape.
|
||||
For example, for copper (a great conductor), the valence shell and conduction band overlap, so it's very easy for an electron to jump between atoms.
|
||||
Semiconductors have a conduction band close to the valence shell, but have one extra electron in it, making it an insulator. However, given some external energy, some electrons will gain enough energy to reach the conduction band and become free.
|
||||
|
||||
An insulator, however, has its conduction band far from the valence shell, making it difficult for an electron to escape.
|
||||
|
||||
Silicon is an example of a semiconductor. Its conduction band is close to its valence shell, but silicon has 4 electrons in it, making it act as an insulator. However, given some external power, some electrons will gain enough energy to reach the conduction band and free themselves.
|
||||
|
||||

|
||||
|
||||
#### P-Type and N-Type Doping
|
||||
|
||||
Silicon is a good semiconductor, having 4 electrons in its valence shell. When close to other `Si` atoms, they share 4 electrons with their neighbors, thus, having 8, each, and becoming stable.
|
||||
Silicon (`Si`) atoms, when close together, share 4 electrons with their neighbors, thus, 'having' 8 electrons each, and becoming stable.
|
||||
|
||||
```Plain
|
||||
Silicon:
|
||||
Si Si Si Si Si Si Si Si Si Si Si
|
||||
Si Si Si Si Si Si Si Si Si Si Si
|
||||
Si Si Si Si Si Si Si Si Si Si Si
|
||||
@@ -82,7 +86,7 @@ Si p Si Si Si Si Si Si p Si Si
|
||||
|
||||
##### P-Type
|
||||
|
||||
Some Aluminum is added to the Silicon. `Al` is missing one electron, so it can't provide its 4 neighbors with an electron to share.
|
||||
Some Aluminum is added to the Silicon base. `Al` is missing one electron, so it can't provide its 4 neighbors with an electron to share.
|
||||
|
||||
```Plain
|
||||
Si Si Al Si Si Si Si Si Si Si Al
|
||||
@@ -95,11 +99,11 @@ Si Al Si Si Si Si Si Si Al Si Si
|
||||
|
||||
#### Combining both Types
|
||||
|
||||
When an N-Type is combined with a P-Type, some electrons from the N-Type side will move over to the P-Type side and occupy the missing electrons there. This creates a barrier between both types, creating an electric field that prevents more electrons from switching sides.
|
||||
When an `N-Type` is combined with a `P-Type`, some electrons from the `N-Type` side move over to the `P-Type` side, and replace the missing electrons there. This creates a barrier between both types: An electric field that prevents more electrons from switching sides.
|
||||
|
||||
##### Forward Bias
|
||||
|
||||
If energy is provided to the Cathode, the electrons flow, as the voltage is superior to the barrier's.
|
||||
If energy is provided to the Cathode (`+`), electrons flow, as the voltage is superior to the barrier's.
|
||||
|
||||
```Plain
|
||||
(-)-----[P|N]-----(+)
|
||||
@@ -107,7 +111,7 @@ If energy is provided to the Cathode, the electrons flow, as the voltage is supe
|
||||
|
||||
##### Reverse Bias
|
||||
|
||||
If energy is provided to the Anode, the electrons can't flow, as the barrier expands.
|
||||
If energy is provided to the Anode (`-`), electrons can't flow, as the barrier expands, instead.
|
||||
|
||||
```Plain
|
||||
(-)--[P] [N]--(+)
|
||||
@@ -115,7 +119,7 @@ If energy is provided to the Anode, the electrons can't flow, as the barrier exp
|
||||
|
||||
## Transistor
|
||||
|
||||
Transistors are electronic components that behave like a `switch`, or `amplifier`.
|
||||
Transistors are electronic components that behave as a `switch`, or `amplifier`.
|
||||
|
||||
### Schematic
|
||||
|
||||
@@ -130,11 +134,13 @@ Base --(--|<)
|
||||
#### Switch
|
||||
|
||||
If the `base` pin is provided with energy, the transistor allows current to flow in the main circuit.
|
||||

|
||||
|
||||

|
||||
|
||||
#### Amplifier
|
||||
|
||||
Altering the voltage given to the `base` pin allows us to control a larger voltage in the main circuit.
|
||||
|
||||

|
||||
|
||||
### Types of Transistor
|
||||
@@ -142,6 +148,7 @@ Altering the voltage given to the `base` pin allows us to control a larger volta
|
||||
#### NPN
|
||||
|
||||
An NPN transistor combines the `base` pin and `collector` pin.
|
||||
|
||||

|
||||
|
||||
> Note: Even if the collector pin is disconnected from the circuit, a small amount of current still passes through. 
|
||||
@@ -150,12 +157,11 @@ An NPN transistor combines the `base` pin and `collector` pin.
|
||||
|
||||
A PNP transistor receives energy through the `emitter` pin, and then divides it to the remaining pins.
|
||||
|
||||
|
||||

|
||||
|
||||
## Basic Logic
|
||||
|
||||
A logic gate is a device that performs one boolean operation: Two binary inputs produce a single binary output. These building blocks are the foundations of modern computing.
|
||||
A logic gate is a device that performs one boolean operation: Two binary inputs produce a single binary output. These building blocks are the foundation of modern computing.
|
||||
Each gate has its own truth table, which defines every possible input and output variations.
|
||||
|
||||
### NAND
|
||||
|
||||
|
Before Width: | Height: | Size: 120 KiB |
|
Before Width: | Height: | Size: 36 KiB |