Ciro Santilli $£ Sponsor €¥ 中国独裁统治 China Dictatorship 新疆改造中心、六四事件、法轮功、郝海东、709大抓捕、2015巴拿马文件 邓家贵、低端人口、西藏骚乱
Operated by a hand crank.
Figure 1. Source.
Figure 2. Source.
Figure 3. Source.
Figure 4. Source.
Figure 5. Source.
This notation is designed to be relatively easy to write. This is achieved by not drawing ultra complex ASCII art boxes of every component. It would be slightly more readable if we did that, but prioritizing the writer here.
Two wires are only joined if + is given. E.g. the following two wires are not joined:
but the following are:
Simple symmetric components:
  • -, + and |: wire
  • A: AC source. Parameters:
    • Hz: frequency
    • V: peak voltage
    If only one side is given, the other is assumed to be at a ground G.
  • C: capacitor
  • G: ground. Often used together with D, e.g.:
    means applying a voltage of 10 V across a 10 Ohm resistor, which would lead to a current of 1 A
  • L: inductor
  • MICROPHONE. As a multi-letter symmetric component, you can connect the two wires anywhere, e.g.
  • R: resistor
  • X: Josephson junction
Asymmetric components have multiple letters indicating different ports. The capital letter indicates the device, and lower case letters the ports. The wires then go into the ports:
  • aDc: diode
    • a: anode (where electrons can come in from)
    • c: cathode
    Sample usage in a circuit:
    Can also be used vertically:
    We can also change the port order, the device is still the same due to capital D:
  • pDn: DC source. Ports:
    • p: positive
    • n: negative
    E.g. a 10 V source with a 10 Ohm resistor would be:
    |             |
    If only one side is given, the other is assumed to be at a the ground G. We can also omit p and m in that case and assume that p is the one used, e.g. the above would be equivalent to:
  • sgTd: transistor
    • s: source
    • g: gate
    • d: gate
    Sample usage in a circuit:
    All the following are also equivalent:
  • dIs: electric current source. Electrons leave from s and go into d
  • pVn: Voltmeter. Ports:
    • p: positive
    • n: negative
    If we don't need to specify explicit positive and negative sides, we can just use:
    without any ports. This is notably often the case for AC circuits.
    Optionaly, we can also add the sides as in:
Numbers characterizing components are put just next to each component with an underscore. When there is only one parameter, standard units are assumed, e.g.:
|     |
C_1p  R_2k
|     |
  • a capacitor with 1 pico Faraday
  • a resistor with 2 k Ohms
Micro is denoted as u.
Wires can just freely come in and out of specs of a component, they are then just connected to the component, e.g.:
means applying a voltage of 10 V across a 10 Ohm resistor, which would lead to a current of 1 A
If a component has more than two parameters, units are used to distinguish them when possible, e.g.:
means an AC source with:
Video 1. Open Circuits book interview by CuriousMarc (2022) Source.
Main implementations: the same as electronic switches: vacuum tubes in the past, and transistors in the second half of the 20th century.
Video 2. How to make an LM386 audio amplifier circuit by Afrotechmods (2017) Source. Builds the circuit on a breadboard from minimal components, including one discrete transistor. Then plays music from phone through headset cables into a speaker.
The fundamental intuition about capacitors is that they never let electrons through.
They can only absorb electrons up to a certain point, but then the pushback becomes too strong, and current stops.
Therefore, they cannot conduct direct current long term.
For alternating current however, things are different, because in alternating current, electrons are just jiggling back and forward a little bit around a center point. So you can send alternating current power across a capacitor.
The key equation that relates Voltage to electric current in the capacitor is:
So if a voltage Heavyside step function is applied what happens is:
  • the capacitor fills up instantly with an infinite current
  • the current then stops instantly
More realistically, one may consider the behaviour or the series RC circuit to see what happens without infinities when a capacitor is involved as in the step response of the series RC circuit.
Figure 6. Source.
Video 3. Finding Capacitance with an Oscilloscope by Jacob Watts (2020) Source. Good experiment.
Figure 7. Source.
This is what happens when you apply a step voltage to a series RC circuit: TODO graph.
Ideally can be thought of as a one-way ticket gate that only lets electrons go in one direction with zero resistance! Real devices do have imperfections however, so there is some resistance.
First they were made out of vacuum tubes, but later semiconductor diodes were invented and became much more widespread.
Figure 8. I-V curve of a diode. Source. This image shows well how the diode is only an approximation of the ideal one way device. Notably, there is this non-ideal voltage drop across the device, which can be modelled as constant. It is however an exponential in fact.
Video 4. Diodes Explained by The Engineering Mindset (2020) Source. Good video:
GPIO generally only supports discrete outputs.
But for some types of hardware, like LEDs and some motors, the system has some inertia, and if you switch on and off fast enough, you get a result similar to having an intermediate voltage.
So with pulse width modulation we can fake analog output from digital output in a good enough manner.
Notably used to connect:
You can buy large sets of them in combitation of male/male, male/female, female/female. Male/male is perhaps the most important
Video 5. Making Jumper Wires by PCBurn! (2018) Source.
These often come pre-soldered on devboards, e.g. and allow for easy access to GPIO pins. E.g. they're present on the Raspberry Pi 2.
Why would someone ever sell a devboard without them pre-soldered!
Figure 9. 6x1 pin header. Source.
Figure 10. Underside of a Raspberry Pi 2. Source. At the top of this image we can clearly see how the usually pre-soldered pin header connectors go through the PCB and are soldered on both sides.
Allows you to connect two adjacent pins of a pin header. Sometimes used as a hardware configuration interface!
Figure 11. Source.
Something where DC voltage comes in, and a periodic voltage comes out.
Video 6. Oscillators: RC, LC, Crystal by GreatScott! (2015) Source. Good video. Contains actual breadboard experiments on oscilloscope and circuit diagrams
Oscillator made of an LC circuit.
Although transistors were revolutionary, it is fun to note that they were just "way cheaper and more reliable and smaller" versions of exactly the main functions that a vacuum tube could achieve
The first working one in 1947 by John Bardeen and walter Brattain in Bell Labs Murray Hill.
People had already patented a lot of stuff before without being able to make them work. Nonsense.
As the name suggests, this is not very sturdy, and was quickly replaced by bipolar junction transistor.
As of 2020, not used anymore in logic gates, but still used in amplifiers.
Video 7. A Perfect Electronics Bench? by Keysight (2021) Source.
Video 8. FNIRSI 1014D review by Kerry Wong (2022) Source. One of the cheapest oscilloscopes available at the time.
Video 9. DIY Oscilloscope Kit (20$) VS Regular DS Oscilloscope (400$) by Great Scott (2016) Source.
Video 10. Hantek 6022BE Review by Adrian's Digital Basement (2022) Source.
By Andy Haas, an experimental particle physics professor: What an awesome dude!
Video 11. Haasoscope prototype, 2 4-channel boards. Source.
899 USD as of 2022, takes a year to ship as they gather up a lot of orders before producing.
Sounds so cool, especially the multi functionality. Shame so expensive.
Video 12. ThunderScope presentation for Hackaday Prize (2021) Source.
They do seem to have been very innovative, and have had a very good work culture. They also had a huge impact on the Silicon Valley startup scene.
Some products they are known for:
Video 13. The decline of HP by Company Man (2022) Source.
Video 14. HP Origins promotional documentary by HP (2006) Source. A bit too star eyed, but gives some good ideas.
In a way, Agilent represents the most grassroots electronics parts of HP from before they became overly invested in laptops and fell.
They spun out the electronics part as Keysight in 2014, becoming life science only.
This is the cutest product name ever.
Since 1992, Mr. SQUID has been the standard educational demonstration system for undergraduate physics lab courses.
YBCO device, runs on liquid nitrogen.
This is how electronic circuits are normally prototyped!
Once you validate them like this, the next step is usually to move on to printed circuit boards for more reliable production setups.
Breadboards are a thing of beauty and wonder.
Figure 12. Point-to-point constructions on woden boards. Source. Predecessors to breadboards from where the name came. A thing of beauty, so vintage. You could actually write stuff on those with a pencil!
Video 15. Breadboards - Trash or Treasure? by Keysight (2020) Source.
Bluetooth support: not enough RAM for it, though in principle its chip/transceiver could support it!
Supported editors:
MicroPython web editor and compiler:
Everything in this section is tested on the Micro Bit v1 from Micro Bit v1 unless otherwise noted.
Microbit simulator using some Microsoft framework.
TODO the Python code from there does not seem to run on the microbit via uflash, because it is not MicroPython. asks how to compile locally and suggests it is possible. Seems to require Yotta, so presumably compiles?
Presumably this is because Microsoft ported their MakeCode thing to the MicroBit, and the Micro Bit foundation accepted them.
E.g. there toggling a LED:
led.toggle(0, 0)
but the code that works locally is a completely differently named API set_pixel:
microbit.display.set_pixel(0, 0, )
Microsoft going all in on adopt extend extinguish from an early age!
When plugged into Ubuntu 22.04 via the USB Micro-B the Micro Bit mounts as:
for username ciro.
Loading the program is done by simply copying a .hex binary into the image e.g. with:
cp ~/Downloads/microbit_program.hex /media/$USER/MICROBIT/
The file name does not matter, only the .hex extension.
The back power light flashes while upload is happening.
Flashing takes about 10-15 seconds for the 1.8 MB scroll display hello world from
from microbit import *
display.scroll("Hello, World!")
and the program starts executing immediately after flash ends.
You can restart the program by clicking the reset button near the USB. When you push down the program dies, and it restarts as soon as you release the button.
To use a prebuilt firmware, you can just use uflash, tested on Ubuntu 22.04:
git clone
cd micropython
git checkout 7fc33d13b31a915cbe90dc5d515c6337b5fa1660
uflash examples/
What that does is:
  • convert the MicroPython code to bytecode
  • join it up with a prebuilt firmware that ships with uflash which contains the MicroPython interpreter
  • flashes that
To build your own firmware see:
TODO didn't manage from source Ubuntu 22.04, their setup bitrotted way too fast... it's shameful even. Until I gave up and went for the magic Docker of +, and it bloody worked:
git clone
cd micropython
git checkout 7fc33d13b31a915cbe90dc5d515c6337b5fa1660
docker pull
docker run -v $(pwd):/home --rm yt target bbc-microbit-classic-gcc-nosd@
docker run -v $(pwd):/home --rm make all

# Build one.
tools/ build/firmware.hex examples/ -o build/counter.hex
cp build/counter.hex "/media/$USER/MICROBIT/"

# Build all.
for f in examples/*; do b="$(basename "$f")"; echo $b; tools/ build/firmware.hex "$f" -o "build/${}.hex"; done
The pre-Docker attempts:
sudo add-apt-repository -y ppa:team-gcc-arm-embedded
sudo apt update
sudo apt install gcc-arm-embedded
sudo apt install cmake ninja-build srecord libssl-dev

# Rust required for some Yotta component, OMG.
sudo snap install rustup
rustup default 1.64.0

python3 -m pip install yotta
The line:
sudo add-apt-repository -y ppa:team-gcc-arm-embedded
E: The repository ' jammy Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
and then the update/sudo apt-get install gcc-arm-embedded fails, bibliography:
Attempting to install Yotta:
sudo -H pip3 install yotta
python3 -m pip install --user yotta
was failing with:
Exception: Version mismatch: this is the 'cffi' package version 1.15.1, located in '/tmp/pip-build-env-dinhie_9/overlay/local/lib/python3.10/dist-packages/cffi/'.  When we import the top-level '_cffi_backend' extension module, we get version 1.15.0, located in '/usr/lib/python3/dist-packages/'.  The two versions should be equal; check your installation.
python3 -m pip install --user cffi==1.15.1
did not help. Bibliography:
From a clean virtualenv, it appears to move further, and then fails at:
Building wheel for cmsis-pack-manager (pyproject.toml) ... error
error: [Errno 2] No such file or directory: 'cargo'
So we install Rust and try again, OMG:
sudo snap install rustup
rustup default stable
which at the time of writing was rustc 1.64.0, and then OMG, it worked!! We have the yt command.
However, it is still broken, e.g.:
git clone
cd microbit-samples
git checkout 285f9acfb54fce2381339164b6fe5c1a7ebd39d5
cp source/examples/invaders/* source
yt clean
yt build
blows up:
annot import name 'soft_unicode' from 'markupsafe'
Official support is abysmal, very focused on MicroPython and their graphical UI.
The setup impossible to achieve as it requires setting up the Yotta, just like the impossible to setup Compile MicroPython code for Micro Bit locally on Ubuntu 22.04 with your own firmware setup.
So we just use +
docker pull
git clone
cd microbit-samples
git checkout 285f9acfb54fce2381339164b6fe5c1a7ebd39d5

# Select a sample, builds one at a time. The default one is the hello world.
cp source/examples/hello-world/* source

# Build and flash.
docker run -v $(pwd):/home --rm yotta build
cp build/bbc-microbit-classic-gcc/source/microbit-samples-combined.hex "/media/$USER/MICROBIT/"
.hex file size for the hello world was 447 kB, much better than the MicroPython hello world downloaded from the website which was about 1.8 MB!
If you try it again for a second time from a clean tree, it fails with:
warning: github rate limit for anonymous requests exceeded: you must log in
presumably because after Yotta died it started using GitHub as a registry... sad. When will people learn. Apparently we were at 5000 API calls per hour. But if you don't clean the tree, you will be just fine.
Identification: The easiest thing is perhaps the GPIO notches.
Pinout overview: Basically 0, 1, and 2 are the truly generic ones. They can also serve as ADCs.
In the 2010's/2020's, many people got excited about getting children in to electronics with cheap devboards, notably with Raspberry Pi and Arduino.
While there is some potential in that, Ciro Santilli always felt that this is very difficult to do, while also keeping his sacred principle of backward design in mind.
The reason for this is that "everyone" already has much more powerful computers at hand: their laptops/desktops and even mobile phones as of the 2020s. Except perhaps if you are thing specifically about poor countries.
Therefore, the advantage using such devboards for doing something that could useful must come from either:
  • their low cost. This would be an important consideration if you were to mass produce your product, but that is not going to be the case for learners, at least initially.
  • their portability, and closely linked their ability to act as sensors
  • their ability to act as actuators, which is often missing from regular computers
  • them having hardware accelerators that are not normally present in regular computers, e.g. FPGAs or AI accelerators. And then the demo project must demonstrate that the project is able to do something significantly faster/cheaper on the devboard than on a desktop computer.
Many devborads require a 5V power supply.
This is common on wall transformers and USB, but not in batteries.
For battery power you need a transformer.
Video 16. Raspberry Pi Battery Power by ExplainingComputers (2021) Source.
Many/most microcontroller boards have analog-to-digital converters built into them, it is very convenient. E.g. it is the case for the Raspberry Pi Pico.
Video 17. Open Source 8.5 Digit Voltmeter from CERN by Marco Reps (2021) Source.
When Ciro Santilli was studying electronics at the University of São Paulo, the courses, which were heavily inspired from the USA 50's were obsessed by this one! Thinking about it, it is kind of a cool thing though.
Video 18. Tutorial on LC resonant circuits by w2aew (2012) Source.
Video 19. LC circuit dampened oscillations on an oscilloscope by Queuerious Guy (2014) Source. Finally a video that shows the oscillations without a driving AC source. The dude just move wires around on his breadboard manually, first charging the capacitor and then closing the LC circuit, and is able to see damped oscillations on the oscilloscope.
Video 20. Introduction to LC Oscillators by USAF (1974) Source.
Video 21. LC circuit by Eugene Khutoryansky (2016) Source. Exactly what you would expect from an Eugene Khutoryansky video. The key insight is that the inductor resists to changes in current. So when current is zero, it slows down the current. And when current is high, it tries to keep it going, which recharges the other side of the capacitor.
In the LC circuit:
You can kickstart motion in either of those systems in two ways:
Mostly on vintage electronics. Lots of focus on microwave, which he has worked a lot with.
Has been going wild with restoration and reverse engineering of the Apollo moon mission.
Video 22. Inside the WILD Lab of CuriousMarc by Keysight Labs (2022) Source.
Marc Verdiell is a human electrical engineer best known for being the creator and host of the CuriousMarc YouTube channel.
Marc made $58.4 from the sale of LightLogic, an optoelectronics company he founded, to Intel in 2001:
Figure 13. Marc Verdiell at the Computer History Museum. Source. Location inferred from Marc's videos', but likely, he often frequents the place, and it looks a bit like that.
Video 23. Profile of Marc Verdiell by Gizmodo (2018) Source. gives his house's location Atherton, California, part of Silicon Valley. shows his amazing garden a bit more.
A quick look on Google Maps show that that area is full of some incredible mansions. They managed to keep the entire place green, every house has a pool. Wikipedia comments
Atherton is known for its wealth; in 1990 and 2019, Atherton was ranked as having the highest per capita income among U.S. towns with a population between 2,500 and 9,999, and it is regularly ranked as the most expensive ZIP Code in the United States [(94027)]. The town has very restricting zoning, only permitting one single-family home per acre and no sidewalks. The inhabitants have strongly opposed proposals to permit more housing construction
. and Forbes confirms it for 2022:, by far on top. lists some famous people who live there. It's like a micro heaven.
And a person who makes open educational content like Marc, truly deserves it.
Video 24. Soyuz Clock Part 4: How accurate is it? by CuriousMarc (2020) Source. The timestamp mentions that his wife is called "Laurie", and that she escaped the Soviet Union, and two of her brothers went to jail in the escape process.
This mostly faceless German dude is awesome!


  1. Area of technology
  2. Technology
  3. Ciro Santilli's Homepage