diff --git a/Air-track/Air-track_instructions.md b/Air-track/Air-track_instructions.md
index 9858284..555ad1a 100644
--- a/Air-track/Air-track_instructions.md
+++ b/Air-track/Air-track_instructions.md
@@ -2,6 +2,12 @@
In this paradigm, head-fixed mice perform a visual two-alternative forced choice task. This setup can be adapted to accommodate more sensory modalities by using appropriate equipment.
+
Figure 1: The RP behavioral setup, mounted on the aluminum rails of the air-table using the screen holders.
+
**Step 3**. Assembling of a behavior port ([see Other Hardware, part #3](#hardware3)). Mounting of the infrared emitter ([see Electronics, part #3](#electro3)) and phototransistor ([see Electronics, part #4](#electro4)) to the port was performed following the instructions provided [here](https://sanworks.github.io/Bpod_Wiki/assembly/mouse-behavior-port-assembly/). Each platform included three behavior ports.
@@ -84,10 +92,12 @@ You will find the blueprints for the items you should 3D print [here](3d_designs
**Step 7**. Remove the insulation from the edge of the Ethernet wires. Place 13 female terminals ([see Other Hardware, part #4](#hardware4)) at the end of each wire and cover the exposed terminal with insulation (e.g., heat shrink tube, [see Other Hardware, part #9](#hardware9)). In the following steps, the identification of the Ethernet cable wires is shown in ([Fig. 2](#fig2)).
+
Figure 2: Ethernet cable wire number ids.
+
> :memo: **Note:** You will use the wires 1 (signal of the sensor), 4 (power of the emitter), 5 (ground).
@@ -99,15 +109,16 @@ You will find the blueprints for the items you should 3D print [here](3d_designs
> :memo: **Note:** Power cables and grounds should be short-circuited together to connect to one pin of the Raspberry Pi.
-**Step 9**. Driving of the valves for ports 1 and 2 using the [`EthoPy Controller Board`](ethopy_hardware/Homecage/EthoPy_Controller_Board.md).
+**Step 9**. Driving of the valves for ports 1 and 2 using the [`EthoPy Controller Board`](https://github.com/ef-lab/ethopy_hardware/blob/main/EthoPy_Controller/EthoPy_Controller_Board.md).
**Step 10**. Adjust the reward tubes ([see Other Hardware, part #5](#hardware5), [part #6](#hardware6)) to the behavioral port and connect the valves. Bridge the valves and connect to the water supply ([Fig. 3](#fig3)).
+
Figure 3: Solenoid valve with the positions of the tubes
-
+
**Step 11**. If sound/light insulation is needed, the Air-track behavioral system can be enclosed in the [`Rat-Rig V-Hive Enclosure Base Model`](https://ratrig.dozuki.com/Guide/01.+V-Hive+Enclosure+Base+Model/183?lang=en) ([see Other Hardware, part #7](#hardware7)). For further sound and light insulation, related insulation material (e.g. ISOLFON foam plate, see ([see Other Hardware, part #8](#hardware8))) can be used to cover the sides of the enclosure.
diff --git a/Air-track/figures/Fig.png b/Air-track/figures/Fig.png
new file mode 100644
index 0000000..9e6d190
Binary files /dev/null and b/Air-track/figures/Fig.png differ
diff --git a/EthoPy_Controller/EthoPy_Controller_Board.md b/EthoPy_Controller/EthoPy_Controller_Board.md
index 69bfa76..52d6fa8 100644
--- a/EthoPy_Controller/EthoPy_Controller_Board.md
+++ b/EthoPy_Controller/EthoPy_Controller_Board.md
@@ -1,6 +1,7 @@
# EthoPy Controller Board and Arduino
Arduino is a microcontroller that converts the analog signal from the lick and proximity ports to digital, and a Controller Board ensures the communication between the Arduino and Raspberry Pi.
+
@@ -48,10 +49,12 @@ Arduino is a microcontroller that converts the analog signal from the lick and p
|15 | Printed Circuit Board (PCB) | 1 | Custom | β | |
+
Figure 1: EthoPy Controller Board and Arduino parts
+
> :memo: **Note:** You will also need: a soldering iron, a wire cutter
@@ -59,77 +62,101 @@ Arduino is a microcontroller that converts the analog signal from the lick and p
**Step 1**. Print the PCB board of the schematic ([Fig. 2](#fig2)). PCB and gerder files for JLPCB are available [here]().
+
+
**Step 2**. Solder the 1x15 female pin headers on each side of the Arduino Nano Every board ([Fig. 3](#fig3)).
+
+
**Step 3**. Solder each resistor into its designated position on the PCB according to its resistance value ([Fig. 4](#fig4)).
+
+
**Step 4**. Solder the five 1x2 male pins headers into the corresponding ports on the PCB ([Fig. 5](#fig5)).
+
+
**Step 5**. Solder the transistors onto their correct positions on the board ([Fig. 6](#fig6)).
+
+
**Step 6**. Solder the diodes in the same way ([Fig. 7](#fig7)).
+
+
**Step 7**. Solder the tactile push button switch in the appropriate position on the board ([Fig. 8](#fig8)).
+
+
**Step 8**. Solder the capacitor, ensuring the longer positive lead goes into the right hole ([Fig. 9](#fig9)).
+
+
**Step 9**. Solder the right-angle female pin headers - two on the left side (1x2) for valves and three on the bottom (1x3) for ports and centerport ([Fig. 10](#fig10)).
+
+
**Step 10**. Solder the two 1x15 female pin headers for the Arduino board ([Fig. 11](#fig11)).
+
+
**Step 11**. Mount the Arduino board onto the previously mentioned female pin headers ([Fig. 12](#fig12)).
+
+
**Step 12**. Solder the 40-pin extra-tall stackable female header to connect the PCB to the Raspberry Pi board ([Fig. 13](#fig13)).
+
+
-**Step 13**. Set up the Arduino using the code provided [here]().
+**Step 13**. Set up the Arduino using the code provided [here](https://github.com/ef-lab/ethopy_hardware/blob/main/EthoPy_Controller/EthoPy_Controller_code.ino).
diff --git a/Homecage/Lick_ports_assemply.md b/Homecage/Lick_ports_assemply.md
index d9cb299..c178339 100644
--- a/Homecage/Lick_ports_assemply.md
+++ b/Homecage/Lick_ports_assemply.md
@@ -57,28 +57,34 @@ Lick Ports are used both for lick detection and reward delivery. Regarding the f
- `Pin 3`: collector of the sensor (current flow after light reflection)
- `Pin 4`: emitter of the sensor (connects to the signal output)
+
Figure 1: Positions of the phototransistorβs pins and their corresponding wires.
+
**Step 5**. Use the soldering station to connect the pins vertically to their corresponding wires as described below ([Fig. 2](#fig2)).
**Step 6**. Use a hot air gun to heat the heat shrink tubes you have added to each wire to cover the wire and the phototransistorβs pins.
+
Figure 2: Heat shrink tubes covering the exposed wires and the phototransistorβs pins.
+
**Step 7**. Cut a piece of heat shrink tube (3/16ββ) long enough to cover the exposed cable and the pins of the phototransistor, and pass it down the cable. Ξpply the epoxy glue ([Other Hardware parts list, item #6](#other6)) to the exposed section of the cable and cover it up to the edge. Cover the exposed cable with the heat shrink tube and use the hot air gun to heat it. Ensure that the phototransistorβs pins and the wires are well covered.
Note: As the hot air gun shrinks the tube, ensure that the epoxy glue will not cover the phototransistor.
+
Figure 3: Heat shrink tube covering the phototransistor side of the lick port.
+
**Step 8**. Cut a steel cylinder ([Other Hardware parts list, item #2](#other2)). long enough to cover the heat shrink tube that covers the exposed wires ([Fig. 4](#fig4)). Carefully smooth both edges of the cylinder with sandpaper to ensure the mouse is not injured while licking it.
@@ -87,17 +93,21 @@ Note: As the hot air gun shrinks the tube, ensure that the epoxy glue will not c
> :memo: **Note:** The needle is required only if you will use the lick port for reward delivery.
+
Figure 4: Indicative lengths of the steel cylinder and the needle relative to the lick port.
+
**Step 10**. Pass the phototransistor cable and the needle through the steel cylinder. Apply epoxy glue around the heat shrink tube insulation of the phototransistor ([Fig. 5](#fig5)) and the needle, ensuring that the phototransistorβs and the needleβs tops are not covered with glue. Pull the cable and the needle so that they are on the same level and a few millimeters below the top of the steel cylinder to prevent possible damage. Fill all the empty spaces between the phototransistor and the cylinder with epoxy glue.
+
Figure 8: Connections of the signal cable (P: power, G: ground, S: signal).
+
**Step 14**. Cover the exposed cable and the proximal part of the male pin header with heat shrink tube (1/4ββ or 3/8ββ), and heat it with the hot air gun.
@@ -136,8 +152,10 @@ You will need two resistors:
**Step 17**. Use your finger to simulate the lick of a mouse and observe the activation of the phototransistor ([Fig. 9](#fig9)).
+
Figure 9: Sensor voltage output (left: connections of the power supply and the oscilloscope, right: activation of the phototransistor).
-
\ No newline at end of file
+
+
Figure 1: RP setup (top: 3D printed parts of the RPβs base, bottom: assembled RP base).
+
## π οΈ Step-by-step assemply instructions
@@ -68,17 +69,19 @@ You will find the blueprints for the items you should 3D print [here](ethopy_har
**Step 4**. Add a heatsink ([Other Hardware parts list, item #2](#other2)) on the back of the RP to avoid excessive warming.
-**Step 5**. Plug in the side and the center ([lick](ethopy_hardware/Homecage/Lick_ports_assemply.md) or interruptor) ports, and the valves to the EthoPy Controller Board, to the positions indicated on the board.
+**Step 5**. Plug in the side and the center ([lick](https://github.com/ef-lab/ethopy_hardware/blob/main/Homecage/Lick_ports_assemply.md) or interruptor) ports, and the valves to the EthoPy Controller Board, to the positions indicated on the board.
**Step 6**. Connect the valves to the water supply. Each LEE valve ([Electronics parts list, item #7](#electro7)) has 3 pipe-edges (1) to be connected to the lick port tube, (2) to be connected with the water supply tube, and (3) to be connected with the other valve through a tube and 2 pins to be connected to the board ([Fig. 2, left](#fig1)).
In the RP setup, the upper valve corresponds to the left lick port, and the bottom valve corresponds to the right lick port ([Fig. 2, right](#fig1)).
+
Figure 2: Connections of the solenoid valve (left: positions of the tubes, right: placement of the valves on the RP board).
+
Figure 1: Speaker connected with female-to-female jumper wires
-
+
**Step 2**. Remove the square female heads from the other ends of the wires.
**Step 3**. Solder the ends of two jumper wire (one from each speaker) together along with one small female-to-female jumper wire (after removing its square female head) ([Fig. 2](#fig2)).
+
Figure 2: Soldering ends of two jumper wires
+
**Step 4**. Cut a piece of heat shrink tube long enough to cover the exposed wires ([Fig. 3](#fig3)).
+
Figure 3: Coverd part with heat shrink tube
+
**Step 5**. Use the oscilloscope and connect one end (measuring clip) to one wire of the speaker and the grounding clip to the other wire ([Fig. 5](#fig5)).
+
Figure 5: .....
+
**Step 6**. Connect your speakers to your Raspberry Pi Pinout. First, go to the `EthoPy/Interfaces/RPPorts.py` and look at the `class RPPorts(Interface)`. Here, you see which channel corresponds to the RP GPIO pins based on what you want to connect. So, for **sound** is channel `GPIO 13` ([Fig. 6](#fig6)).
+
Figure 6: Hardware mapping of behavioral sensor ports to GPIO pins
+
Connect one wire of your speaker to `GPIO13` and the other wire to `ground`([Fig. 7](#fig7)).
+
+
+
+
+ Figure 4: MOSFET boards for controlling the valves for the odorants
+
+
- `Lick detector circuit`: The Capacitive sensor board ([Electronics parts list, item #3](#electro3)) consists of five pins: GND for ground, OUT for signal, VDD for power supply (1.8V - 5V), LED and PAD ([Fig. 5](#fig5)). In this case, only four of the pins are required (GND, OUT, VDD, and PAD). To connect the sensor for the lick detection it is important to solder a trimmed and polished 18G needle to the wire that will connect with the PAD pin.
-
+
- `Laser mice`: Connect the laser mice to the two USB ports of the RP (each USB port will be assigned later in EthoPy code (Interfaces/Ball.py) to determine which laser mouse is responsible for decoding which axes)