Excel PID Drone Simulation (.xlsx)
NetLogo Simulations
Google Docs version (lame)
Later Today
Automatic machines can be controlled to do what humans want by minimizing error through feedback.
machine
automatic
control
feedback
cybernetics
A machine is "(1): an instrument (such as a lever) designed to transmit or modify the application of power, force, or motion
(2): an assemblage of parts that transmit forces, motion, and energy one to another in a predetermined manner"
An automatic machine is one that, once turned on, operates without human intervention.
Regulation of a system to achieve desired performance.
control that does not have access to feedback.
control that does have access to feedback.
Evaluative information about a process that is available to a controller of that process
the science of automatic control systems in both machines and living things
closed loop
open loop
Previous
See also: Lucas, Jim. 2018. "6 Simple Machines: Making Work Easier"
SMORE. "Work, energy, and simple machines"
transferring a force from one place to another,
changing the direction of a force,
increasing the magnitude of a force, or
increasing the distance or speed of a force.
αὐτόματον, automaton, "acting of one's own will." First used by Homer to describe an automatic door.
Automaton clock in Gloucester, United Kingdom
Henri Maillardet automaton, London, c1810 - Franklin Institute
These things were "AUTOMATIC" in that humans supplied the energy or the power but the device could carry out the sequence of activities "on its own."
from Kubernetes (κυβερνήτης, Greek for "governor", "helmsman" or "captain" or "steerer"; becomes gubernet- in Latin)
Earliest usages were more social than technical: governance of society
Actuator: generates force
Mechanism: transmit and focus force
Sensor: detects states
Controller: Compares sensor output to
goal and adjusts actuator
Actuator: ?
Mechanism: ?
Sensor: ?
Controller: ?
button
switch
heater
temperature
sensor
at 100c
throw switch
V. Ryan (no relation) aka
This produces an up and down motion of the grey part which is called the "follower."
V. Ryan (no relation) aka
Differently shaped cams yield different patterns of motion
Wikipedia says the camshaft was first described in 1206 by Arab engineer Al-Jazari. He employed it as part of his automata, water-raising machines, and water clocks such as the castle clock.
CLOSE ENOUGH?
TOO FAST?
TOO SLOW?
SLOW DOWN
SPEED UP
GO
But where do these diamonds get the information they need to decide?
17th century
Credited to Christiaan Huygens,
adapted by James Watt 1788.
Concept: balls spin under steam pressure; faster pressure, faster spin; faster spin, pull arms down; arm motion opens pressure release; pressure decrease leads to speed decrease and valve closes
17th century
Credited to Christiaan Huygens,
adapted by James Watt 1788.
Concept: balls spin under steam pressure; faster pressure, faster spin; faster spin, pull arms down; arm motion opens pressure release; pressure decrease leads to speed decrease and valve closes
steam
steam
TOO FAST?
TOO SLOW?
SLOW DOWN
SPEED UP
GO
SENSORS!
One horse runs. Others say "chill out, Max."
Two horses run. Others say, "Dudes, relax."
Three horses run. Nearby others say, "Hey, something happening?" And speed up a bit.
Others see change. Start hurrying
More horses perceive the change and pick up the pace...
Reinforcing
Loop
INPUT
OUTPUT
something about A has an effect on B
something about B has an effect on A
something about A has an effect on B
something about B has an effect on A
the more B panics, the more A panics
the more A panics, the more B panics
Positive Causal Relationship: the more A, the more B OR
the less A the less B
Negative Causal Relationship: the more A, the less B OR
the less A the more B
more hot → higher actual
higher actual → bigger gap
bigger gap → less hotter
Each measurable cause/effect is represented by a word or phrase
Arrows point from causes to effects
Arrows are labeled + or - to indicate positive or negative (inverse) causal relationships.
population
births
deaths
We might start out too cold,
add warm, still be a bit cold,
TIME
GAP
TIME
GAP
We might start out too cold,
add more warm, getting close,
just a bit more warm, ahhh, just right.
Add warm, still be a bit cold,
add more warm, now we are a bit too warm,
turn back the warm a bit, ahhh, just right.
TIME
Horses Running
Horses Running
TIME
TIME
GAP
Reinforcing
Loop
This is a positive feedback loop. AKA a "reinforcing" (R) loop. R loops always have an even number of minus signs.
Balancing
Loop
Reinforcing
Loop
This is a positive feedback loop. AKA a "reinforcing" (R) loop. R loops always have an even number of minus signs.
Balancing
Loop
This is a negative feedback loop. AKA a "balancing" (B) loop. B loops always have an odd number of minus signs.
The more open the throttle,
the faster the machine.
The faster the machine,
the higher the rotational frequency.
The higher the rotational frequency,
the higher the angle.
The higher the angle,
the less open the throttle.
The less open the throttle,
the slower the machine.
"When A grows, B grows"
A
B
Linked Causes and Effects
"A influences B"
A
B
A
B
"When A grows, B shrinks"
Hungry
Eating
"The hungrier I am, the more I eat.
The more I eat, the less hungry I am."
Things Go Well
Confidence
"When things go well, I get over confident and start to cut corners. Things start slipping and I get careful and then things go better."
Cut Corners
causal loop for insulin/glucagon
https://storage.googleapis.com/ltkcms.appspot.com/fs/yd/images/cover/negative-feedback-loop.base?v=1587496185
Amplifier
amplifies
sound from
microphone.
Sound comes
out of speaker
and goes into
microphone.
If amplifier affects higher
pitched sounds more then higher pitch amplification outpaces
lower pitches and we hear screeeeeeeeeeech.
https://www.joboneforhumanity.org/
R loops produce unconstrained growth in a system.
In open-loop automation the control of the process is independent of the output.
In closed loop automation, the control of the process depends on feedback based on the output of the process.
SET TEMPERATURE
THERMOMETER
SWITCH
But HOW are these causally related?
HOW does the "system" behave?
balancing loop
This is a negative feedback loop. AKA a "balancing" (B) loop. B loops always have an odd number of minus signs.
TIME
TEMP
SET TEMP
ACTUAL TEMP
GAP
Furnace switches off but some heat continues to flow
Furnace ON
B loops produce systems that oscillate or settle down.
Next
Expert helmspersons pay attention to what's going on, how things are changing, and where things have been so far.
How far off the target am I at the moment?
Is my error increasing or decreasing?
How well or how badly have I been doing overall?
PRESENT
PAST
FUTURE
Proportion = what is the current error?
Derivative = how is error changing?
Integral = how much error has accumulated?
PAST
FUTURE
PRESENT
https://youtu.be/wkfEZmsQqiA