This commit is contained in:
Heerko 2022-07-18 23:50:31 +02:00
commit e8567f9bde
64 changed files with 4971 additions and 0 deletions

1
.vscode/configurationCache.log vendored Normal file
View file

@ -0,0 +1 @@
{"buildTargets":["all","clean","dist","help","html"],"launchTargets":[],"customConfigurationProvider":{"workspaceBrowse":{"browsePath":[],"compilerArgs":[]},"fileIndex":[]}}

10
.vscode/dryrun.log vendored Normal file
View file

@ -0,0 +1,10 @@
make --dry-run --always-make --keep-going --print-directory
make: Entering directory `/Users/hrk/_HACKERSANDDESIGNERS/Presentations/soilpunk_joulethief'
echo ""
echo "--Help Menu"
echo ""
echo "1. make html"
echo "2. make dist"
echo "3. make clean"
make: Leaving directory `/Users/hrk/_HACKERSANDDESIGNERS/Presentations/soilpunk_joulethief'

4
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,4 @@
{
"restructuredtext.confPath": "",
"esbonio.sphinx.confDir": ""
}

340
.vscode/targets.log vendored Normal file
View file

@ -0,0 +1,340 @@
make all --print-data-base --no-builtin-variables --no-builtin-rules --question
# GNU Make 3.81
# Copyright (C) 2006 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions.
# There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
# This program built for i386-apple-darwin11.3.0
# Make data base, printed on Mon Jul 18 21:08:56 2022
# Variables
# automatic
<D = $(patsubst %/,%,$(dir $<))
# environment
RUBY_VERSION = 3.1.2
# automatic
?F = $(notdir $?)
# makefile (from `makefile', line 2)
RST := slides.rst
# automatic
?D = $(patsubst %/,%,$(dir $?))
# environment
PLATFORMIO_IDE = 2.5.0
# automatic
@D = $(patsubst %/,%,$(dir $@))
# automatic
@F = $(notdir $@)
# makefile
CURDIR := /Users/hrk/_HACKERSANDDESIGNERS/Presentations/soilpunk_joulethief
# makefile
SHELL = /bin/sh
# environment
DIRHISTORY_SIZE = 30
# environment
VSCODE_NLS_CONFIG = {"locale":"en-gb","availableLanguages":{},"_languagePackSupport":true}
# environment
_ = /usr/bin/make
# makefile (from `makefile', line 1)
MAKEFILE_LIST := makefile
# environment
__CFBundleIdentifier = com.microsoft.VSCode
# environment
INFOPATH = /opt/homebrew/share/info:/opt/homebrew/share/info:
# makefile (from `makefile', line 5)
HTML := `whoami`-`date '+%Y-%m-%d'`.html
# environment
P9K_SSH = 0
# environment
VSCODE_CWD = /
# environment
NO_PROXY = 127.0.0.1
# environment
LSCOLORS = Gxfxcxdxbxegedabagacad
# environment
RUBYOPT =
# environment
LaunchInstanceID = 8B758BDD-8E56-461B-B453-FF79EC0DA5A4
# environment
ELECTRON_RUN_AS_NODE = 1
# default
.FEATURES := target-specific order-only second-expansion else-if archives jobserver check-symlink
# environment
SSH_AUTH_SOCK = /private/tmp/com.apple.launchd.hNCYCbJcx9/Listeners
# automatic
%F = $(notdir $%)
# environment
CONDA_EXE = /Users/hrk/opt/anaconda3/bin/conda
# environment
PWD = /Users/hrk/_HACKERSANDDESIGNERS/Presentations/soilpunk_joulethief
# environment
HOMEBREW_CELLAR = /opt/homebrew/Cellar
# environment
GEM_HOME = /Users/hrk/.gem/ruby/3.1.2
# environment
ORIGINAL_XDG_CURRENT_DESKTOP = undefined
# environment
MAMP_PHP = /Applications/MAMP/bin/php/php7.2.8/bin/php
# environment
MANPATH = /opt/homebrew/share/man:/opt/homebrew/share/man:::
# environment
VSCODE_AMD_ENTRYPOINT = vs/workbench/api/node/extensionHostProcess
# environment
PYENV_SHELL = zsh
# environment
HOME = /Users/hrk
# makefile (from `makefile', line 9)
OUTDIR := html_output
# default
MAKEFILEPATH := /Applications/Xcode.app/Contents/Developer/Makefiles
# environment
VSCODE_CODE_CACHE_PATH = /Users/hrk/Library/Application Support/Code/CachedData/b06ae3b2d2dbfe28bca3134cc6be65935cdfea6a
# environment
LOGNAME = hrk
# environment
APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL = 1
# environment
CONDA_PROMPT_MODIFIER = (base)
# environment
VSCODE_HANDLES_UNCAUGHT_ERRORS = true
# automatic
^D = $(patsubst %/,%,$(dir $^))
# environment
GEM_PATH = /Users/hrk/.gem/ruby/3.1.2:/Users/hrk/.rubies/ruby-3.1.2/lib/ruby/gems/3.1.0
# environment
CONDA_DEFAULT_ENV = base
# environment
PLATFORMIO_PATH = /Users/hrk/.platformio/python3/bin:/Users/hrk/.pyenv/shims:/Users/hrk/opt/anaconda3/bin:/Users/hrk/opt/anaconda3/condabin:/Users/hrk/.gem/ruby/3.1.2/bin:/Users/hrk/.rubies/ruby-3.1.2/lib/ruby/gems/3.1.0/bin:/Users/hrk/.rubies/ruby-3.1.2/bin:/opt/homebrew:/usr/local/sbin:/opt/homebrew/bin:/opt/homebrew/sbin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Applications/Visual Studio Code.app/Contents/Resources/app/bin:/Users/hrk/src
# default
MAKE = $(MAKE_COMMAND)
# default
MAKECMDGOALS := all
# environment
PATH = /Users/hrk/.pyenv/shims:/Users/hrk/opt/anaconda3/bin:/Users/hrk/opt/anaconda3/condabin:/Users/hrk/.gem/ruby/3.1.2/bin:/Users/hrk/.rubies/ruby-3.1.2/lib/ruby/gems/3.1.0/bin:/Users/hrk/.rubies/ruby-3.1.2/bin:/opt/homebrew:/usr/local/sbin:/opt/homebrew/bin:/opt/homebrew/sbin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Applications/Visual Studio Code.app/Contents/Resources/app/bin:/Users/hrk/src
# environment
SHLVL = 1
# environment
RUBY_ROOT = /Users/hrk/.rubies/ruby-3.1.2
# environment
XPC_FLAGS = 0x0
# default
MAKE_VERSION := 3.81
# environment
USER = hrk
# makefile
.DEFAULT_GOAL := all
# environment
RUBY_ENGINE = ruby
# environment
LESS = -R
# automatic
%D = $(patsubst %/,%,$(dir $%))
# environment
CONDA_SHLVL = 1
# default
MAKE_COMMAND := /Applications/Xcode.app/Contents/Developer/usr/bin/make
# default
.VARIABLES :=
# environment
TMPDIR = /var/folders/k0/90zw5hsn7wn5fg0h7ps27qbr0000gn/T/
# automatic
*F = $(notdir $*)
# environment
VSCODE_IPC_HOOK = /Users/hrk/Library/Application Support/Code/1.69.1-main.sock
# environment
MallocNanoZone = 0
# makefile
MAKEFLAGS = Rrqp
# environment
MFLAGS = -Rrqp
# automatic
*D = $(patsubst %/,%,$(dir $*))
# environment
XPC_SERVICE_NAME = application.com.microsoft.VSCode.42374087.42374093
# environment
HOMEBREW_PREFIX = /opt/homebrew
# automatic
+D = $(patsubst %/,%,$(dir $+))
# makefile (from `makefile', line 4)
AUTHOR := `whoami`
# automatic
+F = $(notdir $+)
# environment
HOMEBREW_REPOSITORY = /opt/homebrew
# environment
__CF_USER_TEXT_ENCODING = 0x1F5:0x0:0x0
# environment
COMMAND_MODE = unix2003
# default
MAKEFILES :=
# automatic
<F = $(notdir $<)
# environment
PLATFORMIO_CALLER = vscode
# environment
PAGER = less
# environment
LC_ALL = C
# environment
CONDA_PYTHON_EXE = /Users/hrk/opt/anaconda3/bin/python
# environment
SECURITYSESSIONID = 186b2
# automatic
^F = $(notdir $^)
# default
SUFFIXES :=
# environment
GEM_ROOT = /Users/hrk/.rubies/ruby-3.1.2/lib/ruby/gems/3.1.0
# environment
_CE_M =
# environment
MAKELEVEL := 0
# makefile (from `makefile', line 7)
TODAY := `date '+%Y-%m-%d'`
# environment
CONDA_PREFIX = /Users/hrk/opt/anaconda3
# environment
VSCODE_PID = 1635
# environment
_CE_CONDA =
# environment
LANG = C
# variable set hash-table stats:
# Load=95/1024=9%, Rehash=0, Collisions=5/123=4%
# Pattern-specific Variable Values
# No pattern-specific variable values.
# Directories
# . (device 16777234, inode 42373571): 12 files, no impossibilities.
# 12 files, no impossibilities in 1 directories.
# Implicit Rules
# No implicit rules.
# Files
all: help
# Command-line target.
# Implicit rule search has been done.
# File does not exist.
# File has been updated.
# Needs to be updated (-q is set).
# variable set hash-table stats:
# Load=0/32=0%, Rehash=0, Collisions=0/2=0%
# Not a target:
.SUFFIXES:
# Implicit rule search has not been done.
# Modification time never checked.
# File has not been updated.
# Not a target:
makefile:
# Implicit rule search has been done.
# Last modified 2022-06-22 20:41:25
# File has been updated.
# Successfully updated.
# variable set hash-table stats:
# Load=0/32=0%, Rehash=0, Collisions=0/0=0%
help:
# Implicit rule search has not been done.
# Implicit/static pattern stem: `'
# File does not exist.
# File has been updated.
# Needs to be updated (-q is set).
# automatic
# @ := help
# automatic
# % :=
# automatic
# * :=
# automatic
# + :=
# automatic
# | :=
# automatic
# < :=
# automatic
# ^ :=
# automatic
# ? :=
# variable set hash-table stats:
# Load=8/32=25%, Rehash=0, Collisions=1/10=10%
# commands to execute (from `makefile', line 15):
@echo ""
@echo "--Help Menu"
@echo ""
@echo "1. make html"
@echo "2. make dist"
@echo "3. make clean"
# Not a target:
html_output:
# Implicit rule search has not been done.
# Modification time never checked.
# File has not been updated.
# Not a target:
.DEFAULT:
# Implicit rule search has not been done.
# Modification time never checked.
# File has not been updated.
dist: html_output
# Implicit rule search has not been done.
# Modification time never checked.
# File has not been updated.
# commands to execute (from `makefile', line 28):
@mkdir dist
@cp $(OUTDIR)/index.html dist/$(TODAY)_$(AUTHOR).html
@mv $(OUTDIR) $(TODAY)_$(AUTHOR)
@zip -r dist/$(TODAY)_$(AUTHOR).zip $(TODAY)_$(AUTHOR)
@rm -r $(TODAY)_$(AUTHOR)
clean:
# Implicit rule search has not been done.
# Modification time never checked.
# File has not been updated.
# commands to execute (from `makefile', line 35):
rm -rf $(OUTDIR)
rm -rf dist
html: html_output
# Implicit rule search has not been done.
# Modification time never checked.
# File has not been updated.
# commands to execute (from `makefile', line 23):
hovercraft $(RST) $(OUTDIR)
@cp $(OUTDIR)/index.html $(OUTDIR)/$(TODAY)_$(AUTHOR).html
# files hash-table stats:
# Load=9/1024=1%, Rehash=0, Collisions=1/26=4%
# VPATH Search Paths
# No `vpath' search paths.
# No general (`VPATH' variable) search path.
# # of strings in strcache: 1
# # of strcache buffers: 1
# strcache size: total = 4096 / max = 4096 / min = 4096 / avg = 4096
# strcache free: total = 4087 / max = 4087 / min = 4087 / avg = 4087
# Finished Make data base on Mon Jul 18 21:08:56 2022

22
README.md Normal file
View file

@ -0,0 +1,22 @@
# Soilpunk - Joulethief
## [View the slides here](https://hackersanddesigners.github.io/Soilpunk_technical_setup/html_output/index.html)
----
The slides are generated from a .rst by [Hovercraft](https://github.com/regebro/hovercraft).
- [Docs](https://hovercraft.readthedocs.io/en/latest/presentations.html#)
- [RST cheatsheet](https://github.com/ralsina/rst-cheatsheet/blob/master/rst-cheatsheet.rst)
I'm using [Devd](https://github.com/cortesi/devd) and [Modd](https://github.com/cortesi/modd) for serving and live reloading the slides locally.
Start it all up by running:
```
modd
```
And view the slides in your browser at: http://devd.io:8000/
Or to compile it just once:
```
make html
```

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1 @@
To learn more about the font family and its license, visit https://www.fontmirror.com/major-mono-display

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1,93 @@
Copyright (c) 2011, Vernon Adams (vern@newtypography.co.uk),
with Reserved Font Name Nunito.
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

BIN
assets/images/circuit.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 288 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 289 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 781 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 810 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 820 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 779 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 899 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 822 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

View file

@ -0,0 +1,8 @@
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head><title>Soilpunk Joulethief</title><meta charset="UTF-8"></meta><meta name="generator" content="Hovercraft! 1.0 http://regebro.github.com/hovercraft"></meta><meta name="author" content="Heerko van der Kooij"></meta><link rel="stylesheet" href="css/hovercraft.css" media="all"></link><link rel="stylesheet" href="css/highlight.css" media="all"></link><link rel="stylesheet" href="slides.css" media="screen,projection"></link><script type="text/x-mathjax-config">
MathJax.Hub.Config({
showProcessingMessages: false,
messageStyle: "none",
TeX : { extensions : ['color.js'] }
});
</script></head><body class="impress-not-supported"><div id="impress-help"></div><div class="header"><p>Soilpunk &#x1F30F;&#x1F918; - Joulethief</p></div><div id="impress"><div class="step step-level-1" step="0" data-rotate-x="0" data-rotate-y="0" data-rotate-z="0" data-scale="1" data-x="0" data-y="0" data-z="0"><h1 id="soilpunk-joulethief">Soilpunk - Joulethief</h1><p>This document is viewable as <a href="https://github.com/hackersanddesigners/Soilpunk_technical_setup/blob/master/slides.rst">a webpage</a> or as <a href="https://hackersanddesigners.github.io/Soilpunk_technical_setup/html_output/index.html">a slideshow</a></p></div><div class="step step-level-1" step="1" id="joulethief" data-rotate-x="0" data-rotate-y="0" data-rotate-z="0" data-scale="1" data-x="1600" data-y="0" data-z="0"><h1 id="joulethief">Joulethief</h1><img src="./assets/images/joulethief_simple.jpeg"></img></div><div class="step step-level-1" step="2" data-rotate-x="0" data-rotate-y="0" data-rotate-z="0" data-scale="1" data-x="3200" data-y="0" data-z="0"><h1 id="transistor">Transistor</h1><img src="./assets/images/transistor.png" width="300"></img><img src="./assets/images/analogi-transistor-87050130.gif" width="500"></img></div><div class="step step-level-1" step="3" data-rotate-x="0" data-rotate-y="0" data-rotate-z="0" data-scale="1" data-x="4800" data-y="0" data-z="0"><h1 id="joulethief-1">Joulethief</h1><img src="./assets/images/joulethief.jpeg"></img></div><div class="step step-level-1" step="4" id="joulethief-step1" data-rotate-x="0" data-rotate-y="0" data-rotate-z="0" data-scale="1" data-x="6400" data-y="0" data-z="0"><h1 id="joulethief-2">Joulethief</h1><img src="./assets/images/joulethief_1.png"></img><p>A small current flows from the battery through the coil and the base-emitter path of the transistor. This opens the emittor-collector path of the transistor.</p></div><div class="step step-level-1" step="5" data-rotate-x="0" data-rotate-y="0" data-rotate-z="0" data-scale="1" data-x="8000" data-y="0" data-z="0"><h1 id="joulethief-3">Joulethief</h1><img src="./assets/images/joulethief_2.png"></img><p>Electricity is now able to travel through the second coil and through the collector-emitter channel of the transistor.</p></div><div class="step step-level-1" step="6" data-rotate-x="0" data-rotate-y="0" data-rotate-z="0" data-scale="1" data-x="9600" data-y="0" data-z="0"><h1 id="joulethief-4">Joulethief</h1><img src="./assets/images/joulethief_3.png"></img><p>The increasing amount of electricity through the second coil generates a negative voltage in the first coil.
An negative voltage is induced in the first coil, which cause the transistor to close.</p></div><div class="step step-level-1" step="7" data-rotate-x="0" data-rotate-y="0" data-rotate-z="0" data-scale="1" data-x="11200" data-y="0" data-z="0"><h1 id="joulethief-5">Joulethief</h1><img src="./assets/images/joulethief_4.png"></img><p>With the transistor closed the energy starts to flow through the output (led).</p></div><div class="step step-level-1" step="8" data-rotate-x="0" data-rotate-y="0" data-rotate-z="0" data-scale="1" data-x="12800" data-y="0" data-z="0"><h1 id="joulethief-6">Joulethief</h1><img src="./assets/images/joulethief_5.png"></img><p>The inductor is now powered by the magnetic field of the coil.</p></div><div class="step step-level-1" step="9" data-rotate-x="0" data-rotate-y="0" data-rotate-z="0" data-scale="1" data-x="14400" data-y="0" data-z="0"><h1 id="joulethief-7">Joulethief</h1><img src="./assets/images/joulethief_6.png"></img><p>When the magnetic field is gone, the whole process <a href="#joulethief-step1">starts over</a>.</p></div><div class="step step-level-1" step="10" data-rotate-x="0" data-rotate-y="0" data-rotate-z="0" data-scale="1" data-x="16000" data-y="0" data-z="0"><h1 id="joulethief-8">Joulethief</h1><p>A more detailed explanation can be found on <a href="https://www.instructables.com/Joule-Thief-Circuit-How-to-Make-and-Circuit-Explan/">instructables</a></p></div><div class="step step-level-1" step="11" data-rotate-x="0" data-rotate-y="0" data-rotate-z="0" data-scale="1" data-x="17600" data-y="0" data-z="0"><img src="./assets/images/circuit.png"></img></div><div class="step step-level-1" step="12" data-rotate-x="0" data-rotate-y="0" data-rotate-z="0" data-scale="1" data-x="19200" data-y="0" data-z="0"><p><a href="https://github.com/hackersanddesigners/Soilpunk_joulethief">https://github.com/hackersanddesigners/Soilpunk_joulethief</a></p></div></div><script type="text/javascript" src="js/impress.js"></script><script type="text/javascript" src="js/gotoSlide.js"></script><script type="text/javascript" src="js/hovercraft.js"></script></body></html>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 685 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 325 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 362 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 387 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 244 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 654 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 288 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 289 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 781 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 810 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 820 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 779 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 899 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 822 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

View file

@ -0,0 +1,61 @@
.highlight .hll { background-color: #ffffcc }
.highlight .c { color: #408090; font-style: italic } /* Comment */
.highlight .err { border: 1px solid #FF0000 } /* Error */
.highlight .k { color: #007020; font-weight: bold } /* Keyword */
.highlight .o { color: #666666 } /* Operator */
.highlight .cm { color: #408090; font-style: italic } /* Comment.Multiline */
.highlight .cp { color: #007020 } /* Comment.Preproc */
.highlight .c1 { color: #408090; font-style: italic } /* Comment.Single */
.highlight .cs { color: #408090; background-color: #fff0f0 } /* Comment.Special */
.highlight .gd { color: #A00000 } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gr { color: #FF0000 } /* Generic.Error */
.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
.highlight .gi { color: #00A000 } /* Generic.Inserted */
.highlight .go { color: #303030 } /* Generic.Output */
.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
.highlight .gt { color: #0040D0 } /* Generic.Traceback */
.highlight .kc { color: #007020; font-weight: bold } /* Keyword.Constant */
.highlight .kd { color: #007020; font-weight: bold } /* Keyword.Declaration */
.highlight .kn { color: #007020; font-weight: bold } /* Keyword.Namespace */
.highlight .kp { color: #007020 } /* Keyword.Pseudo */
.highlight .kr { color: #007020; font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #902000 } /* Keyword.Type */
.highlight .m { color: #208050 } /* Literal.Number */
.highlight .s { color: #4070a0 } /* Literal.String */
.highlight .na { color: #4070a0 } /* Name.Attribute */
.highlight .nb { color: #007020 } /* Name.Builtin */
.highlight .nc { color: #0e84b5; font-weight: bold } /* Name.Class */
.highlight .no { color: #60add5 } /* Name.Constant */
.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
.highlight .ni { color: #d55537; font-weight: bold } /* Name.Entity */
.highlight .ne { color: #007020 } /* Name.Exception */
.highlight .nf { color: #06287e } /* Name.Function */
.highlight .nl { color: #002070; font-weight: bold } /* Name.Label */
.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
.highlight .nt { color: #062873; font-weight: bold } /* Name.Tag */
.highlight .nv { color: #bb60d5 } /* Name.Variable */
.highlight .ow { color: #007020; font-weight: bold } /* Operator.Word */
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
.highlight .mf { color: #208050 } /* Literal.Number.Float */
.highlight .mh { color: #208050 } /* Literal.Number.Hex */
.highlight .mi { color: #208050 } /* Literal.Number.Integer */
.highlight .mo { color: #208050 } /* Literal.Number.Oct */
.highlight .sb { color: #4070a0 } /* Literal.String.Backtick */
.highlight .sc { color: #4070a0 } /* Literal.String.Char */
.highlight .sd { color: #4070a0; font-style: italic } /* Literal.String.Doc */
.highlight .s2 { color: #4070a0 } /* Literal.String.Double */
.highlight .se { color: #4070a0; font-weight: bold } /* Literal.String.Escape */
.highlight .sh { color: #4070a0 } /* Literal.String.Heredoc */
.highlight .si { color: #70a0d0; font-style: italic } /* Literal.String.Interpol */
.highlight .sx { color: #c65d09 } /* Literal.String.Other */
.highlight .sr { color: #235388 } /* Literal.String.Regex */
.highlight .s1 { color: #4070a0 } /* Literal.String.Single */
.highlight .ss { color: #517918 } /* Literal.String.Symbol */
.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
.highlight .vc { color: #bb60d5 } /* Name.Variable.Class */
.highlight .vg { color: #bb60d5 } /* Name.Variable.Global */
.highlight .vi { color: #bb60d5 } /* Name.Variable.Instance */
.highlight .il { color: #208050 } /* Literal.Number.Integer.Long */

View file

@ -0,0 +1,71 @@
/* This file left intentionally (almost) blank
Landslide always adds a print.css and a screen.css, but they
are not needed in impress.js, so this theme leaves them blank,
except for hiding some things you want to hide.
You can modify these files in your own fork, or you can add
css-files in the landslide configuration file.
See https://github.com/adamzap/landslide#presentation-configuration
*/
.impress-supported .fallback-message,
.step .notes {
display: none;
}
.step {
width: 800px;
}
.substep {
opacity: 0;
}
.substep.substep-visible {
opacity: 1;
transition: opacity 1s;
}
/* Help popup */
#impress-help {
background: none repeat scroll 0 0 rgba(0, 0, 0, 0.7);
color: #EEEEEE;
font-size: 60%;
left: 2em;
bottom: 2em;
width: 30em;
border-radius: 1em;
padding: 1em;
position: fixed;
right: 0;
text-align: center;
z-index: 100;
display: block;
font-family: Verdana, Arial, Sans;
}
#impress-help strong {
font-family: inherit;
font-size: 98%;
}
/* Small hack to prevent the help from showing in previews */
.impress-console #impress-help {
opacity: 0;
background-color: green;
}
/* Slide numbers */
div#slide-number
{
bottom: 1em;
font-size: 5vh;
position: absolute;
right: 2.5em;
text-align: right;
}

8
html_output/index.html Normal file
View file

@ -0,0 +1,8 @@
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head><title>Soilpunk Joulethief</title><meta charset="UTF-8"></meta><meta name="generator" content="Hovercraft! 1.0 http://regebro.github.com/hovercraft"></meta><meta name="author" content="Heerko van der Kooij"></meta><link rel="stylesheet" href="css/hovercraft.css" media="all"></link><link rel="stylesheet" href="css/highlight.css" media="all"></link><link rel="stylesheet" href="slides.css" media="screen,projection"></link><script type="text/x-mathjax-config">
MathJax.Hub.Config({
showProcessingMessages: false,
messageStyle: "none",
TeX : { extensions : ['color.js'] }
});
</script></head><body class="impress-not-supported"><div id="impress-help"></div><div class="header"><p>Soilpunk &#x1F30F;&#x1F918; - Joulethief</p></div><div id="impress"><div class="step step-level-1" step="0" data-rotate-x="0" data-rotate-y="0" data-rotate-z="0" data-scale="1" data-x="0" data-y="0" data-z="0"><h1 id="soilpunk-joulethief">Soilpunk - Joulethief</h1><p>This document is viewable as <a href="https://github.com/hackersanddesigners/Soilpunk_technical_setup/blob/master/slides.rst">a webpage</a> or as <a href="https://hackersanddesigners.github.io/Soilpunk_technical_setup/html_output/index.html">a slideshow</a></p></div><div class="step step-level-1" step="1" id="joulethief" data-rotate-x="0" data-rotate-y="0" data-rotate-z="0" data-scale="1" data-x="1600" data-y="0" data-z="0"><h1 id="joulethief">Joulethief</h1><img src="./assets/images/joulethief_simple.jpeg"></img></div><div class="step step-level-1" step="2" data-rotate-x="0" data-rotate-y="0" data-rotate-z="0" data-scale="1" data-x="3200" data-y="0" data-z="0"><h1 id="transistor">Transistor</h1><img src="./assets/images/transistor.png" width="300"></img><img src="./assets/images/analogi-transistor-87050130.gif" width="500"></img></div><div class="step step-level-1" step="3" data-rotate-x="0" data-rotate-y="0" data-rotate-z="0" data-scale="1" data-x="4800" data-y="0" data-z="0"><h1 id="joulethief-1">Joulethief</h1><img src="./assets/images/joulethief.jpeg"></img></div><div class="step step-level-1" step="4" id="joulethief-step1" data-rotate-x="0" data-rotate-y="0" data-rotate-z="0" data-scale="1" data-x="6400" data-y="0" data-z="0"><h1 id="joulethief-2">Joulethief</h1><img src="./assets/images/joulethief_1.png"></img><p>A small current flows from the battery through the coil and the base-emitter path of the transistor. This opens the emittor-collector path of the transistor.</p></div><div class="step step-level-1" step="5" data-rotate-x="0" data-rotate-y="0" data-rotate-z="0" data-scale="1" data-x="8000" data-y="0" data-z="0"><h1 id="joulethief-3">Joulethief</h1><img src="./assets/images/joulethief_2.png"></img><p>Electricity is now able to travel through the second coil and through the collector-emitter channel of the transistor.</p></div><div class="step step-level-1" step="6" data-rotate-x="0" data-rotate-y="0" data-rotate-z="0" data-scale="1" data-x="9600" data-y="0" data-z="0"><h1 id="joulethief-4">Joulethief</h1><img src="./assets/images/joulethief_3.png"></img><p>The increasing amount of electricity through the second coil generates a negative voltage in the first coil.
An negative voltage is induced in the first coil, which cause the transistor to close.</p></div><div class="step step-level-1" step="7" data-rotate-x="0" data-rotate-y="0" data-rotate-z="0" data-scale="1" data-x="11200" data-y="0" data-z="0"><h1 id="joulethief-5">Joulethief</h1><img src="./assets/images/joulethief_4.png"></img><p>With the transistor closed the energy starts to flow through the output (led).</p></div><div class="step step-level-1" step="8" data-rotate-x="0" data-rotate-y="0" data-rotate-z="0" data-scale="1" data-x="12800" data-y="0" data-z="0"><h1 id="joulethief-6">Joulethief</h1><img src="./assets/images/joulethief_5.png"></img><p>The inductor is now powered by the magnetic field of the coil.</p></div><div class="step step-level-1" step="9" data-rotate-x="0" data-rotate-y="0" data-rotate-z="0" data-scale="1" data-x="14400" data-y="0" data-z="0"><h1 id="joulethief-7">Joulethief</h1><img src="./assets/images/joulethief_6.png"></img><p>When the magnetic field is gone, the whole process <a href="#joulethief-step1">starts over</a>.</p></div><div class="step step-level-1" step="10" data-rotate-x="0" data-rotate-y="0" data-rotate-z="0" data-scale="1" data-x="16000" data-y="0" data-z="0"><h1 id="joulethief-8">Joulethief</h1><p>A more detailed explanation can be found on <a href="https://www.instructables.com/Joule-Thief-Circuit-How-to-Make-and-Circuit-Explan/">instructables</a></p></div><div class="step step-level-1" step="11" data-rotate-x="0" data-rotate-y="0" data-rotate-z="0" data-scale="1" data-x="17600" data-y="0" data-z="0"><img src="./assets/images/circuit.png"></img></div><div class="step step-level-1" step="12" data-rotate-x="0" data-rotate-y="0" data-rotate-z="0" data-scale="1" data-x="19200" data-y="0" data-z="0"><p><a href="https://github.com/hackersanddesigners/Soilpunk_joulethief">https://github.com/hackersanddesigners/Soilpunk_joulethief</a></p></div></div><script type="text/javascript" src="js/impress.js"></script><script type="text/javascript" src="js/gotoSlide.js"></script><script type="text/javascript" src="js/hovercraft.js"></script></body></html>

View file

@ -0,0 +1,51 @@
/**
* gotoSlide.js
*
* An impress.js plugin to move to a specific slide number
*
* MIT Licensed, see license.txt.
*
* Copyright 2012-2017 impress-console contributors (see README.txt)
*
*/
(function ( document, window ) {
var gotoSlide = function (event) {
var target = event.view.prompt("Enter slide number or id");
if (isNaN(target)) {
var goto_status = impress().goto(target);
} else if (target === null) {
return;
} else {
// goto(0) goes to step-1, so substract
var goto_status = impress().goto(parseInt(target) - 1);
}
if (goto_status === false) {
event.view.alert("Slide not found: '" + target + "'");
}
};
document.addEventListener( "impress:init", function( event ) {
var api = event.detail.api;
var util = api.lib.util;
document.addEventListener( "keyup", function( event ) {
if ( event.keyCode === 71 ) { // "g"
event.preventDefault();
gotoSlide( event );
}
}, false );
util.triggerEvent( document, "impress:help:add",
{command: "G",
text: "Go to slide",
row: 3 }
);
});
})(document, window);

View file

@ -0,0 +1,37 @@
// Main hovercraft js file
( function( document ) {
"use strict";
document.addEventListener( "impress:init", function( event ) {
var api = event.detail.api;
var util = api.lib.util;
// Set up the help-box
// Overwrite the default navigation help
util.triggerEvent( document, "impress:help:add", { command: "Left, Down, Page Down, Space",
text: "Next step",
row: 1 } );
util.triggerEvent( document, "impress:help:add", { command: "Right, Up, Page Up",
text: "Previous step",
row: 2 } );
});
// Initialize impress.js
impress().init();
var impressattrs = document.getElementById('impress').attributes;
if (impressattrs.hasOwnProperty('auto-console') && impressattrs['auto-console'].value.toLowerCase() === 'true') {
impressConsole().open();
}
}) (document);
// Function updating the slide number counter
function update_slide_number(evt)
{
var step = evt.target.attributes['step'].value;
document.getElementById('slide-number').innerText = parseInt(step) + 1;
}

3908
html_output/js/impress.js Normal file

File diff suppressed because it is too large Load diff

101
html_output/slides.css Normal file
View file

@ -0,0 +1,101 @@
@font-face {
font-family: 'avara';
src: url("assets/fonts/Avara-Black.otf");
font-weight: bold;
}
@font-face {
font-family: 'nunito';
src: url("assets/fonts/nunito/Nunito-Light.ttf");
}
@font-face {
font-family: 'nunito';
src: url("assets/fonts/nunito/Nunito-Bold.ttf");
font-weight: bold;
}
html {
font-size: 62.5%;
}
body {
font-size: 2.5rem;
font-family: "nunito";
}
a {
color: teal;
}
img {
max-width: 100%;
}
.step strong {
color: teal;
font-weight: normal;
}
.header p,
h1, h2, h3, h4 {
font-family: 'avara';
}
.hidden {
width: 1px;
height: 1px;
opacity: 0;
overflow: hidden;
}
.header p {
font-size: 2rem;
}
.full-width-image img {
width: 100%;
}
.columns {
columns: 2;
}
.columns h1{
column-span: all;
}
.columns-2 {
columns: 2;
}
.columns-3 {
columns: 3;
}
.no-list ul {
margin: 0;
list-style: none;
padding: 0;;
}
.large-text {
font-size: 4rem;
}
div#the-slide-id img{
width: 100%;
height: 100%;
}
/* for drawing machines */
.code-slide h1 {
transform: rotate(-90deg) translate(-100%,-150%);
transform-origin: top left;
position: absolute;
top: 0;
left: 0;
}

37
makefile Normal file
View file

@ -0,0 +1,37 @@
RST := slides.rst
AUTHOR := `whoami`
HTML := $(AUTHOR)-`date '+%Y-%m-%d'`.html
TODAY := `date '+%Y-%m-%d'`
OUTDIR := html_output
all: help
help:
@echo ""
@echo "--Help Menu"
@echo ""
@echo "1. make html"
@echo "2. make dist"
@echo "3. make clean"
html: $(OUTDIR)
hovercraft $(RST) $(OUTDIR)
@cp $(OUTDIR)/index.html $(OUTDIR)/$(TODAY)_$(AUTHOR).html
#google-chrome-stable outdir/index.html&
dist: $(OUTDIR)
@mkdir dist
@cp $(OUTDIR)/index.html dist/$(TODAY)_$(AUTHOR).html
@mv $(OUTDIR) $(TODAY)_$(AUTHOR)
@zip -r dist/$(TODAY)_$(AUTHOR).zip $(TODAY)_$(AUTHOR)
@rm -r $(TODAY)_$(AUTHOR)
clean:
rm -rf $(OUTDIR)
rm -rf dist

4
modd.conf Normal file
View file

@ -0,0 +1,4 @@
**/*.rst {
prep: make html
daemon: devd -m ./html_output
}

101
slides.css Normal file
View file

@ -0,0 +1,101 @@
@font-face {
font-family: 'avara';
src: url("assets/fonts/Avara-Black.otf");
font-weight: bold;
}
@font-face {
font-family: 'nunito';
src: url("assets/fonts/nunito/Nunito-Light.ttf");
}
@font-face {
font-family: 'nunito';
src: url("assets/fonts/nunito/Nunito-Bold.ttf");
font-weight: bold;
}
html {
font-size: 62.5%;
}
body {
font-size: 2.5rem;
font-family: "nunito";
}
a {
color: teal;
}
img {
max-width: 100%;
}
.step strong {
color: teal;
font-weight: normal;
}
.header p,
h1, h2, h3, h4 {
font-family: 'avara';
}
.hidden {
width: 1px;
height: 1px;
opacity: 0;
overflow: hidden;
}
.header p {
font-size: 2rem;
}
.full-width-image img {
width: 100%;
}
.columns {
columns: 2;
}
.columns h1{
column-span: all;
}
.columns-2 {
columns: 2;
}
.columns-3 {
columns: 3;
}
.no-list ul {
margin: 0;
list-style: none;
padding: 0;;
}
.large-text {
font-size: 4rem;
}
div#the-slide-id img{
width: 100%;
height: 100%;
}
/* for drawing machines */
.code-slide h1 {
transform: rotate(-90deg) translate(-100%,-150%);
transform-origin: top left;
position: absolute;
top: 0;
left: 0;
}

113
slides.rst Normal file
View file

@ -0,0 +1,113 @@
:title: Soilpunk Joulethief
:author: Heerko van der Kooij
:description:
:css: slides.css
.. header::
Soilpunk 🌏🤘 - Joulethief
----
Soilpunk - Joulethief
======================
This document is viewable as `a webpage <https://github.com/hackersanddesigners/Soilpunk_technical_setup/blob/master/slides.rst>`_ or as `a slideshow <https://hackersanddesigners.github.io/Soilpunk_technical_setup/html_output/index.html>`_
----
:id: joulethief
Joulethief
========================
.. image:: ./assets/images/joulethief_simple.jpeg
----
Transistor
==========
.. image:: ./assets/images/transistor.png
:width: 300
.. image:: ./assets/images/analogi-transistor-87050130.gif
:width: 500
----
Joulethief
========================
.. image:: ./assets/images/joulethief.jpeg
----
:id: joulethief-step1
Joulethief
========================
.. image:: ./assets/images/joulethief_1.png
A small current flows from the battery through the coil and the base-emitter path of the transistor. This opens the emittor-collector path of the transistor.
----
Joulethief
========================
.. image:: ./assets/images/joulethief_2.png
Electricity is now able to travel through the second coil and through the collector-emitter channel of the transistor.
----
Joulethief
========================
.. image:: ./assets/images/joulethief_3.png
The increasing amount of electricity through the second coil generates a negative voltage in the first coil.
An negative voltage is induced in the first coil, which cause the transistor to close.
----
Joulethief
========================
.. image:: ./assets/images/joulethief_4.png
With the transistor closed the energy starts to flow through the output (led).
----
Joulethief
========================
.. image:: ./assets/images/joulethief_5.png
The inductor is now powered by the magnetic field of the coil.
----
Joulethief
========================
.. image:: ./assets/images/joulethief_6.png
When the magnetic field is gone, the whole process `starts over <#joulethief-step1>`_.
----
Joulethief
========================
A more detailed explanation can be found on `instructables <https://www.instructables.com/Joule-Thief-Circuit-How-to-Make-and-Circuit-Explan/>`_
----
.. image:: ./assets/images/circuit.png
----
https://github.com/hackersanddesigners/Soilpunk_joulethief