diff --git a/.gitignore b/.gitignore index 25c01e9..d2f0441 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ venv dist feedback -backup \ No newline at end of file +backup +*.sh \ No newline at end of file diff --git a/app.py b/app.py index 3131be4..3fd8c54 100644 --- a/app.py +++ b/app.py @@ -25,6 +25,7 @@ OUT_ASSETS = "dist/assets" SRC_ASSETS = "src/assets" documents = {} now = datetime.now() +word_count = 0 # Utils def getParam(params, index): @@ -43,6 +44,35 @@ def listDocuments(params): def slugify_filter(value): return slugify(value) +# Source: https://github.com/gandreadis/markdown-word-count +def count_words_in_markdown(text): + + # Comments + text = re.sub(r'', '', text, flags=re.MULTILINE) + # Tabs to spaces + text = text.replace('\t', ' ') + # More than 1 space to 4 spaces + text = re.sub(r'[ ]{2,}', ' ', text) + # Footnotes + text = re.sub(r'^\[[^]]*\][^(].*', '', text, flags=re.MULTILINE) + # Indented blocks of code + text = re.sub(r'^( {4,}[^-*]).*', '', text, flags=re.MULTILINE) + # Replace newlines with spaces for uniform handling + text = text.replace('\n', ' ') + # Custom header IDs + text = re.sub(r'{#.*}', '', text) + # Remove images + text = re.sub(r'!\[[^\]]*\]\([^)]*\)', '', text) + # Remove HTML tags + text = re.sub(r']*>', '', text) + # Remove special characters + text = re.sub(r'[#*`~\-–^=<>+|/:]', '', text) + # Remove footnote references + text = re.sub(r'\[[0-9]*\]', '', text) + # Remove enumerations + text = re.sub(r'[0-9#]*\.', '', text) + + return len(text.split()) # jinja filter for date formatting def prettydate(value, format='%d/%m/%Y'): @@ -117,7 +147,7 @@ def get_slug(path, folder, filename): # compile markdown into cited HTML def get_page_data(path): - print("Getting page data for: ", Path(path).name) + global word_count filename = Path(path).stem folder = Path(path).parent.name @@ -156,6 +186,8 @@ def get_page_data(path): "--csl=harvard-cite-them-right.csl", ]) + word_count += count_words_in_markdown(page.body) + return page # Do stuff to the circuit's pcb @@ -257,4 +289,6 @@ def main(): copy_assets() + print(f"total words: {word_count}") + main() diff --git a/src/assets/components/Capacitors.JPG b/src/assets/components/Capacitors.JPG new file mode 100644 index 0000000..bc87d1f Binary files /dev/null and b/src/assets/components/Capacitors.JPG differ diff --git a/src/assets/components/PCB_1.JPG b/src/assets/components/PCB_1.JPG new file mode 100644 index 0000000..b1c6772 Binary files /dev/null and b/src/assets/components/PCB_1.JPG differ diff --git a/src/assets/components/PCB_2.jpg b/src/assets/components/PCB_2.jpg new file mode 100644 index 0000000..62056dc Binary files /dev/null and b/src/assets/components/PCB_2.jpg differ diff --git a/src/assets/components/Resistors.JPG b/src/assets/components/Resistors.JPG new file mode 100644 index 0000000..91b69ea Binary files /dev/null and b/src/assets/components/Resistors.JPG differ diff --git a/src/assets/components/TransistorsED.JPG b/src/assets/components/TransistorsED.JPG new file mode 100644 index 0000000..8936c8a Binary files /dev/null and b/src/assets/components/TransistorsED.JPG differ diff --git a/src/assets/components/chip.JPG b/src/assets/components/chip.JPG new file mode 100644 index 0000000..96a08f5 Binary files /dev/null and b/src/assets/components/chip.JPG differ diff --git a/src/assets/schematics/Antenna-COM-Aerial.svg b/src/assets/schematics/Antenna-COM-Aerial.svg new file mode 100644 index 0000000..b4cd09e --- /dev/null +++ b/src/assets/schematics/Antenna-COM-Aerial.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/schematics/Antenna-COM-Dipole.svg b/src/assets/schematics/Antenna-COM-Dipole.svg new file mode 100644 index 0000000..eb4dec6 --- /dev/null +++ b/src/assets/schematics/Antenna-COM-Dipole.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/schematics/Antenna-COM-Loop.svg b/src/assets/schematics/Antenna-COM-Loop.svg new file mode 100644 index 0000000..eaceb6b --- /dev/null +++ b/src/assets/schematics/Antenna-COM-Loop.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/schematics/Audio-COM-Buzzer.svg b/src/assets/schematics/Audio-COM-Buzzer.svg new file mode 100644 index 0000000..8edb8d1 --- /dev/null +++ b/src/assets/schematics/Audio-COM-Buzzer.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/schematics/Audio-COM-Loudspeaker.svg b/src/assets/schematics/Audio-COM-Loudspeaker.svg new file mode 100644 index 0000000..b19cbc1 --- /dev/null +++ b/src/assets/schematics/Audio-COM-Loudspeaker.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/schematics/Audio-IEC-Microphone.svg b/src/assets/schematics/Audio-IEC-Microphone.svg new file mode 100644 index 0000000..363439e --- /dev/null +++ b/src/assets/schematics/Audio-IEC-Microphone.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/schematics/Audio-IEEE-Microphone.svg b/src/assets/schematics/Audio-IEEE-Microphone.svg new file mode 100644 index 0000000..97e1483 --- /dev/null +++ b/src/assets/schematics/Audio-IEEE-Microphone.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/schematics/Capacitor-COM-Feedthrough.svg b/src/assets/schematics/Capacitor-COM-Feedthrough.svg new file mode 100644 index 0000000..a82c57c --- /dev/null +++ b/src/assets/schematics/Capacitor-COM-Feedthrough.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/schematics/Capacitor-IEC-NonPolarized.svg b/src/assets/schematics/Capacitor-IEC-NonPolarized.svg new file mode 100644 index 0000000..ee3f403 --- /dev/null +++ b/src/assets/schematics/Capacitor-IEC-NonPolarized.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/schematics/Capacitor-IEC-Polarized.svg b/src/assets/schematics/Capacitor-IEC-Polarized.svg new file mode 100644 index 0000000..6637590 --- /dev/null +++ b/src/assets/schematics/Capacitor-IEC-Polarized.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/schematics/Capacitor-IEC-Trimmer.svg b/src/assets/schematics/Capacitor-IEC-Trimmer.svg new file mode 100644 index 0000000..30fc1a2 --- /dev/null +++ b/src/assets/schematics/Capacitor-IEC-Trimmer.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/schematics/Capacitor-IEC-Variable.svg b/src/assets/schematics/Capacitor-IEC-Variable.svg new file mode 100644 index 0000000..2642f61 --- /dev/null +++ b/src/assets/schematics/Capacitor-IEC-Variable.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/assets/schematics/Capacitor-IEEE-NonPolarized.svg b/src/assets/schematics/Capacitor-IEEE-NonPolarized.svg new file mode 100644 index 0000000..4242c12 --- /dev/null +++ b/src/assets/schematics/Capacitor-IEEE-NonPolarized.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/schematics/Capacitor-IEEE-Polarized.svg b/src/assets/schematics/Capacitor-IEEE-Polarized.svg new file mode 100644 index 0000000..11d9047 --- /dev/null +++ b/src/assets/schematics/Capacitor-IEEE-Polarized.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/schematics/Diode-COM-LED.svg b/src/assets/schematics/Diode-COM-LED.svg new file mode 100644 index 0000000..fe1246c --- /dev/null +++ b/src/assets/schematics/Diode-COM-LED.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/schematics/Diode-COM-Laser.svg b/src/assets/schematics/Diode-COM-Laser.svg new file mode 100644 index 0000000..bb353b2 --- /dev/null +++ b/src/assets/schematics/Diode-COM-Laser.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/schematics/Diode-COM-Photodiode.svg b/src/assets/schematics/Diode-COM-Photodiode.svg new file mode 100644 index 0000000..bb558e7 --- /dev/null +++ b/src/assets/schematics/Diode-COM-Photodiode.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/schematics/Diode-COM-Shockley.svg b/src/assets/schematics/Diode-COM-Shockley.svg new file mode 100644 index 0000000..570645a --- /dev/null +++ b/src/assets/schematics/Diode-COM-Shockley.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/schematics/Diode-COM-Shottky.svg b/src/assets/schematics/Diode-COM-Shottky.svg new file mode 100644 index 0000000..269dc66 --- /dev/null +++ b/src/assets/schematics/Diode-COM-Shottky.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/schematics/Diode-COM-Standard.svg b/src/assets/schematics/Diode-COM-Standard.svg new file mode 100644 index 0000000..e37850c --- /dev/null +++ b/src/assets/schematics/Diode-COM-Standard.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/schematics/Diode-COM-Tunnel.svg b/src/assets/schematics/Diode-COM-Tunnel.svg new file mode 100644 index 0000000..380413e --- /dev/null +++ b/src/assets/schematics/Diode-COM-Tunnel.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/schematics/Diode-COM-Varicap.svg b/src/assets/schematics/Diode-COM-Varicap.svg new file mode 100644 index 0000000..2dda5b6 --- /dev/null +++ b/src/assets/schematics/Diode-COM-Varicap.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/schematics/Diode-COM-Zener.svg b/src/assets/schematics/Diode-COM-Zener.svg new file mode 100644 index 0000000..e9fb687 --- /dev/null +++ b/src/assets/schematics/Diode-COM-Zener.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/schematics/Fuse-IEC.svg b/src/assets/schematics/Fuse-IEC.svg new file mode 100644 index 0000000..7365186 --- /dev/null +++ b/src/assets/schematics/Fuse-IEC.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/schematics/Fuse-IEEE-Alt.svg b/src/assets/schematics/Fuse-IEEE-Alt.svg new file mode 100644 index 0000000..690ecc4 --- /dev/null +++ b/src/assets/schematics/Fuse-IEEE-Alt.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/schematics/Fuse-IEEE.svg b/src/assets/schematics/Fuse-IEEE.svg new file mode 100644 index 0000000..5599f12 --- /dev/null +++ b/src/assets/schematics/Fuse-IEEE.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/schematics/Ground-COM-Chassis.svg b/src/assets/schematics/Ground-COM-Chassis.svg new file mode 100644 index 0000000..563a4f5 --- /dev/null +++ b/src/assets/schematics/Ground-COM-Chassis.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/schematics/Ground-COM-General.svg b/src/assets/schematics/Ground-COM-General.svg new file mode 100644 index 0000000..9a32280 --- /dev/null +++ b/src/assets/schematics/Ground-COM-General.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/schematics/Ground-COM-Signal.svg b/src/assets/schematics/Ground-COM-Signal.svg new file mode 100644 index 0000000..9308f82 --- /dev/null +++ b/src/assets/schematics/Ground-COM-Signal.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/schematics/IC-COM-Comparator.svg b/src/assets/schematics/IC-COM-Comparator.svg new file mode 100644 index 0000000..9d0559f --- /dev/null +++ b/src/assets/schematics/IC-COM-Comparator.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/schematics/IC-COM-FlipFlop-ClockedD.svg b/src/assets/schematics/IC-COM-FlipFlop-ClockedD.svg new file mode 100644 index 0000000..0fecb7b --- /dev/null +++ b/src/assets/schematics/IC-COM-FlipFlop-ClockedD.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/assets/schematics/IC-COM-FlipFlop-ClockedJK.svg b/src/assets/schematics/IC-COM-FlipFlop-ClockedJK.svg new file mode 100644 index 0000000..8186657 --- /dev/null +++ b/src/assets/schematics/IC-COM-FlipFlop-ClockedJK.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/schematics/IC-COM-FlipFlop-ClockedT.svg b/src/assets/schematics/IC-COM-FlipFlop-ClockedT.svg new file mode 100644 index 0000000..981e31b --- /dev/null +++ b/src/assets/schematics/IC-COM-FlipFlop-ClockedT.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/schematics/IC-COM-FlipFlop-GatedD.svg b/src/assets/schematics/IC-COM-FlipFlop-GatedD.svg new file mode 100644 index 0000000..e2eebb5 --- /dev/null +++ b/src/assets/schematics/IC-COM-FlipFlop-GatedD.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/schematics/IC-COM-FlipFlop-GatedSR.svg b/src/assets/schematics/IC-COM-FlipFlop-GatedSR.svg new file mode 100644 index 0000000..d63dbc2 --- /dev/null +++ b/src/assets/schematics/IC-COM-FlipFlop-GatedSR.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/schematics/IC-COM-FlipFlop-SimpleSR.svg b/src/assets/schematics/IC-COM-FlipFlop-SimpleSR.svg new file mode 100644 index 0000000..170f24f --- /dev/null +++ b/src/assets/schematics/IC-COM-FlipFlop-SimpleSR.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/src/assets/schematics/IC-COM-Logic-AND.svg b/src/assets/schematics/IC-COM-Logic-AND.svg new file mode 100644 index 0000000..72d75f0 --- /dev/null +++ b/src/assets/schematics/IC-COM-Logic-AND.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/schematics/IC-COM-Logic-Buffer.svg b/src/assets/schematics/IC-COM-Logic-Buffer.svg new file mode 100644 index 0000000..fae0964 --- /dev/null +++ b/src/assets/schematics/IC-COM-Logic-Buffer.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/schematics/IC-COM-Logic-Inverter.svg b/src/assets/schematics/IC-COM-Logic-Inverter.svg new file mode 100644 index 0000000..979b0e7 --- /dev/null +++ b/src/assets/schematics/IC-COM-Logic-Inverter.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/schematics/IC-COM-Logic-NAND.svg b/src/assets/schematics/IC-COM-Logic-NAND.svg new file mode 100644 index 0000000..bdad41c --- /dev/null +++ b/src/assets/schematics/IC-COM-Logic-NAND.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/schematics/IC-COM-Logic-NOR.svg b/src/assets/schematics/IC-COM-Logic-NOR.svg new file mode 100644 index 0000000..15e1c86 --- /dev/null +++ b/src/assets/schematics/IC-COM-Logic-NOR.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/schematics/IC-COM-Logic-OR.svg b/src/assets/schematics/IC-COM-Logic-OR.svg new file mode 100644 index 0000000..8cc2c30 --- /dev/null +++ b/src/assets/schematics/IC-COM-Logic-OR.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/schematics/IC-COM-Logic-XNOR.svg b/src/assets/schematics/IC-COM-Logic-XNOR.svg new file mode 100644 index 0000000..dcf0916 --- /dev/null +++ b/src/assets/schematics/IC-COM-Logic-XNOR.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/schematics/IC-COM-Logic-XOR.svg b/src/assets/schematics/IC-COM-Logic-XOR.svg new file mode 100644 index 0000000..9ff48d7 --- /dev/null +++ b/src/assets/schematics/IC-COM-Logic-XOR.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/schematics/IC-COM-OpAmp.svg b/src/assets/schematics/IC-COM-OpAmp.svg new file mode 100644 index 0000000..496a83a --- /dev/null +++ b/src/assets/schematics/IC-COM-OpAmp.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/schematics/IC-COM-Schmitt-Inverted.svg b/src/assets/schematics/IC-COM-Schmitt-Inverted.svg new file mode 100644 index 0000000..04ecab2 --- /dev/null +++ b/src/assets/schematics/IC-COM-Schmitt-Inverted.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/assets/schematics/IC-COM-Schmitt.svg b/src/assets/schematics/IC-COM-Schmitt.svg new file mode 100644 index 0000000..480360f --- /dev/null +++ b/src/assets/schematics/IC-COM-Schmitt.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/schematics/Inductor-COM-Air.svg b/src/assets/schematics/Inductor-COM-Air.svg new file mode 100644 index 0000000..13e67e9 --- /dev/null +++ b/src/assets/schematics/Inductor-COM-Air.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/schematics/Inductor-COM-Ferrite-Bead.svg b/src/assets/schematics/Inductor-COM-Ferrite-Bead.svg new file mode 100644 index 0000000..67e64db --- /dev/null +++ b/src/assets/schematics/Inductor-COM-Ferrite-Bead.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/schematics/Inductor-COM-Magnetic.svg b/src/assets/schematics/Inductor-COM-Magnetic.svg new file mode 100644 index 0000000..6cec924 --- /dev/null +++ b/src/assets/schematics/Inductor-COM-Magnetic.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/schematics/Inductor-COM-Tapped.svg b/src/assets/schematics/Inductor-COM-Tapped.svg new file mode 100644 index 0000000..549b985 --- /dev/null +++ b/src/assets/schematics/Inductor-COM-Tapped.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/schematics/Inductor-COM-Variable.svg b/src/assets/schematics/Inductor-COM-Variable.svg new file mode 100644 index 0000000..070e54f --- /dev/null +++ b/src/assets/schematics/Inductor-COM-Variable.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/assets/schematics/Miscellaneous-COM-ADC.svg b/src/assets/schematics/Miscellaneous-COM-ADC.svg new file mode 100644 index 0000000..0023c93 --- /dev/null +++ b/src/assets/schematics/Miscellaneous-COM-ADC.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/schematics/Miscellaneous-COM-Crystal_Oscillator.svg b/src/assets/schematics/Miscellaneous-COM-Crystal_Oscillator.svg new file mode 100644 index 0000000..eee4168 --- /dev/null +++ b/src/assets/schematics/Miscellaneous-COM-Crystal_Oscillator.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/schematics/Miscellaneous-COM-DAC.svg b/src/assets/schematics/Miscellaneous-COM-DAC.svg new file mode 100644 index 0000000..ab0d5ee --- /dev/null +++ b/src/assets/schematics/Miscellaneous-COM-DAC.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/schematics/Miscellaneous-COM-Lamp-Incandescent.svg b/src/assets/schematics/Miscellaneous-COM-Lamp-Incandescent.svg new file mode 100644 index 0000000..fffb68b --- /dev/null +++ b/src/assets/schematics/Miscellaneous-COM-Lamp-Incandescent.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/schematics/Miscellaneous-COM-Lamp-Indicator.svg b/src/assets/schematics/Miscellaneous-COM-Lamp-Indicator.svg new file mode 100644 index 0000000..2b855e4 --- /dev/null +++ b/src/assets/schematics/Miscellaneous-COM-Lamp-Indicator.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/schematics/Miscellaneous-COM-Optocoupler.svg b/src/assets/schematics/Miscellaneous-COM-Optocoupler.svg new file mode 100644 index 0000000..b768972 --- /dev/null +++ b/src/assets/schematics/Miscellaneous-COM-Optocoupler.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/src/assets/schematics/Miscellaneous-COM-Probe_Point.svg b/src/assets/schematics/Miscellaneous-COM-Probe_Point.svg new file mode 100644 index 0000000..80c7595 --- /dev/null +++ b/src/assets/schematics/Miscellaneous-COM-Probe_Point.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/schematics/Relay-COM-COM-SPDT.svg b/src/assets/schematics/Relay-COM-COM-SPDT.svg new file mode 100644 index 0000000..8b6ff8c --- /dev/null +++ b/src/assets/schematics/Relay-COM-COM-SPDT.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/src/assets/schematics/Relay-COM-COM-SPST-NC.svg b/src/assets/schematics/Relay-COM-COM-SPST-NC.svg new file mode 100644 index 0000000..01b3bd2 --- /dev/null +++ b/src/assets/schematics/Relay-COM-COM-SPST-NC.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/assets/schematics/Relay-COM-COM-SPST-NO.svg b/src/assets/schematics/Relay-COM-COM-SPST-NO.svg new file mode 100644 index 0000000..46523cd --- /dev/null +++ b/src/assets/schematics/Relay-COM-COM-SPST-NO.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/assets/schematics/Relay-IEC-SPDT.svg b/src/assets/schematics/Relay-IEC-SPDT.svg new file mode 100644 index 0000000..5a2ec88 --- /dev/null +++ b/src/assets/schematics/Relay-IEC-SPDT.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/schematics/Relay-IEC-SPST-NC.svg b/src/assets/schematics/Relay-IEC-SPST-NC.svg new file mode 100644 index 0000000..fa1f432 --- /dev/null +++ b/src/assets/schematics/Relay-IEC-SPST-NC.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/schematics/Relay-IEC-SPST-NO.svg b/src/assets/schematics/Relay-IEC-SPST-NO.svg new file mode 100644 index 0000000..0618e6b --- /dev/null +++ b/src/assets/schematics/Relay-IEC-SPST-NO.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/schematics/Relay-IEEE-SPDT.svg b/src/assets/schematics/Relay-IEEE-SPDT.svg new file mode 100644 index 0000000..25b1f9c --- /dev/null +++ b/src/assets/schematics/Relay-IEEE-SPDT.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/src/assets/schematics/Relay-IEEE-SPST-NC.svg b/src/assets/schematics/Relay-IEEE-SPST-NC.svg new file mode 100644 index 0000000..bef5c69 --- /dev/null +++ b/src/assets/schematics/Relay-IEEE-SPST-NC.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/assets/schematics/Relay-IEEE-SPST-NO.svg b/src/assets/schematics/Relay-IEEE-SPST-NO.svg new file mode 100644 index 0000000..25872fe --- /dev/null +++ b/src/assets/schematics/Relay-IEEE-SPST-NO.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/assets/schematics/Resistor-COM-Memristor.svg b/src/assets/schematics/Resistor-COM-Memristor.svg new file mode 100644 index 0000000..711d393 --- /dev/null +++ b/src/assets/schematics/Resistor-COM-Memristor.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/assets/schematics/Resistor-IEC-Photoresistor.svg b/src/assets/schematics/Resistor-IEC-Photoresistor.svg new file mode 100644 index 0000000..96f1043 --- /dev/null +++ b/src/assets/schematics/Resistor-IEC-Photoresistor.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/schematics/Resistor-IEC-Potentiometer.svg b/src/assets/schematics/Resistor-IEC-Potentiometer.svg new file mode 100644 index 0000000..7b43b46 --- /dev/null +++ b/src/assets/schematics/Resistor-IEC-Potentiometer.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/assets/schematics/Resistor-IEC-Rheostat.svg b/src/assets/schematics/Resistor-IEC-Rheostat.svg new file mode 100644 index 0000000..63fb4f4 --- /dev/null +++ b/src/assets/schematics/Resistor-IEC-Rheostat.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/assets/schematics/Resistor-IEC-Standard.svg b/src/assets/schematics/Resistor-IEC-Standard.svg new file mode 100644 index 0000000..dd88d4d --- /dev/null +++ b/src/assets/schematics/Resistor-IEC-Standard.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/schematics/Resistor-IEC-Thermistor.svg b/src/assets/schematics/Resistor-IEC-Thermistor.svg new file mode 100644 index 0000000..f5d8f48 --- /dev/null +++ b/src/assets/schematics/Resistor-IEC-Thermistor.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/assets/schematics/Resistor-IEC-Trimmer.svg b/src/assets/schematics/Resistor-IEC-Trimmer.svg new file mode 100644 index 0000000..6dac826 --- /dev/null +++ b/src/assets/schematics/Resistor-IEC-Trimmer.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/schematics/Resistor-IEC-Varistor.svg b/src/assets/schematics/Resistor-IEC-Varistor.svg new file mode 100644 index 0000000..7139841 --- /dev/null +++ b/src/assets/schematics/Resistor-IEC-Varistor.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/assets/schematics/Resistor-IEEE-Photoresistor.svg b/src/assets/schematics/Resistor-IEEE-Photoresistor.svg new file mode 100644 index 0000000..1c01550 --- /dev/null +++ b/src/assets/schematics/Resistor-IEEE-Photoresistor.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/schematics/Resistor-IEEE-Potentiometer.svg b/src/assets/schematics/Resistor-IEEE-Potentiometer.svg new file mode 100644 index 0000000..1ea2e1c --- /dev/null +++ b/src/assets/schematics/Resistor-IEEE-Potentiometer.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/assets/schematics/Resistor-IEEE-Rheostat.svg b/src/assets/schematics/Resistor-IEEE-Rheostat.svg new file mode 100644 index 0000000..f3ef448 --- /dev/null +++ b/src/assets/schematics/Resistor-IEEE-Rheostat.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/assets/schematics/Resistor-IEEE-Standard.svg b/src/assets/schematics/Resistor-IEEE-Standard.svg new file mode 100644 index 0000000..955e000 --- /dev/null +++ b/src/assets/schematics/Resistor-IEEE-Standard.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/schematics/Resistor-IEEE-Thermistor.svg b/src/assets/schematics/Resistor-IEEE-Thermistor.svg new file mode 100644 index 0000000..375f22c --- /dev/null +++ b/src/assets/schematics/Resistor-IEEE-Thermistor.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/assets/schematics/Resistor-IEEE-Trimmer.svg b/src/assets/schematics/Resistor-IEEE-Trimmer.svg new file mode 100644 index 0000000..e90374d --- /dev/null +++ b/src/assets/schematics/Resistor-IEEE-Trimmer.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/schematics/Resistor-IEEE-Varistor.svg b/src/assets/schematics/Resistor-IEEE-Varistor.svg new file mode 100644 index 0000000..d391008 --- /dev/null +++ b/src/assets/schematics/Resistor-IEEE-Varistor.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/assets/schematics/Source-COM-AC.svg b/src/assets/schematics/Source-COM-AC.svg new file mode 100644 index 0000000..ddfc997 --- /dev/null +++ b/src/assets/schematics/Source-COM-AC.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/schematics/Source-COM-Battery-Multiple.svg b/src/assets/schematics/Source-COM-Battery-Multiple.svg new file mode 100644 index 0000000..21613fc --- /dev/null +++ b/src/assets/schematics/Source-COM-Battery-Multiple.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/schematics/Source-COM-Battery-Single.svg b/src/assets/schematics/Source-COM-Battery-Single.svg new file mode 100644 index 0000000..02dd94e --- /dev/null +++ b/src/assets/schematics/Source-COM-Battery-Single.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/schematics/Source-COM-Current-Controlled.svg b/src/assets/schematics/Source-COM-Current-Controlled.svg new file mode 100644 index 0000000..f610ae6 --- /dev/null +++ b/src/assets/schematics/Source-COM-Current-Controlled.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/assets/schematics/Source-COM-Current.svg b/src/assets/schematics/Source-COM-Current.svg new file mode 100644 index 0000000..df97d5f --- /dev/null +++ b/src/assets/schematics/Source-COM-Current.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/assets/schematics/Source-COM-DC-Controlled.svg b/src/assets/schematics/Source-COM-DC-Controlled.svg new file mode 100644 index 0000000..bb729d0 --- /dev/null +++ b/src/assets/schematics/Source-COM-DC-Controlled.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/schematics/Source-COM-DC.svg b/src/assets/schematics/Source-COM-DC.svg new file mode 100644 index 0000000..b7029a0 --- /dev/null +++ b/src/assets/schematics/Source-COM-DC.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/schematics/Source-COM-Photovoltaic.svg b/src/assets/schematics/Source-COM-Photovoltaic.svg new file mode 100644 index 0000000..460d684 --- /dev/null +++ b/src/assets/schematics/Source-COM-Photovoltaic.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/assets/schematics/Source-COM-Square.svg b/src/assets/schematics/Source-COM-Square.svg new file mode 100644 index 0000000..d678890 --- /dev/null +++ b/src/assets/schematics/Source-COM-Square.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/schematics/Source-COM-Triangle.svg b/src/assets/schematics/Source-COM-Triangle.svg new file mode 100644 index 0000000..a3f29d0 --- /dev/null +++ b/src/assets/schematics/Source-COM-Triangle.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/schematics/Switch-COM-DPDT.svg b/src/assets/schematics/Switch-COM-DPDT.svg new file mode 100644 index 0000000..ae16c4c --- /dev/null +++ b/src/assets/schematics/Switch-COM-DPDT.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/src/assets/schematics/Switch-COM-DPST.svg b/src/assets/schematics/Switch-COM-DPST.svg new file mode 100644 index 0000000..7d74dea --- /dev/null +++ b/src/assets/schematics/Switch-COM-DPST.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/src/assets/schematics/Switch-COM-Pushbutton-NC.svg b/src/assets/schematics/Switch-COM-Pushbutton-NC.svg new file mode 100644 index 0000000..bd05144 --- /dev/null +++ b/src/assets/schematics/Switch-COM-Pushbutton-NC.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/assets/schematics/Switch-COM-Pushbutton-NO.svg b/src/assets/schematics/Switch-COM-Pushbutton-NO.svg new file mode 100644 index 0000000..e4e5574 --- /dev/null +++ b/src/assets/schematics/Switch-COM-Pushbutton-NO.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/assets/schematics/Switch-COM-Pushbutton-Two_Circuit.svg b/src/assets/schematics/Switch-COM-Pushbutton-Two_Circuit.svg new file mode 100644 index 0000000..975a4d7 --- /dev/null +++ b/src/assets/schematics/Switch-COM-Pushbutton-Two_Circuit.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/src/assets/schematics/Switch-COM-SPDT.svg b/src/assets/schematics/Switch-COM-SPDT.svg new file mode 100644 index 0000000..2002fd2 --- /dev/null +++ b/src/assets/schematics/Switch-COM-SPDT.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/assets/schematics/Switch-COM-SPST.svg b/src/assets/schematics/Switch-COM-SPST.svg new file mode 100644 index 0000000..5b2dac3 --- /dev/null +++ b/src/assets/schematics/Switch-COM-SPST.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/assets/schematics/Transformer-COM-Center-Double.svg b/src/assets/schematics/Transformer-COM-Center-Double.svg new file mode 100644 index 0000000..c185320 --- /dev/null +++ b/src/assets/schematics/Transformer-COM-Center-Double.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/schematics/Transformer-COM-Center.svg b/src/assets/schematics/Transformer-COM-Center.svg new file mode 100644 index 0000000..6abefbc --- /dev/null +++ b/src/assets/schematics/Transformer-COM-Center.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/schematics/Transformer-COM-Standard.svg b/src/assets/schematics/Transformer-COM-Standard.svg new file mode 100644 index 0000000..fca7710 --- /dev/null +++ b/src/assets/schematics/Transformer-COM-Standard.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/schematics/Transistor-COM-BJT-NPN.svg b/src/assets/schematics/Transistor-COM-BJT-NPN.svg new file mode 100644 index 0000000..fedd130 --- /dev/null +++ b/src/assets/schematics/Transistor-COM-BJT-NPN.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/assets/schematics/Transistor-COM-BJT-PNP.svg b/src/assets/schematics/Transistor-COM-BJT-PNP.svg new file mode 100644 index 0000000..f8d16b6 --- /dev/null +++ b/src/assets/schematics/Transistor-COM-BJT-PNP.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/assets/schematics/Transistor-COM-Darlington-NPN.svg b/src/assets/schematics/Transistor-COM-Darlington-NPN.svg new file mode 100644 index 0000000..0e6e37c --- /dev/null +++ b/src/assets/schematics/Transistor-COM-Darlington-NPN.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/schematics/Transistor-COM-Darlington-PNP.svg b/src/assets/schematics/Transistor-COM-Darlington-PNP.svg new file mode 100644 index 0000000..8ccdcbc --- /dev/null +++ b/src/assets/schematics/Transistor-COM-Darlington-PNP.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/schematics/Transistor-COM-JFET-N.svg b/src/assets/schematics/Transistor-COM-JFET-N.svg new file mode 100644 index 0000000..d12789e --- /dev/null +++ b/src/assets/schematics/Transistor-COM-JFET-N.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/schematics/Transistor-COM-JFET-P.svg b/src/assets/schematics/Transistor-COM-JFET-P.svg new file mode 100644 index 0000000..ae514ac --- /dev/null +++ b/src/assets/schematics/Transistor-COM-JFET-P.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/schematics/Transistor-COM-MOSFET-N-Depletion.svg b/src/assets/schematics/Transistor-COM-MOSFET-N-Depletion.svg new file mode 100644 index 0000000..21db409 --- /dev/null +++ b/src/assets/schematics/Transistor-COM-MOSFET-N-Depletion.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/assets/schematics/Transistor-COM-MOSFET-N-Enhancement.svg b/src/assets/schematics/Transistor-COM-MOSFET-N-Enhancement.svg new file mode 100644 index 0000000..823f450 --- /dev/null +++ b/src/assets/schematics/Transistor-COM-MOSFET-N-Enhancement.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/assets/schematics/Transistor-COM-MOSFET-N.svg b/src/assets/schematics/Transistor-COM-MOSFET-N.svg new file mode 100644 index 0000000..54b556d --- /dev/null +++ b/src/assets/schematics/Transistor-COM-MOSFET-N.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/schematics/Transistor-COM-MOSFET-P-Depletion.svg b/src/assets/schematics/Transistor-COM-MOSFET-P-Depletion.svg new file mode 100644 index 0000000..1d3ff9b --- /dev/null +++ b/src/assets/schematics/Transistor-COM-MOSFET-P-Depletion.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/schematics/Transistor-COM-MOSFET-P-Enhancement.svg b/src/assets/schematics/Transistor-COM-MOSFET-P-Enhancement.svg new file mode 100644 index 0000000..e669e0e --- /dev/null +++ b/src/assets/schematics/Transistor-COM-MOSFET-P-Enhancement.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/schematics/Transistor-COM-MOSFET-P.svg b/src/assets/schematics/Transistor-COM-MOSFET-P.svg new file mode 100644 index 0000000..b5e3727 --- /dev/null +++ b/src/assets/schematics/Transistor-COM-MOSFET-P.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/schematics/Transistor-COM-Phototransitor.svg b/src/assets/schematics/Transistor-COM-Phototransitor.svg new file mode 100644 index 0000000..adea263 --- /dev/null +++ b/src/assets/schematics/Transistor-COM-Phototransitor.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/src/assets/schematics/motor.png b/src/assets/schematics/motor.png new file mode 100644 index 0000000..f7dd205 Binary files /dev/null and b/src/assets/schematics/motor.png differ diff --git a/src/assets/styles/layout.css b/src/assets/styles/layout.css index cfae18e..5222ad0 100644 --- a/src/assets/styles/layout.css +++ b/src/assets/styles/layout.css @@ -104,6 +104,15 @@ article table { page-break-inside: auto; } + +article table tr { + break-inside: avoid; +} + +tr img { + max-height: 30px; +} + thead { display: table-header-group; position: sticky; diff --git a/src/assets/styles/paged.css b/src/assets/styles/paged.css index e1de5b3..379efb2 100644 --- a/src/assets/styles/paged.css +++ b/src/assets/styles/paged.css @@ -1,3 +1,6 @@ +:root { + --print-margin-x: 8mm; +} body { font-size: var(--font-size-base); } @@ -17,11 +20,11 @@ body { @page { size: A5; - margin: 13mm 8mm; + margin: 13mm var(--print-margin-x); } -@page :left { +@page:left { @bottom-left { content: "page " counter(page); } @@ -39,13 +42,13 @@ body { } } -@page: blank { +@page : blank { @top-left { content: "blank " counter(page); } } -@page :right { +@page:right { @top-right { content: element(chapterTitle); font-size: var(--font-size-base); @@ -63,6 +66,10 @@ body { margin-top: auto; position: relative; + img { + border: 1px solid blue; + } + header { position: absolute; margin: 0 0; @@ -76,6 +83,84 @@ body { } } + + + +@page image { + margin-top: auto; + position: relative; + margin: var(--print-margin-x) var(--print-margin-x); + + header { + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + display: grid; + grid-template-columns: 1fr; + grid-template-rows: 1fr; + grid-template-areas: "nul"; + grid-column-gap: 4mm; + } + + header[data-length="2"] { + grid-template-columns: 1fr; + grid-template-rows: 50% 50%; + grid-template-areas: "nul" "1"; + } + + header[data-length="3"] { + grid-template-columns: 2fr 1fr; + grid-template-rows: 50% 50%; + grid-template-areas: "nul 1" "nul 2"; + } + + figure { + grid-column: 1 / span 2; + grid-row: 1 / span 3; + margin: 0 0; + position: relative; + } + + figure[index="0"] { + grid-area: nul; + } + + figure[index="1"] { + grid-area: 1; + } + + figure[index="2"] { + grid-area: 2; + } + figure[index="3"] { + grid-area: 3; + } + + + figcaption { + position: absolute; + z-index: 2; + left: 2mm; + bottom: 2mm; + padding: 1mm 2mm; + background: white; + font-size: 7px; + + } + + img { + object-fit: cover; + width: 100%; + height: 100%; + } + + @top-right { + content: "imaaagggee"; + } +} + @page front { background: lightgrey; position: relative; @@ -84,6 +169,9 @@ body { content: none; } + @top-left { + content: none; + } @bottom-right { content: none; } @@ -106,17 +194,32 @@ body { display: none; } article:has([data-chapter-title]), article:has([data-subchapter-title]) { - break-before: page; + /* break-before: page; */ +} + +hr { + /* break-after: page; */ + opacity: .2; } .page--cover { page: cover; } +.page--image { + page: image; + break-before: left; +} + [template-type="front"] { page: front; counter-reset: page; } +[template-type="image-spread"] { + page: front; + counter-reset: page; +} + [template-type="circuit"] { page: circuit; /* break-before: page;*/ diff --git a/src/content/Leftovers.md b/src/content/Leftovers.md deleted file mode 100644 index e4dece9..0000000 --- a/src/content/Leftovers.md +++ /dev/null @@ -1,45 +0,0 @@ -Leftovers - - -## weg - - - As Jennifer Gabry’s concludes we shouldn’t strive for a zero waste utopia and in that way hide the waste, yet find we should [@gabrysDigitalRubbishNatural2011] [JA WAT MOETEN WE EIGENLIJK DOEN VOLGENS HAAR - VERDER LEZEN]. By actively engaging with the salvaged hardware, we are able to uncover some black boxes, as we did in chapter 2, dismantling. [kunnen we hier nog iets over black boxes zeggen?] - - - - -### Gone with the waste -- [ ] Zero waste utopia - -This moment of having to return it to the mileupark shows that this intervention did not change much, as one person or one repair cafe cannot do. It does call for better legislation and regulation, and put the responsibility of the disposal back to where the material came from, in my opinion at least, improved design processes and a different mindset. It is one thing to return your iPhone to the Apple Store to buy a new one, it’s another thing to embrace not having the latest phone. So it still keeps this cycle of consuming and disposing in place, instead of forcing Apple to create actual ownership of the waste that they create. Thank you. Hoewel recycling programma’s zoals deze vast een zekere effect hebben, zeggen ze niets over waar hardware utieindelijk eindigt [@parksFallingApartElectronics2007] daarnaast is een randvoorwaarden van het inleveren vaak dat je eerst een nieuw apparaat aanschaft, wat alleen een soort greenwashing van consumeren creeert. https://www.samsung.com/nl/inruil/. Op de website van samsung staat letterlijk “Stap 1. Koop je nieuwe toestel met inruilvoordeel op samsung.com”. Er wordt geen woord gerept over wat er gebeurt. alleebn “et krijgt een nieuwe bestemming of wordt volledig verwerkt.”. Nog ironischer wordt het wanneer je verder zoekt op de website van de inruil partner van samsung, l8p. Over inruil wordt hier ook hee lief gezegd, we geven je toestel een tweede leven bij een nieuwe eigenaar. Echter op de webshop wordt er gerept over “s: deze producten zijn nieuw, nooit (of beperkt) gebruikt en in originele toestand. “ Wat is het - - - - - -[^pun]: pun intended - - - - - -M - - -- solo = niet te doen. Eigenlijk zou je een soort vorm moeten hebben qua uitwisseling van hardware, zodat je niet in je eentje mega veel weerstandjes hebt, maar dit uitwisselt/ruilt. - -- en waarom is het niet te doen? SMD componenten. Daarin is het overduidelijk te zien dat de hardware niet met de gedachte is ontworpen dat er ooit nog iemand anders bij zou komen, of het nu voor maintenance of salvaging is. - -## Ideeen - -Within recycling there is loads of greenwashing. Falling apart (Parks, n.d.)[@parksFallingApartElectronics2007] text gebruiken hier. - -Feedback: * Je beantwoord de vraag heel erg vanuit het perspectief van de maker van sound devices, wat heel goed is, maar je maakt weinig connecties met het grotere plaatje, right to repair movement, planned obsolesence, e-waste, werkelijke kosten van wegwerp maatschappij. Ik denk dat Mattern's tekst misschien een goede inspiratie is hier, als voorbeeld van hoe je een koppeling kunt maken tussen het hands on doen en 'de big picture' van wat moeten we eigenlijk repareren, de apparaten of het systeem dat ze produceerd? - - -## Over waarom microcontrollers -Uit de tekst van dirty electronics wordt dit ook benoemd An advantage of using microcontrollers is that less discrete electronic components are needed in a circuit design. And of course, it is possible to reprogram the microcontroller. [@richardsDIYElectronicMusic2013] - -“It is not simply a case of just playing these objects as instruments, but of exploring their properties at a fundamental level In many instances, repertoire is ‘found’ in the object rather than played on the instrument” (Richards 2017a, p. 243). -→ ik zie hier wel een soort verband met de tekst van digital rubbish, waarbij ook opnieuw naar properties van materialen gekeken moet worden. \ No newline at end of file diff --git a/src/content/chapters/-1-intro.md b/src/content/chapters/-1-intro.md index d0076de..5c4f235 100644 --- a/src/content/chapters/-1-intro.md +++ b/src/content/chapters/-1-intro.md @@ -9,49 +9,74 @@ front: false (Solderpunk, 2020, Cited in de Valk, 2022) -You're reading[^shortcut-print] *A Field Guide for Salvaging Sound Devices*. Here, we'll explore the practical side of salvage computing trough the making of noise boxes: is it possible to *live off* (create with) electronic components salvaged in the wild? And what would such a practice entail? Instead of using hardware to build even more computers, we'll focus on creating, dreamy sound devices. +You're reading[^shortcut-print] *A Field Guide for Salvaging Sound Devices*. Here, we'll explore the practical side of salvage computing through the making of noise boxes: is it possible to *live off* (create with) electronic components salvaged in the wild? And what would such a practice entail? -[^shortcut-print]: Ctrl + P to print this document +[^shortcut-print]: Ctrl + P to print this publication to bring it outside -Salvaging is the practice of using computational resources that already exist. Not freshly purchased hardware, but salvaged from landfills and hidden in storage boxes. The E-Waste Monitor shows that global e-waste production is growing rapidly, even doubling between 2010 and 2022.[@baldeGlobalEWasteMonitor2024] +Salvaging is the practice of using computational resources that already exist. Not freshly purchased hardware, but salvaged from landfills and hidden in storage boxes. Salvage computing believes that the end of a product's lifecycle should be a moment of celebration—not a time of death, but an opportunity to start something new [@lulinvegaHolisticApproachComputing]. These ideas offer an exciting new perspective; instead of presenting e-waste as a wicked, unmanageable problem [@baldeGlobalEWasteMonitor2024], it is seen as untapped potential and an opportunity to explore. It could offer an alternative to the problems I’ve been facing in my own practice and might help you too. -According to Jennifer Gabrys, salvage is not just about reusing materials; but also about confronting the systems that created the waste in the first place. Waste is not only your end-of-life Humane AI Pin[^AI-pin] but also the by-product of the entire production lifecycle of an electronic products; From the mining of minerals that make up the hardware to disposal site. These transitions happen in hazardous waste sites, causing long-term environmental and health problems, often in developing countries where technology consumption is much lower. [@gabrysSalvage2012]. +### Dealing with my own waste +Over the past years, I’ve hosted workshops around circuit bending[^circuit-bending] in and around Rotterdam. These workshops are meant as an accessible way to get people tinkering with electronics[^tinkering], through something infinitely playful: making instruments[^playful]. Unfortunately, I cannot ignore the waste these workshops create any longer, as they creep up in my workspace. The toys used in the workshops are single-use [^single-use] and, with ease, thrown out afterwards. The carelessness notion creeps in that waste has no value, and is easily replaceable, and low-key broke my heart a bit, one workshop at a time. -[^AI-pin]: Humane Inc. Ai Pin closed their servers within one year after releasing their “Ai Pin”. Now, you can only ask this piece of hardware how many battery it has left. [@chokkattuWhatYourDefunct2025] +TODO: One sentence about blackboxism and consumer culture -However, the rate at which e-waste is collected and recycled isn't growing at the same pace, resulting in landfills that continue to grow, that will only go worse. The growing gap between recycling and production can be traced to several factors: increased consumption of technology, limited repair options, and a lacking e-waste infrastructure +[^circuit-bending]: the practice around hacking discarded toys to find sonic potential through creating shorts, or sometimes literally bending the circuit. -## Buying DIY -The preference for buying new is noticeable in the DIY synth community as well. When publishing about a project it's common to share a pre-filled webshop cart along with the schematics, or even sell as a pre-compiled kits[^KIT]. To me, this goes against the ethos of DIY, which is about making do with limited budget & resources [@hertzArtDIYElectronics2023]. Instead a whole new market is created consisting of lego-like kits. These kits often gloss over the actual challenges and difficulties of creating, preventing the development of much needed problem-solving skills, and not actually discovering anything new [@CooperativeExperimentalismSharing]. +[^playful]: I’ve found that making instruments is a great way to learn about and work with the *flow* of electricity, but more on that later. -[^KIT]: ![Kit from Bastl Instruments](/assets/chapters/bastl_kit.webp) +[^single-use]: but often required much preparation in terms of collecting, transporting, repairing, testing, cleaning, prepare. -In this guide we are challenging the idea of buying new trough salvage computing. This is where my interpretation of salvage computing comes into play. Salvage computing believes that the end of a product's lifecycle should be a moment of celebration—not a time of death, but an opportunity to start something new. [@lulinvegaHolisticApproachComputing] zin loopt nog niet goed +This is where the field guide comes into play: can we flip this practice of playful tinkering to not ignore the waste streams they are part of but make it part of their lifespan? Is engaging with the waste streams[^waste-streams] a way to reduce the carelessness? + +[^waste-streams]: on the contrary of neatly prepping everything beforehand and being in charge of the cleaning afterward. The guide is split up into five chapters, each focusing on a different stage of salvaging for sound devices: #### 1. Gathering hardware -*We'll go trough which devices work for salvaging, where to find them. And talk about dealing with hidden waste streams and obsolescence.* +*We'll go through which devices work for salvaging, and where to find them. And talk about dealing with hidden waste streams and obsolescence.* #### 2. Dismantling devices -*Hands on discovery of strategies that manufactures use to keep you out of their devices, and the right to repair. Hopefully not to much melted plastic.* +*Hands-on discovery of strategies that manufacturers use to keep you out of their devices, and the right to repair. Hopefully not too much melted plastic.* #### 3. Components to salvage -*An overview of parts to salvage, how to identify them and how to reuse them* +*An overview of parts to salvage, how to identify them, and how to reuse them* #### 4. Recipes for making *strategies for making with salvaged parts, and ways to modify the devices.* -#### 5. Storing parts +#### 5. Taking inventory *Cleaning up the inventory and looking back* + +Because salvage is not just about reusing materials; but about confronting the systems that created the waste in the first place. Waste is not only your end-of-life Humane AI Pin[^AI-pin] but also the by-product of the entire production lifecycle of an electronic product; From the mining of minerals that make up the hardware to the inevitable disposal site [@gabrysSalvage2012]. Since the rate at which waste is collected and recycled isn't growing at the same pace as our collective buying and production, the landfills will continue to grow. The capitalist market is simply too focused on buying and producing new products. + +[^AI-pin]: Humane Inc. Ai Pin closed their servers within one year after releasing their “Ai Pin”. Now, you can only ask this piece of hardware how many batteries it has left. [@chokkattuWhatYourDefunct2025] + +## Buying DIY +The preference for buying new is noticeable in the DIY synth community as well. When publishing about a project it's common to share a pre-filled webshop cart along with the schematics, or even sell it as a pre-compiled kit[^KIT]. To me, this goes against the ethos of DIY, which is about making do with limited budget & resources [@hertzArtDIYElectronics2023]. Instead, a whole new market is created consisting of Lego-like kits. These kits gloss over the actual challenges and difficulties of creating sound boxes, preventing the development of much-needed problem-solving skills, and not actually discovering anything new [@CooperativeExperimentalismSharing]. + +[^KIT]: ![Kit from Bastl Instruments](/assets/chapters/bastl_kit.webp) + + ## Do It With Others (DIWO) -Repair is often and historically organised as a social activity - opening up workplaces and sharing knowledge[@matternStepStepThinking2024]. expand more on the social. This notion a major part of the DIY Synth community [@richardsDIYElectronicMusic2013]. By being part of workshops and gatherings around DIY sound and repair I've noticed how empowering these exchanges can be [^exchange]. This guide itself is created during and around so-called *(un)repair nights[^unrepair-night]* at the klankschool[^about-klankschool]. I would really encourage you to do DIWO this guide too. The frustrating process that can be learning electronics is much better to manage when shared. +Repair is often and historically organized as a social activity - opening up workplaces and sharing knowledge[@matternStepStepThinking2024]. This notion is a major part of the DIY Synth community [@richardsDIYElectronicMusic2013]. By being part of workshops and gatherings around DIY sound and repair I've noticed how empowering these exchanges can be [^exchange]. This guide itself is created during and around so-called *(un)repair nights[^unrepair-night]* at the klankschool[^about-klankschool]. I would really encourage you to do DIWO this guide too. The frustrating process that can be learning electronics is much better to manage when shared. -[^exchange]: Especially during a [workshop in collaboration with the kunsthal](https://www.kunsthal.nl/nl/plan-je-bezoek/activiteiten/friday-night-live-operator/), where it was the first time making a circuit for many atendees. It was great to see how people without much electronics experience, figured out circuit making and playing, together. +[^exchange]: Especially during a [workshop in collaboration with the kunsthal](https://www.kunsthal.nl/nl/plan-je-bezoek/activiteiten/friday-night-live-operator/), where it was the first time making a circuit for many attendees. It was great to see how people without much electronics experience, figured out circuit making and playing, together. -[^unrepair-night]: The (un)repair cafe is a by-weekly hangout at the Klankschool, where we modify, hack and repair devices. Check the [calendar](https://calendar.klank.school/) for the next event! +[^unrepair-night]: The (un)repair cafe is a by-weekly hangout at the Klankschool, where we modify, hack, and repair devices. Check the [calendar](https://calendar.klank.school/) for the next event! -[^about-klankschool]: Klankschool is a loose-knit group of sonic practitioners based in Rotterdam who share a common interest in performances, sound art, improvisation and noise. Everyone involved is a teacher, student, musician, janitor and more. +[^about-klankschool]: Klankschool is a loose-knit group of sonic practitioners based in Rotterdam who share a common interest in performances, sound art, improvisation, and noise. Everyone involved is a teacher, student, musician, janitor, and more. -On that note, I am by no means an expert in electronics. When I write about how things work, please take it with a grain of salt. This guide represents my personal understanding, which, no doubt, contains incorrect assumptions or oversimplifications. If you have suggestions for improvement, feel free to reach out or submit a pull request with your insights. \ No newline at end of file +On that note, I am by no means an expert in electronics. When I write about how things work, please take it with a grain of salt. This guide represents my personal understanding, which, no doubt, contains incorrect assumptions or oversimplifications. If you have suggestions for improvement, feel free to reach out! + + De buying DIY komt niet helemaal lekker meer in hier nu +Nadenken over hoe je je inmiddels verhoudt tot de DIWO + + \ No newline at end of file diff --git a/src/content/chapters/0-gather.md b/src/content/chapters/0-gather.md index 51f045b..e0c1153 100644 --- a/src/content/chapters/0-gather.md +++ b/src/content/chapters/0-gather.md @@ -3,34 +3,48 @@ title: "Gathering hardware" type: Chapter slug: true front: true - --- -When salvaging parts, we are looking for abandoned hardware. Hardware that is still fine on the inside, but no longer deemed as functional by its previous owners[^no-longer-functional] in our consumer culture. These devices can be a literal goldmine of working parts that could be repurposed, as their inner parts probably still function, it’s the stylistic obsolescence [^stylistic-obsolescence] that is the problem. -Here, I would like to go much more into detail about obsolescence and the different ways it presents itself, so I can refer back to it at a later point. Using [@hertzZombieMediaCircuit2012] & [@parksFallingApartElectronics2007] +When salvaging for parts, we are looking for abandoned hardware. Hardware that is still fine on the inside, but no longer deemed as functional by its previous owners[^no-longer-functional]. These devices can be a literal goldmine of working parts that could be repurposed, as their inner parts probably still function, it’s the stylistic obsolescence [^stylistic-obsolescence] that is the problem. -[^no-longer-functional]:The spectrum of "still fine" and "no longer deemed as functional" is very wide. Think about printers for which their specific cartridges are no longer produced, Blu-ray players, the E.T. game that was buried, that iPhone 8 with a bad battery, Spotify's "Car Thing", etc. +Here, I would like to go much more into detail about obsolescence and the different ways it presents itself so that I can refer back to it at a later point. Using [@hertzZombieMediaCircuit2012] & [@parksFallingApartElectronics2007] -[^stylistic-obsolescence]: **stylistic obsolescence** The idea that objects can go out of fashion the idea, and therefore needed to be replaced every season [@sterneOutTrashFuture2007] +[^no-longer-functional]: The spectrum of "still fine" and "no longer deemed as functional" is very wide. Think about printers for which their specific cartridges are no longer produced, Blu-ray players, the E.T. game that was buried, that iPhone 8 with a bad battery, Spotify's "Car Thing", etc. -I’ve identified 3 strategies in gathering the electronic hardware. +[^stylistic-obsolescence]: **stylistic obsolescence** The idea that objects can go out of fashion and therefore should be replaced every season [@sterneOutTrashFuture2007] + +I’ve identified 3 strategies for gathering the electronic hardware. ##### 1. Browsing the streets -I feel like with great waste “comes to you”. Keep your eyes open, look around. Actively going on waste walks has not been very fruitful for me. The success is dependent on where you live and the waste regulations and activities[^waste-activities]. Information about waste management should[^should-be-communicated] be communicated via the municipality[^unbinair-waste]. +I feel like good waste *“comes to you”*. Keep your eyes open, look around. Actively going on waste walks has not been very fruitful for me. The success is dependent on where you live and the waste regulations and activities[^waste-activities]. Information about waste management should[^should-be-communicated] be communicated via the municipality[^unbinair-waste]. [^unbinair-waste]: I would like to mention the hidden waste streams discussed in [@fennisOntologyElectronicWaste2022] -[^waste-activities]: In Rotterdam, there are various Whatsapp & Facebook groups exchanging geo loctions for great trash. +[^waste-activities]: In Rotterdam, there are various WhatsApp & Facebook groups exchanging geo locations for great trash. [^should-be-communicated]: The municipality waste guide website & app of Rotterdam is not functioning and has not been updated since 2022. ##### 2. Donations from friends & family -As you’ll enthusiastically keep your friends & family in the loop about your salvaging endeavours, you’ll notice the phenomenon of donations. A large portion of our replaced computing devices still reside in our storage units, waiting to be of any value [@gabrysDigitalRubbishNatural2011]. +As you enthusiastically keep your friends & family in the loop about your salvaging endeavors, you’ll notice the phenomenon of donations. Since a large portion of our replaced computing devices still reside in our storage units, waiting to be of any value, most would be happy to find such a good destination as you. Additionally, might be time to check your own skeletons in the closet [@gabrysDigitalRubbishNatural2011]. ##### 3. Institutional discards -Institutions where electronic hardware is not their day-to-day business usually do not have a systematic solution for their e-waste. Many have a system in place to replace their hardware (printers, computers, etc. ), every 5 years. The remainders are put in storage. This could be you! +Institutions where electronic hardware is not their day-to-day business, usually do not have a systematic solution for their e-waste. Due to tax regulations in the Netherlands, many have a system in place to replace their hardware (printers, computers, etc. ), every 5 years. The remainder are put in storage. This could be you! -## Pick you battles -When inspecting a device for salvage possibilities, I try to imagine what the inside of the device looks like. What kind of components might I find? Are there any motors or moving parts? What kind of material is the device made off? What time period is it from? Which companies manufactured the device and it's parts? Do I see any use for it now? If I don’t expect much, I’ll leave it for the next person to salvage. \ No newline at end of file +## Outside of the system +My attempts to create a more consistent waste stream through more “official” routes have not been very successful. These established waste streams, where trash is being collected, organised, and processed in multiple facilities, are quite difficult to discover[^difficult]. Usually the method of exchange is to translate the waste into monetary value, only being sold in the bulk. Solo salvaging is not invited in this transaction. + +Hier kun je evt iets zeggen over Ontology Of Electronic Waste + +[^difficult]: where some are happy to say everything is eco-friendly, not all feel like showing who their partners are. + +My attempts to establish a relationship with the secondhand shop[^broken] have not been successful, but maybe you’re able to propose a better deal. Out of pity I was allowed to snoop in their garbage bin (which was locked away and filled with goodies). Their waste was already part of a monetized system, and my presence didn’t fit. + +The recycling center is also + +[^broken]: I figured they’d have a lot of devices being donated that are broken, and I’d love to take those. + + +## Pick your battles +When inspecting a device for salvage possibilities, I try to imagine what the inside of the device looks like. What kind of components might I find? Are there any motors or moving parts? What kind of material is the device made of? What time period is it from? Which companies manufactured the device and its parts? Do I see any use for it now? If I don’t expect much, I’ll leave it for the next person to salvage. \ No newline at end of file diff --git a/src/content/chapters/2-component-salvaging.md b/src/content/chapters/2-component-salvaging.md index 09dad28..69cabcb 100644 --- a/src/content/chapters/2-component-salvaging.md +++ b/src/content/chapters/2-component-salvaging.md @@ -22,34 +22,33 @@ There are an almost infinite number of parts[^interchangeable_part] that can be [^interchangeable_part]: To research [interchangable parts](https://en.wikipedia.org/wiki/Interchangeable_parts#Late_19th_and_early_20th_centuries:_dissemination_throughout_manufacturing) n.a.v. deze [post](https://northcoastsynthesis.com/news/preferred-values-for-resistors-and-capacitors/) -**Name** |**Category** |**Description** |**Found in** |**Symbol** |**Value** -----------------------------------|------------------------|---------------------------------------------------------------|-----------------------------------------------|----------------------|------------------------ -**555 Timer** |IC |A small chip that generates pulses |Timers, LED dimmers |_TBA schematic symbol_| -**Capacitor** |Capacitor |Store a voltage |Everywhere! |_TBA schematic symbol_|Farads (F) -**Coil** |Passive Component |These funky components can create sounds on their own |Transformers, relays, wireless charging |_TBA schematic symbol_| -**Crystal Oscillator** |Passive |Generates a frequency that is often used as a clock |Devices that have processors |_nvt_ |Frequency (MHz) -**Diode** |Diode |Forces current to flow in one direction |Everywhere! |_TBA schematic symbol_| -**Displays** |Display |Display information |Monitors, calculators, embedded systems |_nvt_ | -**Fuse** |Passive |Protects circuits from overflowing |Power supplies, home appliances |_nvt_ |Current rating (A) -**Inductor** |Passive Component |Not sure yet |Power supplies, RF circuits |_TBA schematic symbol_| -**LED (Light Emitting Diode)** |Diode |Emit a small light |Everywhere! |_TBA schematic symbol_| -**Logic chips** |IC |Create logic and switches |Computers, microcontrollers, control circuits |_TBA schematic symbol_| -**MOSFET** |IC |Not sure yet |Power supplies, motor control |_TBA schematic symbol_|Threshold voltage (V) -**Magnet** |Misc |Electromagnetic applications, motors |Speakers, hard drives |_nvt_ | -**Microcontroller** |IC |Programmable chip, for example the ATmega328 |Embedded systems, Arduino, automation |_TBA schematic symbol_| -**Microphone** |Input |Record sound |Phones, vapes |_TBA schematic symbol_| -**Motor** |Electromechanical Device|Spins when a power is applied |Printers, blenders, vacuums |_TBA schematic symbol_|Voltage (V), Current (A) -**NPN Transistor** |Transistor |Amplification/switching |Everywhere! |_TBA schematic symbol_| -**Op-Amp (Operational Amplifier)**|IC |Amplifying signals |Audio circuits, sensors, control systems |_TBA schematic symbol_| -**PCB** |Misc |Where the circuit is placed on |Everywhere! |_TBA schematic symbol_| -**PNP Transistor** |Transistor |Amplification/switching |Everywhere! |_TBA schematic symbol_| -**Piezo disc** |Ouput/Input |Records or creates vibrations |Buzzers, sensors |_nvt_ | -**Potentiometer** |Resistor |Limiting voltage trough a knob |Volume knobs, light dimmers |_TBA schematic symbol_|Resistance (Ohm, Ω) -**Relay** |Electromechanical |Switches power |Household appliances |_TBA schematic symbol_| -**Resistor** |Resistor |Limiting voltage |Everywhere! |_TBA schematic symbol_|Resistance (Ohm, Ω) -**Speaker** |Ouput |Outputs sound |Toys, (portable) radio’s |_TBA schematic symbol_|Impedance (Ω) -**Stepper motor** |Electromechanical Device|Device that creates a step based movement |Printers, disk drives, hard drives, 3d printers|_TBA schematic symbol_| -**Switches & buttons** |Input |Interact with the device |Light switches, keyboards |_TBA schematic symbol_| -**Thermistor** |Resistor |Limiting voltage dependant on temperature |Not sure yet |_TBA schematic symbol_|Resistance (Ohm, Ω) -**Trimpots** |Resistor |Limit voltage trough a small knob adjustable with a screwdriver|Audio circuits, calibration devices |_TBA schematic symbol_|Resistance (Ohm, Ω) -**Voltage regulators** |Passive Component |Not sure yet |Power supplies, embedded systems |_TBA schematic symbol_| \ No newline at end of file +| **Name** | **Category** | **Description** | **Found in** | **Symbol** | **Value** | +| ---------------------------------- | ------------------------ | --------------------------------------------------------------- | ----------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ------------------------ | +| **555 Timer** | IC | A small chip that generates pulses | Timers, LED dimmers | | +| **Capacitor** | Capacitor | Store a voltage | Everywhere! | ![](./assets/schematics/Capacitor-IEC-Polarized.svg) | Farads (F) | +| **Coil** | Passive Component | These funky components can create sounds on their own | Transformers, relays, wireless charging | ![](./assets/schematics/Inductor-COM-Air.svg) | +| **Crystal Oscillator** | Passive | Generates a frequency that is often used as a clock | Devices that have processors | | Frequency (MHz) | +| **Diode** | Diode | Forces current to flow in one direction | Everywhere! | ![](./assets/schematics/Diode-COM-Standard.svg) | +| **Displays** | Display | Display information | Monitors, calculators, embedded systems | _nvt_ | +| **Fuse** | Passive | Protects circuits from overflowing | Power supplies, home appliances | _nvt_ | Current rating (A) | | +| **LED (Light Emitting Diode)** | Diode | Emit a small light | Everywhere! | ![](./assets/schematics/Diode-COM-LED.svg) | +| **Logic chips** | IC | Create logic and switches | Computers, microcontrollers, control circuits | | +| **MOSFET** | IC | Not sure yet | Power supplies, motor control | | Threshold voltage (V) | +| **Magnet** | Misc | Electromagnetic applications, motors | Speakers, hard drives | _nvt_ | +| **Microcontroller** | IC | Programmable chip, for example the ATmega328 | Embedded systems, Arduino, automation | ![](./assets/schematics/Capacitor-IEC-Polarized.svg) | +| **Microphone** | Input | Record sound | Phones, vapes | ![](./assets/schematics/Audio-IEEE-Microphone.svg) | +| **Motor** | Electromechanical Device | Spins when a power is applied | Printers, blenders, vacuums | ![](./assets/schematics/motor.png) | Voltage (V), Current (A) | +| **NPN Transistor** | Transistor | Amplification/switching | Everywhere! | ![](./assets/schematics/Transistor-COM-BJT-NPN.svg) | +| **Op-Amp (Operational Amplifier)** | IC | Amplifying signals | Audio circuits, sensors, control systems | ![](./assets/schematics/IC-COM-OpAmp.svg) | +| **PCB** | Misc | Where the circuit is placed on | Everywhere! | | +| **PNP Transistor** | Transistor | Amplification/switching | Everywhere! | ![](./assets/schematics/Transistor-COM-BJT-PNP.svg) | +| **Piezo disc** | Ouput/Input | Records or creates vibrations | Buzzers, sensors | | +| **Potentiometer** | Resistor | Limiting voltage trough a knob | Volume knobs, light dimmers | ![](./assets/schematics/Resistor-IEEE-Potentiometer.svg) | Resistance (Ohm, Ω) | +| **Relay** | Electromechanical | Switches power | Household appliances | ![](./assets/schematics/Relay-COM-COM-SPDT.svg) | +| **Resistor** | Resistor | Limiting voltage | Everywhere! | ![](./assets/schematics/Resistor-IEEE-Standard.svg) | Resistance (Ohm, Ω) | +| **Speaker** | Ouput | Outputs sound | Toys, (portable) radio’s | ![](./assets/schematics/Audio-COM-Loudspeaker.svg) | Impedance (Ω) | +| **Stepper motor** | Electromechanical Device | Device that creates a step based movement | Printers, disk drives, hard drives, 3d printers | | +| **Switches & buttons** | Input | Interact with the device | Light switches, keyboards | ![](./assets/schematics/Switch-COM-SPST.svg) | +| **Thermistor** | Resistor | Limiting voltage dependant on temperature | Not sure yet | ![](./assets/schematics/Resistor-IEEE-Thermistor.svg) | Resistance (Ohm, Ω) | +| **Trimpots** | Resistor | Limit voltage trough a small knob adjustable with a screwdriver | Audio circuits, calibration devices | ![](./assets/schematics/Resistor-IEEE-Trimmer.svg) | Resistance (Ohm, Ω) | +| **Voltage regulators** | Passive Component | Not sure yet | Power supplies, embedded systems | | \ No newline at end of file diff --git a/src/content/chapters/3-recipes.md b/src/content/chapters/3-recipes.md index c2a5526..df16bde 100644 --- a/src/content/chapters/3-recipes.md +++ b/src/content/chapters/3-recipes.md @@ -33,12 +33,12 @@ There is no need to understand every single component on each recipe [^no-need], [^no-need]:Rule #17 from Handmade Electronic Music states "If it sounds good and doesn’t smoke, don’t worry if you don’t understand it." @collinsHandmadeElectronicMusic2009. - If you want to build a modular, my advice is not to do it if you want to have any friends, it takes too much time. > https://web.archive.org/web/20151011091344/http://www.irfp.net/Projects/machines/Modular.html +If you want to build a modular, my advice is not to do it if you want to have any friends, it takes too much time. > [source](https://web.archive.org/web/20151011091344/http://www.irfp.net/Projects/machines/Modular.html) - ## Safety notes +## Safety notes - - **Audio can be surprisingly loud**. Use small speakers (never headphones!) you wouldn’t miss if they break, and keep your hand on the volume dial when plugging in your sound device for the first time +- **Audio can be surprisingly loud**. Use small speakers (never headphones!) you wouldn’t miss if they break, and keep your hand on the volume dial when plugging in your sound device for the first time - **Use batteries** plugging into a wall (120V) can be incredibly dangerous. When making changes - **watch that smell** “magic smoke” has a certain smell. Unplug immediately when something smells/smokes! - **two know more then one** If you're not sure, invite a friend and I'm sure you'll figure it out together diff --git a/src/content/chapters/index.md b/src/content/chapters/index.md new file mode 100644 index 0000000..879b110 --- /dev/null +++ b/src/content/chapters/index.md @@ -0,0 +1,15 @@ +--- +title: "Index" +type: index +slug: true +front: false + +--- + +- [-1-intro.md](-1-intro.html) +- [0-gather.md](0-gather.html) +- [1-dismantling.md](1-dismantling.html) +- [2-component-salvaging.md](2-component-salvaging.html) +- [3-recipes.md](3-recipes.html) +- [4-reflection.md](4-reflection.html) +- [5-bib.md](5-bib.md) \ No newline at end of file diff --git a/src/content/components/0_resistor.md b/src/content/components/0_resistor.md index f297df4..59f786e 100644 --- a/src/content/components/0_resistor.md +++ b/src/content/components/0_resistor.md @@ -1,7 +1,10 @@ --- title: Resistors +parent: Components type: Resistor -image: ./assets/components/salvaged-resistors.webp +images: + - src: ./assets/components/Resistors.JPG + alt: 'These resistors where salvaged from a Reel to Reel recorder' usage: "A resistor limits the current going trough. This amount of resistance is expressed in Ohm Ω" whereToFind: Everywhere! schematicSymbol: https://upload.wikimedia.org/wikipedia/commons/thumb/4/44/IEEE_315-1975_%281993%29_2.1.1.a.svg/200px-IEEE_315-1975_%281993%29_2.1.1.a.svg.png diff --git a/src/content/components/1_capacitor.md b/src/content/components/1_capacitor.md index 0ebe708..89c16cd 100644 --- a/src/content/components/1_capacitor.md +++ b/src/content/components/1_capacitor.md @@ -4,6 +4,9 @@ type: Capacitor description: This is the description usage: Capacitors stores an electrical charge, expressed in microFarads (μF), nanoFarads (nF) of picoFarads (pF). whereToFind: Everywhere! +images: + - src: ./assets/components/Capacitors.JPG + alt: 'The various sizes of Capacitors' schematicSymbol: https://upload.wikimedia.org/wikipedia/commons/thumb/1/1c/Types_of_capacitor.svg/460px-Types_of_capacitor.svg.png alsoKnownAs: "Caps, condenser" --- diff --git a/src/content/components/chips.md b/src/content/components/chips.md index a0b6747..0e67dca 100644 --- a/src/content/components/chips.md +++ b/src/content/components/chips.md @@ -2,7 +2,9 @@ title: Chips type: Chip description: This is the description -image: https://placehold.co/600x400 +images: + - src: ./assets/components/chip.JPG + alt: 'A chip sooooo small the picture has to be blurry' usage: Being a black boxed monolith whereToFind: Everywhere! alsoKnownAs: "Chip, IC, Intergrated Circuit, DIP CHIP" diff --git a/src/content/components/inputs.md b/src/content/components/inputs.md index 5c7e827..e5c7f70 100644 --- a/src/content/components/inputs.md +++ b/src/content/components/inputs.md @@ -2,7 +2,9 @@ title: Inputs type: Inputs description: This is the description -image: https://placehold.co/600x400 +images: + - src: ./assets/components/Resistors.JPG + alt: 'This would be a great alt text' --- In many ways the holy grail of component salvaging! They are very practical to stack up on, as you can never have enough audio jacks, knobs, buttons, power connectors, etc. diff --git a/src/content/components/outputs.md b/src/content/components/outputs.md index dbd9ae6..f83e6d4 100644 --- a/src/content/components/outputs.md +++ b/src/content/components/outputs.md @@ -3,7 +3,9 @@ title: Outputs type: Outputs description: This is the description -image: https://placehold.co/600x400 +images: + - src: ./assets/components/Resistors.JPG + alt: 'This would be a great alt text' --- diff --git a/src/content/components/pcb.md b/src/content/components/pcb.md index 41b8cd9..d1bc1d7 100644 --- a/src/content/components/pcb.md +++ b/src/content/components/pcb.md @@ -2,7 +2,9 @@ title: PCB (Printed Circuit Board) type: PCB description: This is the description -image: https://placehold.co/600x400 +images: + - src: /assets/components/PCB_1.JPG + alt: 'This would be a great alt text' usage: The circuit exists on the PCB whereToFind: Everywhere! alsoKnownAs: "Protoboard, breadboard, circuit" diff --git a/src/content/components/transistor.md b/src/content/components/transistor.md index a33ee3e..513c60b 100644 --- a/src/content/components/transistor.md +++ b/src/content/components/transistor.md @@ -2,7 +2,9 @@ title: Transistors type: transistor description: This is the description -image: https://placehold.co/600x400 +images: + - src: ./assets/components/TransistorsED.JPG + alt: 'This would be a great alt text' usage: "A transistor is a switch that is controlled trough voltage" whereToFind: Everywhere! schematicSymbol: https://upload.wikimedia.org/wikipedia/commons/thumb/4/44/IEEE_315-1975_%281993%29_2.1.1.a.svg/200px-IEEE_315-1975_%281993%29_2.1.1.a.svg.png diff --git a/src/content/index.md b/src/content/index.md index ed84247..85ebe80 100644 --- a/src/content/index.md +++ b/src/content/index.md @@ -1,16 +1,14 @@ --- -title: "Let's unrepair together" +excerpt: A documentation page +title: A field guide to salvaging sound devices +version: 0.3 +layout: index +description: This is the description of the about us page --- + -# Let's unrepair together +Dear reader, -Hello! Every thursday we're hanging out at Cato, to unrepair together. In januari 2025 we're kickstarting a series of hangouts where we'll dive into topics like server maintainance, salvaging electronic components and making sound devices. +This web page includes the WIP version of my thesis. For (limited) information about Klankschool's repair café, go to [https://unrepair.klank.school](https://unrepair.klank.school). The text you'll find below is a draft of the thesis. This thesis will be a field guide to salvaging electronics to make sound devices. This field guide is compact and is meant to be taken *"into the wild."* You can download the guide as a PDF via [this link](https://unrepair.vitrinekast.xyz/assets/thesis.pdf), or CTRL + P your own. -Come hang out! - -{{ events upcoming repair }} - - -### Past hangouts -{{ events passed repair}} -E \ No newline at end of file +I'm leaving notes of things I'd like to include later. These notes can be recognized by their tags. \ No newline at end of file diff --git a/src/content/Thesis for ia writer.md b/src/content/thesis-in-iai-writer.md similarity index 100% rename from src/content/Thesis for ia writer.md rename to src/content/thesis-in-iai-writer.md diff --git a/src/templates/snippets/page-cover.jinja b/src/templates/snippets/page-cover.jinja index 12b3cff..70ef7e5 100644 --- a/src/templates/snippets/page-cover.jinja +++ b/src/templates/snippets/page-cover.jinja @@ -6,6 +6,7 @@ {%- macro showCoverPage(chapter, documents, index) -%}
+
{{chapter['title']}}
diff --git a/src/templates/snippets/page-detail.jinja b/src/templates/snippets/page-detail.jinja index 90558da..e0772c9 100644 --- a/src/templates/snippets/page-detail.jinja +++ b/src/templates/snippets/page-detail.jinja @@ -1,52 +1,70 @@ -{% from 'snippets/BOM.jinja' import showBOM with context %} +{% from 'snippets/BOM.jinja' import showBOM with context %} {%- macro showDetail(content, parentChapter, isNested = false) -%} + + +{% if content['folder'] == 'components' %} +
+ + {% for image in content['images'] %} +
+ {{image['alt']}} +
{{image['alt']}}
+
+ {% endfor %} + +
+{%endif%}
+
{% if isNested %} - {{content['title']}} + {{content['title']}} {% else %} - {{content['title']}} + {{content['title']}} {% endif %} - +
-

:chapter title:

- - + {% if content['folder'] is defined %} +

{{content['folder']}}

+ {% endif %}

{{content['title']}}

{% if content['alsoKnownAs'] %} -
Also known as {{content['alsoKnownAs']}}
+
Also known as {{content['alsoKnownAs']}}
{% endif %} {% if content['shortDescription'] %} -

{{content['shortDescription'] }}

+

{{content['shortDescription'] }}

{% endif %} - {% if content['sample'] %} -
- - - - -
- - - {% endif %} + {% if content['sample'] %} +
+ + + + + + + + +
+ + + {% endif %}
{{content['body']}}
- {% if content['image'] %}{% endif %} {% if content['material'] %} + {% if content['image'] %}{% endif %} {% if content['material'] %}
Material
@@ -60,6 +78,6 @@
{% endif %}
- {% endif %} + {% endif %}
-{%- endmacro -%} +{%- endmacro -%} \ No newline at end of file diff --git a/src/templates/snippets/page-front.jinja b/src/templates/snippets/page-front.jinja index a7f81ba..89aeef1 100644 --- a/src/templates/snippets/page-front.jinja +++ b/src/templates/snippets/page-front.jinja @@ -1,5 +1,6 @@ {%- macro showFront(content) -%}
+

am i still used????

{{detail['title']}}
diff --git a/src/templates/thesis.jinja b/src/templates/thesis.jinja index caaa5f5..716316f 100644 --- a/src/templates/thesis.jinja +++ b/src/templates/thesis.jinja @@ -28,9 +28,8 @@ - - {% for chapter in documents['chapters'] %} + {% if chapter['title']|lower != 'index' %}
{% if chapter['front'] %} @@ -51,7 +50,7 @@ {{ showNestedPages(chapter, documents) }} - + {% endif %} {% endfor %}