Ephys & Behaviour
TENSS 2025, Day 1, version 2
Learning goals (1)
By Dhp1080, svg adaptation by Actam - Image:Neuron.svg, CC BY-SA 3.0, https://commons.wikimedia.org/w/index.php?curid=4293768
How is the extracellular potential affected by neuronal activity?
How can we record these potential changes?
How do we get single neurons from these recordings?
What we want to understand
Electronics
FROM RESISTOR TO SPIKE
Brains are boring
Brains are boring until you give them a body
Learning goals (2)
How can we measure behaviour and perform closed loop experiments?
Building a recording setup
Building a recording setup
https://www.kiddiwinks.co.za/news/2016/09/7-benefits-of-lego-play-for-kids-and-adults/
Recording
software
Sensor
Actuator
OpenEphys board
Figure in the Paper
Figure in the Paper Reality
Real life is messy
Fearless creativity, duck tape and a bit of solder can go a long way
Let’s try to make something that works somehow
FROM RESISTOR TO SPIKE
BEHAVIOUR
Learning goals (3)
How to synchronise the data streams we acquired?
How do we go from data to figure (a.k.a minimal data analysis)?
https://www.cleanpng.com/
What will we analyse?
FROM RESISTOR TO SPIKE
ANALYSIS
BEHAVIOUR
What is electricity?
The bunch of stuff that happens when a
kind of thing moves around
Charge, q
The net charge of an isolated system is constant
Proton: +e
Electron: -e
Coulomb's inverse-square law
Gravity vs. electric forces
Voltage: potential difference
+
+
Voltage: potential difference
+
q
q
Hydraulic analogy: voltage
Voltage is a difference in electrical potential.
It is measured between two distinct points.
Analog to water pressure in a pipe.
A single point has no measurable voltage.
gemini
High potential
Low potential
Intermediate potential
High voltage
Low voltage
Current: charge in motion
Current (I): how much charge (Q) moves through a given area in time t
Units: Amperes (Amps) = Coulomb / sec
What factors will influence I?
Hydraulic analogy: current
Hydraulic
Electrical
Current: charge in motion
Current (I): how much charge (Q) moves through a given area in time t
What factors will influence I?
Current paths
~50kV
Current paths
~50kV
R
R
R
R
R
R
Hydraulic analogy: resistance
Hydraulic
Constriction or blockage in pipe
Electrical
Impurities and thermal motion that disturb the flow of charged particles
Resistance
Resistivity
Resistivity
Resistivity
Silicon
Copper
ρ = 2.3×103 Ω⋅m
ρ = 1.7×10-8 Ω⋅m
11 orders of magnitude
Hydraulic analogy: resistivity
Hydraulic
Density of mesh in pipe
Electrical
(1 / mobility) of charge carriers
Wire
Wire
Resistor
Current depends on voltage and resistance
Conservation of charge
Voltage�(10 V)
Resistor�(10 Ohms)
I
I
What happens it you replace the resistor with a wire?
Circuit
Ground
Cu
I
I
Cu
Hydraulic analogy: ground
Hydraulic
Electrical
+
0
-
+
0
-
Charge is conserved (“Kirchhoff's Current Law”)
Energy is conserved (“Kirchhoff's Voltage Law”)
Voltage Divider
Resistor circuit
Resistor circuit
Resistor circuit
Resistor circuit
Resistor circuit
Resistor circuit
Potentiometer
Vout
“Wiper”
Voltage divider
Voltage divider
Voltage divider
Voltage divider
Voltage divider
The recording arc
What is an electrode?
What is an electrode?
What is an electrode?
Electric fields �and Ohm’s Law
Jon Newman
�TENSS 2024
ECG - Electrocardiogram
EMG - Electromyogram
EEG - Electroencephalogram
LFP - Local field potential
Spike or “Unit” Recordings
Electrical recordings
V
time
Electric Fields
Charge, q
The net charge of an isolated system is constant
Proton: +e
Electron: -e
Coulomb's inverse-square law
Gravity vs. electric forces
Electric force
Object with charge
Test charge, q0
Calculate force using inverse square law and plot arrow
Divide by q0 to get field value (why?)
+q
Electric field
Object with charge
Test charge, q0
Repeat for every position around the charge
+q
Electric potential
Object with charge
Test charge, q0
What is the work done on the particle by the field when it comes from infinitely far away?
+q
Electric potential field
Object with charge
Test charge, q0
Repeat for all positions in space
+q
Voltage
Object with charge
Test charge, q0
How much work is done on test charge when it moves between positions in space�
Path does not matter (conservative force, no integral required!)
Unit: Volts (V) = Joules / Coulomb
+q
Voltage
Object with charge
Test charge, q0
How much work is done on test charge when it moves between positions in space�
Which has a larger voltage difference?
+q
Voltage
Object with charge
Test charge, q0
How much work is done on test charge when it moves between positions in space�
Which has a larger voltage difference?
+q
Voltage
Object with charge
Test charge, q0
How much work is done on test charge when it moves between positions in space�
Which has a larger voltage difference?
+q
Aside: Electron-Volt, eV
eV: The measure of an amount of kinetic energy gained by a single electron accelerating through an electric potential difference of one volt in vacuum
1 eV = 1.602176634×10−19 J
Aside: Electron-Volt, eV
eV: The measure of an amount of kinetic energy gained by a single electron accelerating through an electric potential difference of one volt in vacuum
1 eV = 1.602176634×10−19 J
House Fly
Aside: Electron-Volt, eV
eV: The measure of an amount of kinetic energy gained by a single electron accelerating through an electric potential difference of one volt in vacuum
1 eV = 1.602176634×10−19 J
House Fly
LHC
Image: https://www.warrenphotographic.co.uk/03911-houseflies-in-flight
Superposition
Two charged objects
Superposition
Two charged objects
�Vector addition of fields
Superposition
Two charged objects
�Vector addition of fields
�Take gradient of combined field
Superposition: making a voltage source
Superposition: making a voltage source
Superposition: making a voltage source
Field inside conductor
Perfect conductors
Gravity vs. electric forces
| Gravity | Electric force |
Property of Interest | Mass | Charge (+/-) |
Force Law | Inverse square | Inverse square |
Direction | Attraction | Repulsion or attraction |
Conservative | Yes | Yes |
Linear (superposition) | Yes | Yes |
Gravity vs. electric forces
Ohm’s Law
Current: charge in motion
Current (I): how much charge (Q) moves through a given area in time t
Units: Amperes (Amps) = Coulomb / sec
What factors will influence I?
Current: charge in motion
Current (I): how much charge (Q) moves through a given area in time t
What factors will influence I?
Current: charge in motion
Current (I): how much charge (Q) moves through a given area in time t
What factors will influence I?
Current paths
~50kV
Current paths
~50kV
R
R
R
R
R
R
Resistance
Resistivity
Resistivity
Resistivity
Silicon
Copper
ρ = 2.3×103 Ω⋅m
ρ = 1.7×10-8 Ω⋅m
11 orders of magnitude
Current depends on voltage and resistance
Conservation of charge
Voltage�(10 V)
Resistor�(10 Ohms)
I
I
Circuit
Ground
Cu
I
I
Cu
Charge is conserved (“Kirchhoff's Current Law”)
Energy is conserved (“Kirchhoff's Voltage Law”)
Hydraulic Analogies
Hydraulic analogy: current
Hydraulic
Electrical
Hydraulic analogy: voltage
Hydraulic
Electrical
High potential energy compared to �sea level
+9V compared to the other terminal
Hydraulic analogy: ground
Hydraulic
Electrical
+
0
-
+
0
-
Hydraulic analogy: resistance
Hydraulic
Constriction or blockage in pipe
Electrical
Impurities and thermal motion that disturb the flow of charged particles
Hydraulic analogy: resistivity
Hydraulic
Density of mesh in pipe
Electrical
(1 / mobility) of charge carriers
Voltage Divider
Resistor circuit
Resistor circuit
Resistor circuit
Resistor circuit
Resistor circuit
Resistor circuit
Potentiometer
Vout
“Wiper”
Voltage divider
Voltage divider
Voltage divider
Voltage divider
Voltage divider
What is an electrode?
What is an electrode?
What is an electrode?
Questions
Parallel Resistors
Intuitive origins of inverse-square law
Newton’s universal law of gravitation
Gravitational Field
Object with mass M
Test mass, m = 1
Gravitational force field
M
M
Gravitational Potential
Object with mass M
Test mass, m = 1
How much work is done on test mass when it moves between positions in space�
Path does not matter (conservative force)
M
M
M
Φ1
Φ2
Superposition
To find the combined field, add the fields produced by each mass