Forked from HYCAR-Hydro / airGR
Source project has a limited visibility.
V2_00_step_03.rst 11.72 KiB

STEP n°3: MUX board

The multiplexing of the channels is a mechanical multiplexing based on OMRON's manufacturing relays (G5LE-1-VD 12 VDC). Each relay is combined with a ZVN4206A power MOFSET. The raspberry has only 30 GPIOs, which is not enough to activate all the 64 electrodes, which represent 512 GPIOs. We used gpio expender I2C (MCP23017). We have associated these components with an I2C muliplexer of type type TCA9548A from adafruit. This combination allows to go up to 512 GPIOs and up to 128 electrodes. Each card has its own digital address between 0X70 and 0X77. In the following presentation for an Ohmpi 64 electrodes, we will use the addresses 0X70 for channel A, 0X71 for channel B, 0X72 for channel M and 0X73 for channel N. 0X73 for the N channel. 4 MUX board will be needed to multiplex an Ohmpi 64 electrodes.

PART A Assembly of MUX board

Required components

alternate text
1 step_n_3/a/MUX_00.jpg
Mux board pcb
2 step_n_3/a/MUX_01.jpg
Installation of the 150 Kohm resistors
3 step_n_3/a/MUX_02.jpg
Installation of the mosfet ZVN4206A
4 step_n_3/a/MUX_03.jpg
Installation of the diode-1n4007
5 step_n_3/a/MUX_04.jpg
Installation of the relay
6 step_n_3/a/MUX_05.jpg
Instalation of the terminal screw
7 step_n_3/a/MUX_06.jpg
Installation of generic male header
8 step_n_3/a/MUX_07.jpg
Installation of Pin strip (6 pins) and pin strip (16 pins)
9 step_n_3/a/MUX_08.jpg
Installation of DIP Dual In Line Socket 2*14
10 step_n_3/a/MUX_09.jpg
Installation of Adafruit TCA9548A
10 step_n_3/a/MUX_10.jpg
Installation of MCP23017

Note

This step must be duplicated 4 times for every Mux card.

PART B MUX board address

To build an ohmpi it is necessary to have 4 MUX boards, with 4 different addresses. It is therefore necessary to identify each board, by assigning an address, which will be allocated in the Ohmpi code. We present here the addresses selected by default.

For the A electrode board, we suggest addressing it with address 0x70:

1 step_n_3/b/A_0x70.jpg
Mount the jumpers and note the value of the address and the electrode name on the mux board (A).
step_n_3/b/A_0x70-a.jpg
Zoom on the jumper

For the B electrode board, we suggest addressing it with address 0x71:

2 step_n_3/b/B_0x71.jpg
Mount the jumpers and note the value of the address and the electrode name on the mux board (B).
step_n_3/b/B_0x71-a.jpg
Zoom on the jumper

For the N electrode board, we suggest addressing it with address 0x72:

3 step_n_3/b/M_0x72.jpg
Mount the jumpers and note the value of the address and the electrode name on the mux board (B).
step_n_3/b/M_0x72-a.jpg
Zoom on the jumper

For the M electrode board, we suggest addressing it with address 0x73:

4 step_n_3/b/N_0x73.jpg
Mount the jumpers and note the value of the address and the electrode name on the mux board (B).
step_n_3/b/N_0x73-a.jpg
Zoom on the jumper