Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jan 6, 2024
1 parent ba6fbaf commit db9aa79
Show file tree
Hide file tree
Showing 299 changed files with 25,790 additions and 117 deletions.
629 changes: 629 additions & 0 deletions EEA/Firmata_cajal.html

Large diffs are not rendered by default.

489 changes: 489 additions & 0 deletions EEA/TA.html

Large diffs are not rendered by default.

562 changes: 562 additions & 0 deletions EEA/acknowledgements.html

Large diffs are not rendered by default.

510 changes: 510 additions & 0 deletions EEA/circuits.html

Large diffs are not rendered by default.

574 changes: 574 additions & 0 deletions EEA/disclaimer_terms_conditions.html

Large diffs are not rendered by default.

477 changes: 477 additions & 0 deletions EEA/drawingcurrent.html

Large diffs are not rendered by default.

812 changes: 812 additions & 0 deletions EEA/exday1.html

Large diffs are not rendered by default.

906 changes: 906 additions & 0 deletions EEA/exday1TA.html

Large diffs are not rendered by default.

733 changes: 733 additions & 0 deletions EEA/exday1TA_nokit.html

Large diffs are not rendered by default.

734 changes: 734 additions & 0 deletions EEA/exday1_nokit.html

Large diffs are not rendered by default.

766 changes: 766 additions & 0 deletions EEA/exday2.html

Large diffs are not rendered by default.

865 changes: 865 additions & 0 deletions EEA/exday2TA.html

Large diffs are not rendered by default.

634 changes: 634 additions & 0 deletions EEA/exday2TA_nokit.html

Large diffs are not rendered by default.

661 changes: 661 additions & 0 deletions EEA/exday2_nokit.html

Large diffs are not rendered by default.

665 changes: 665 additions & 0 deletions EEA/exday3.html

Large diffs are not rendered by default.

718 changes: 718 additions & 0 deletions EEA/exday3TA.html

Large diffs are not rendered by default.

722 changes: 722 additions & 0 deletions EEA/exday4.html

Large diffs are not rendered by default.

740 changes: 740 additions & 0 deletions EEA/exday4TA.html

Large diffs are not rendered by default.

474 changes: 474 additions & 0 deletions EEA/finaldiffamp.html

Large diffs are not rendered by default.

715 changes: 715 additions & 0 deletions EEA/index.html

Large diffs are not rendered by default.

552 changes: 552 additions & 0 deletions EEA/kitlist.html

Large diffs are not rendered by default.

552 changes: 552 additions & 0 deletions EEA/license.html

Large diffs are not rendered by default.

565 changes: 565 additions & 0 deletions EEA/projects.html

Large diffs are not rendered by default.

507 changes: 507 additions & 0 deletions EEA/safety.html

Large diffs are not rendered by default.

491 changes: 491 additions & 0 deletions EEA/sinewave.html

Large diffs are not rendered by default.

493 changes: 493 additions & 0 deletions EEA/software_requirements.html

Large diffs are not rendered by default.

483 changes: 483 additions & 0 deletions EEA/soldiffamp.html

Large diffs are not rendered by default.

917 changes: 917 additions & 0 deletions EEA/theoryday1.html

Large diffs are not rendered by default.

739 changes: 739 additions & 0 deletions EEA/theoryday2.html

Large diffs are not rendered by default.

738 changes: 738 additions & 0 deletions EEA/theoryday3.html

Large diffs are not rendered by default.

587 changes: 587 additions & 0 deletions EEA/theoryday4.html

Large diffs are not rendered by default.

Binary file added _images/2vs3bitresolution.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/3bitADC.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/ADC_saturation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions _images/Analogdetectbuffered.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/aa_batteries_sim.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/amp_headstage_blink.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/arm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/audio_sweep.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/audiocapture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/audiokeydown.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/audioplayback.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/battery_terminal_spark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/bipolar_power_supply.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/bipolar_sim_solution.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/bipolar_supply_sim.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/black_box_recording_system.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/blink_readout_picoscope.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/board_emg_picoscope.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/board_emg_teensy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/book_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/box_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/breadboard_connectivity.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/cap_charging_picoscope.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/cap_freq_circuits.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/cap_res_parallel_sim.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/cap_voltage_div.png
Binary file added _images/capacitor_charge.png
Binary file added _images/capacitor_membrane.png
Binary file added _images/charging_cap_photo.png
Binary file added _images/charging_cap_schematic.png
Binary file added _images/charging_cap_sim.png
Binary file added _images/charging_cap_sim_solution.png
Binary file added _images/circuit_double_layer_interface.png
Binary file added _images/circuit_electrode_shunt_amp.png
Binary file added _images/circuit_electrode_shunt_capacitance.png
Binary file added _images/circuit_impedance_shunt_capacitance.png
Binary file added _images/circuitday2.png
Binary file added _images/comparator_ladder.png
Binary file added _images/coulombs_law_visual.png
Binary file added _images/day2circuit.png
Binary file added _images/day2withac.png
Binary file added _images/diff_amp.png
Binary file added _images/diff_amp_unbalanced_resistors.png
Binary file added _images/double_layer_interface.png
Binary file added _images/electric_force_field.png
Binary file added _images/electric_potential.png
Binary file added _images/electric_potential_spike.png
Binary file added _images/electrode_eq_circuit.png
Binary file added _images/emg_gain_resistor.png
Binary file added _images/exposed_breadboard.png
Binary file added _images/fritz_bipolar_power_supply.png
Binary file added _images/fritz_emg_picoscope.png
Binary file added _images/fritz_emg_teensy.png
Binary file added _images/fritz_headstage_blink.png
Binary file added _images/fritz_wire_only_blink.png
Binary file added _images/high_pass.png
Binary file added _images/inside_intan.png
Binary file added _images/instr_amp_pinout.png
Binary file added _images/instrumentation_amp_simulator.png
Binary file added _images/ledon.png
Binary file added _images/low_pass.png
Binary file added _images/neg_feedback_voltage_div.png
Binary file added _images/ohmmeter_sim.png
Binary file added _images/ohmmeter_sim_solution.png
Binary file added _images/op-amp-basic.png
Binary file added _images/op_amp_feedback.png
Binary file added _images/op_amp_pinout.png
Binary file added _images/op_amp_spikes_ref.png
Binary file added _images/open_loop_ref.png
Binary file added _images/output_impedance.png
Binary file added _images/point_source_equation.png
Binary file added _images/readout_teensy_voltage_photo.png
Binary file added _images/readout_teensy_voltage_picoscope.png
Binary file added _images/readout_teensy_voltage_schematic.png
Binary file added _images/resistors_amplifier_breadboard.png
Binary file added _images/resistors_parallel_sim.png
Binary file added _images/resistors_series_sim.png
Binary file added _images/shunt_amplifier_voltage_divider.png
Binary file added _images/sim_headstage_added.png
Binary file added _images/sim_reference_electrode.png
Binary file added _images/sinewave_output.png
Binary file added _images/sinewave_teensy_pico.png
Binary file added _images/singular_matrix.png
Binary file added _images/sinwave_sim_solution.png
Binary file added _images/squarewave_sim.png
Binary file added _images/squarewave_sim_solution.png
Binary file added _images/teensy_LC.png
Binary file added _images/teensy_on_board.png
Binary file added _images/three_op_amps.png
Binary file added _images/videowriter.png
Binary file added _images/voltage_div_breadboard_photo.png
Binary file added _images/voltage_div_breadboard_schematic.png
Binary file added _images/voltage_divider.png
Binary file added _images/voltage_divider_sim_solution.png
Binary file added _images/voltage_divider_spike_solution.png
Binary file added _images/voltage_divider_teensy.png
Binary file added _images/voltmeter_sim.png
Binary file added _images/voltmeter_sim_solution.png
Binary file added _images/wire_only_blink.png
83 changes: 83 additions & 0 deletions _sources/EEA/Firmata_cajal.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
.. _Firmata:

***********************************
Firmata for Cajal Course
***********************************

// Copy this text to a new sketch in the Arduino software (clear the default 'void loop etc first) and save as firmata_cajal.ino. Compile and upload to your Teensy.

.. code-block::
#include <Firmata.h>
byte analogPin;
byte previousPIN[TOTAL_PORTS]; // PIN means PORT for input
byte previousPORT[TOTAL_PORTS];
void outputPort(byte portNumber, byte portValue)
{
// only send the data when it changes, otherwise you get too many messages!
if (previousPIN[portNumber] != portValue) {
Firmata.sendDigitalPort(portNumber, portValue);
previousPIN[portNumber] = portValue;
}
}
void setPinModeCallback(byte pin, int mode) {
if (IS_PIN_DIGITAL(pin)) {
pinMode(PIN_TO_DIGITAL(pin), mode);
}
}
void analogWriteCallback(byte pin, int value)
{
pinMode(pin, OUTPUT);
analogWrite(pin, value);
}
void digitalWriteCallback(byte port, int value)
{
byte i;
byte currentPinValue, previousPinValue;
if (port < TOTAL_PORTS && value != previousPORT[port]) {
for (i = 0; i < 8; i++) {
currentPinValue = (byte) value & (1 << i);
previousPinValue = previousPORT[port] & (1 << i);
if (currentPinValue != previousPinValue) {
digitalWrite(i + (port * 8), currentPinValue);
}
}
previousPORT[port] = value;
}
}
void setup()
{
Firmata.setFirmwareVersion(FIRMATA_MAJOR_VERSION, FIRMATA_MINOR_VERSION);
Firmata.attach(ANALOG_MESSAGE, analogWriteCallback);
Firmata.attach(DIGITAL_MESSAGE, digitalWriteCallback);
Firmata.attach(SET_PIN_MODE, setPinModeCallback);
Firmata.begin();
delayMicroseconds(1000);
}
void loop()
{
while (Firmata.available()) {
Firmata.processInput();
}
delayMicroseconds(500);
for (analogPin = 0; analogPin < TOTAL_ANALOG_PINS; analogPin++) {
Firmata.sendAnalog(analogPin, analogRead(analogPin));
}
byte i;
for (i = 0; i < TOTAL_PORTS; i++) {
outputPort(i, readPort(i, 0xff));
}
while (Firmata.available()) {
Firmata.processInput();
}
}
23 changes: 23 additions & 0 deletions _sources/EEA/TA.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
******************************************
TA files
******************************************

.. toctree::
:maxdepth:

exday1TA.rst
exday2TA.rst
exday3TA.rst
exday4TA.rst


Exercises for teaching assistants
###########################################

:ref:`Exercises day 1 TA <refEDay1TA>`

:ref:`Exercises day 2 TA <refEDay2TA>`

:ref:`Exercises day 3 TA <refEDay3TA>`

:ref:`Exercises day 4 TA <refEDay4TA>`
25 changes: 25 additions & 0 deletions _sources/EEA/acknowledgements.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Acknowledgements
###################################

These materials were written by:

* Alexandra Leighton
* Joana Neto
* Jakob Voigts
* Aarón Cuevas López

With material from:

* Joana Neto, 2018; Materials and neuroscience: validating tools for large-scale, high-density neural recording, 2018.
* Jon Newman and Jakob Voigts, 2017; Intro to Chronic Ephys (presentation at `TENSS <https://www.tenss.ro/>`_)
* Mitra Javadzadeh, 2017; Building an analog ephys recording system (practical exercises developed for `TENSS <https://www.tenss.ro/>`_)
* Circuit Simulator version 2.4.6js. Original by Paul Falstad, JavaScript conversion by Iain Sharp
* Breadboard circuit illustration made in Fritzing

With thoughtful feedback from:

* Antonin Blot
* Filipe Carvalho
* Jon Newman
* Cecilia Herbert
52 changes: 52 additions & 0 deletions _sources/EEA/circuits.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
Circuits


circuit for electrode only with these values:
https://tinyurl.com/yh7unqml

- Gold plating does what to impedance?
- 'Gold-plate' your electrode in the equivalent circuit by changing the appropriate component by a factor of 10. What happens to Vin?
-


demo with op amp: WIP

https://tinyurl.com/ye7nc2ny




with recording pc
https://tinyurl.com/yzf5rjff



electrode, headstage, leakage and shunt
https://tinyurl.com/ygco6nqv



measurement electrode, reference electrode, instrumentation amp
https://tinyurl.com/yfsns7zj




The equivalent circuit of the acquisition system
###################################################

circuit for electrode only with these values:
https://tinyurl.com/yh7unqml

- Gold plating does what to impedance?
- 'Gold-plate' your electrode in the equivalent circuit by changing the appropriate component by a factor of 10. What happens to Vin?
-

with recording pc
https://tinyurl.com/yzf5rjff

electrode, headstage, leakage and shunt
https://tinyurl.com/ygco6nqv

measurement electrode, reference electrode, instrumentation amp
https://tinyurl.com/yfsns7zj
15 changes: 15 additions & 0 deletions _sources/EEA/disclaimer_terms_conditions.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
***********************************
Terms and Conditions
***********************************

Disclaimer
###################################
The authors assume no responsibility or liability for any errors or omissions in the content of this site. The information contained in this site is provided on an "as is" basis with no guarantees of completeness and/or accuracy.

Use at your own risk
###################################
These materials are provided for educational use. Any action you take upon the documentation on this website is strictly at your own risk.

Links To Other Sites
###################################
These pages contain links that will redirect you to third party websites that are not operated by us and that we do not take responsibility for.
12 changes: 12 additions & 0 deletions _sources/EEA/drawingcurrent.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

Why drawing current distorts signals
*****************************************
A perfect 5V voltage source would always provide exactly 5 Volts, no matter what the rest of the circuit looks like. If we put a lot of high impedance components in the rest of the circuit, less current will flow, and if we put low impedance components we will get a high current.

A real voltage source has a bit of output impedance, which means it acts as a voltage source in series with an impedance. This is modelled here:

https://tinyurl.com/yfvzdxbz

That invisible, small series resistance creates a voltage divider. Though the actual source voltage is the same 5V, the apparent voltage of the source varies depending on the ratio between the output impedance of the source, and the impedance of the rest of the circuit. The lower the impedance of the components used in the rest of the circuit, the higher the relative influence of the source output impedance, and the lower the apparent source voltage.

In our acquisition system, the voltage source are the potential changes in the extracellular fluid (Vec). The resistive and capacitive properties of the electrode create an output resistance. The relative impedance of the circuit before and after Vin influence the magnitude of the signal at Vin. If we allow a lot of current to flow from our electrode to ground, we have a low impedance circuit, and will distort our signal. We therefore need something that will stop current being drawn from our cells, and provide the necessary current itself from a different source. This is done by amplifiers, in the headstage.
Loading

0 comments on commit db9aa79

Please sign in to comment.