Warning
OhmPi is a participative project open to all, it requires skills in electronics and to respect the safety rules. OhmPi must be assembled in a professional context and by people competent in electronics. The OhmPi team cannot be held responsible for any material or human damage which would be associated with the use or the assembly of OHMPI. The OhmPi team cannot be held responsible if the equipment does not work after assembly.
MUX board v2024
The MUX board v2024 uses the same technology than the MUX board v2023, i.e. mechanical multiplexing. However it introduces a new level of flexibility by addressing multiple roles (A, B, M, N), which allows to build OhmPi system with multiple of 8 electrodes. Users can physically configure the MUX board to address 2 roles (A, B or M, N) or 4 roles (A, B, M, N). With only 32 relays, it can address 16 or 8 electrodes, for the 2- and 4-role configuration respectively. Given the reduced number of relays, the MUX board v2024 is interfaced with only two MCP23017 I/O expanders. This means that up to 4 MUX boards v2024 (i.e. 32-electrode system) can be directly connected to a measurement board v2024. A newly introduced I2C extension board (featuring a TCA9548A multiplexer) allows to connect up to 32 MUX board v2024, equating to a 256-electrode system. In theory, up to 8 I2C extension boards can be connected to the measurement board, which would allow to pilot 2048 electrodes. For obvious practical reasons, such a configuration couldn’t be tested and is likely to be limited by the I2C bus being phisically too long, which would prevent to reach so many GPIOs. The MUX board v2024 also comes with both IDC connectors and screw connectors for the electrode takeouts, which allows to directly connect the electrode arrays to the board. In an effort to mitigate supply shortages, a last addition concerns the power mosfet associated with the relays, with the possibility to mount two types of components depending on market availability: either ZVN4206A or STP16NF06L.
Here, we will present how to assemble and configure a 32-electrode system, based on 4 MUX-board v2024 set up to address 2 roles / 16 electrodes each.
Assemble
Required components
Component |
Quantity |
Cost per unit |
Mouser ref |
Manufacturer |
Manufacturer reference |
Description |
Web link |
Costs (w. STP16NF06) |
Costs (w. ZVN06A) |
---|---|---|---|---|---|---|---|---|---|
Printed circuit board |
1 |
1 PCB but often sold by 3 |
|||||||
100nF |
2 |
0.22 |
80-C320C104K1R-TR |
KEMET |
C320C104K1R5TA7303 |
Unpolarized capacitor |
https://www.mouser.be/ProductDetail/KEMET/C320C104K1R5TA7303?qs=c4UyoTs%2FLq1th4mcyOeTmA%3D%3D |
0.44 |
0.44 |
10uF |
2 |
0.24 |
667-ECA-1JHG100B |
Panasonic |
ECA-1JHG100B |
Polarized capacitor |
0.48 |
0.48 |
|
1N_E4007 |
32 |
0.13 |
621-1N4007 |
Diodes Incorporated |
1N4007-T |
1000V 1A General Purpose Rectifier Diode, DO-41 |
https://eu.mouser.com/ProductDetail/Diodes-Incorporated/1N4007-T?qs=e%2FRqmsgwm9iVtgJYUW23AA%3D%3D |
4.16 |
4.16 |
Relays Pwr |
1 |
0.55 |
571-2828372 |
TE Connectivity |
282837 |
Generic screw terminal, single row, 01x02 |
https://eu.mouser.com/ProductDetail/TE-Connectivity/282837-2?qs=A%252Bip%252BNCYi6O2H0NGWOeAxg%3D%3D |
0.55 |
0.55 |
6 pos. 2 rows IDC connector |
1 |
0.44 |
710-61200621621 |
Wurth Elektronik |
61200621621 |
Generic connector, double row, 02x03, odd/even pin numbering scheme (row 1 odd numbers, row 2 even numbers) |
https://eu.mouser.com/ProductDetail/Wurth-Elektronik/61200621621?qs=PhR8RmCirEbjX8n1RKw4Jw%3D%3D |
0.44 |
0.44 |
6 pos. 2 rows. IDC sockets (go on the ribon cable) |
1 |
0.43 |
710-61200623021 |
61200623021 |
Wurth Elektronik |
Headers & Wire Housings WR-BHD 2.54mm Female 6P Strt IDC Conn |
https://eu.mouser.com/ProductDetail/Wurth-Elektronik/61200623021?qs=PhR8RmCirEabk1Ywkdxzfw%3D%3D |
0.43 |
0.43 |
Screw Terminals (2* 2P + 8*2P) |
10 |
0.55 |
571-2828372 |
TE Connectivity |
282837-2 |
Generic screw terminal |
https://eu.mouser.com/ProductDetail/TE-Connectivity/282837-2?qs=A%252Bip%252BNCYi6O2H0NGWOeAxg%3D%3D |
1.10 |
1.10 |
16 pos. 2 rows IDC connector |
1 |
0.58 |
710-61201621621 |
Wurth Elektronik |
61201621621 |
Generic connector, double row, 02x08, odd/even pin numbering scheme (row 1 odd numbers, row 2 even numbers) |
https://eu.mouser.com/ProductDetail/Wurth-Elektronik/61201621621?qs=ZtY9WdtwX55qFf4n3EFuaA%3D%3D |
0.58 |
0.58 |
16 pos. 2 rows IDC socket |
1 |
0.73 |
710-61201623021 |
Wurth Elektronik |
61201623021 |
Generic double row IDC socket |
https://eu.mouser.com/ProductDetail/Wurth-Elektronik/61201623021?qs=ZtY9WdtwX57DLOr1z4RBOw%3D%3D |
0.73 |
0.73 |
3-pin header |
2 |
0.17 |
571-4-103321-5 |
TE Connectivity |
4-103321-5 |
Jumper, 3-pole, both open |
https://eu.mouser.com/ProductDetail/TE-Connectivity/4-103321-5?qs=5TwgZeq9E7HSYLqaljJYrw%3D%3D |
0.34 |
0.34 |
G5LE-1A DC12 |
32 |
1.18 |
653-G5LE-1ADC12 |
Omron Electronics |
G5LE-1A DC12 |
Omron G5LE relay, Miniature Single Pole, SPDT, 10A |
37.76 |
37.76 |
|
STP16NF06 |
32 |
1.08 |
511-STP16NF06 |
STMicroelectronics |
STP16NF06 |
30A Id, 50V Vds, N-Channel Power MOSFET, TO-220 |
https://eu.mouser.com/ProductDetail/STMicroelectronics/STP16NF06?qs=FOlmdCx%252BAA3QgI0ylnH1gA%3D%3D |
34.56 |
|
ZVN4206A |
32 |
0.60 |
522-ZVN4206AVSTZ |
Diodes Incorporated |
ZVN4206AVSTZ |
30A Id, 50V Vds, N-Channel Power MOSFET, TO-220 |
19.20 |
||
100k |
34 |
0.10 |
594-5063JD100K0FT |
Vishay / Beyschlag |
MBA02040C1003FRP00 |
Resistor |
3.40 |
3.40 |
|
MCP23017_SP |
2 |
1.53 |
579-MCP23017-E/SP |
Microchip Technology |
MCP23017-E/SP |
16-bit I/O expander, I2C, interrupts, w pull-ups, SPDIP-28 |
3.06 |
3.06 |
|
2-way jumper |
2 |
0.30 |
571-1-881545-2 |
TE Connectivity |
1-881545-2 |
https://eu.mouser.com/ProductDetail/TE-Connectivity/1-881545-2?qs=G55MHhPmvtILJr8pg2%2FD4w%3D%3D |
0.60 |
0.60 |
|
28-way socket |
2 |
2.36 |
575-199328 |
Mill-Max |
110-99-328-41-001000 |
2.54mm Pitch Vertical 28 Way, Through Hole Turned Pin IC Dip Socket, 3A |
https://eu.mouser.com/ProductDetail/Mill-Max/110-99-328-41-001000?qs=WZeyYeqMOWemzbFrcrSBJg%3D%3D |
4.72 |
4.72 |
BKL Electronic 10120158/10 Ribbon cable Contact spacing: 1.27 mm 16 x 0.08 mm Multi-coloured 10 m |
1 |
BLK electronic |
10120158/10 |
27.00 |
27.00 |
||||
TOTAL |
120.36 |
105.00 |
Mounting components on PCB board
MUX board v2024 PCB (mux.2024.0.0).
1 |
Mount the diodes.
2 |
Mount the 100 kOhm resistors.
3 |
Mount the mosfets. You can chose between ZVN4206A or STP16NF06L.
Warning
In the PCB v2024.0.1, the white footprint of the ZVN4206A is upside-down. Please double check that the “drain” pint of the ZVN goes to the relay and the “source” pin goes to the ground. In doubt, refer to the ZVN datasheet. The white footprint on the PCB is corrected in v2024.0.2.
4 |
Mount the MCP23017 sockets and the capacitors.
5 |
Mount the screw connectors and the IDC connectors. Note that if a board is dedicated to be configured in 2-role mode, the electrode takeouts can be mounted with 8 screw connectors only (on electrodes 1-8) and potentially a 8 position IDC connector for the IDC takeout.
6 |
Mount the relays.
7 |
Defining role configuration
The MUX board v2024 can be configured in 2- or 4-role mode. This means that one board can either address 16 electrodes on 2 roles (X,Y for A,B or M,N), or 8 electrodes on 4 roles (labelled X,Y,XX,YY for A,B,M,N). An OhmPi system can manage a combination of 2-role and 4-role MUX boards as long as the 2-role boards come in pairs (e.g. 2 2-role MUX and 1 4-role MUX for 24 electrodes).
2-role configuration
This configuration is the prefered way to build systems with an even number of MUX boards (for 16, 32, 48 electrodes). However, when assembling an OhmPi, keep in mind that 2-role mode MUX boards have to come in pairs.
To enable the 2-role mode, 2 “roles” solder jumpers have to be bridged in the front side of the PCB next to the roles connector. To do so, the two jumper pads of each bridge have to be soldered together. This will connect roles X and roles XX together, as well as roles Y and YY together. In this way, the board is configure in 2-role mode. You can verify that the pair of roles X - XX and Y - YY are well connected by doing continuity checks with a digital voltmeter.
Warning
Make sure that the 8 “electrodes” solder jumpers at the back of the PCB are NOT bridged to avoid risks of shortcuts !
4-role configuration
Configuring a board in 4-role mode enables to use an odd number of MUX board (for systems with 8, 24, 40, 56,… electrodes). To do so, the 8 “electrodes” solder jumpers at the back of the PCB have to be bridged. In this way relays of electrodes relays of the following electrodes are paired together (albeit on different roles A, B, M and N): 1-16, 2-15, 3-14, 4-13, 5-12, 6-11, 7-10, 8-9. You can verify that these combinations are connected together by continuity checks with a digital voltmeter. It is best practice to only mount 8 screw connectors on the electrodes takeouts (and potentially only a 8 position IDC connector) to avoid confusion when cabling the system.
Warning
Make sure that the two “roles” solder jumpers at the front remain NOT bridged to avoid risks of shortcuts !
MUX board addresses
Each MUX board v2024 comes with 2 I/O expanders MCP23017, addressing 16 relays each. They expose a pair of two I2C addresses on the I2C bus in the range 0x20 - 0x27. Two 2-way jumpers placed on the 3-pin headers next to the IDC connector at the bottom of the board allow to shift the addesses two by two. There is 4 possible combinations for the jumpers which give the following addresses:
Jumper position
Addr1
|
Jumper position
Addr2
|
I2C
addresses
|
Up |
Up |
0x20 - 0x21 |
Down |
Up |
0x22 - 0x23 |
Up |
Down |
0x24 - 0x25 |
Down |
Down |
0x26 - 0x27 |
The jumper positions of each (‘up’ or ‘down’ have to be carefully filled in the configuration file). One can check the I2C addresses visible on the I2C bus by typing the following command on the Raspberry Pi terminal, assuming that the MUX boards are powered and correctly connected to the measurement board:
i2cdetect -y 4
Replace “-y 4” by “-y 1” if the MUX is plugged on the “board” IDC connector, or if plugged in to a mb.2023.0.X board.
2-role vs 4 role
The cabling of several MUX boards v2024 within an OhmPi system is entirely dependent on the role configuration of each board.
2-role MUX boards have to come in pairs. The 16 electrodes takeouts of each pair have to be cabled together. This is easily done with a ribbon cable plugged on the 16-way IDC connectors of the pair of boards. This also allows to stack two boards together leaving the screw connectors of the board on the top accessible to connect wires from the electrode arrays.
4-role MUX boards do not have to come in pairs. The 4 roles of each board have to be connected to the other 4 roles of the system (and at least to the ABMN connector on the measurement board). The electrodes connectors can only be used to address the first 8 or the last 8 positions. This is critical if wanting to connect the electrodes via the IDC connectors, which whill have to be carefully cabled.
Check
Use the picture and table below to manually check with a multimeter for continuity and expected voltage in the board. Check your board against the correct expected column: 2-roles or 4-roles.
If a continuity check does not pass it’s likely means there is an issue with the soldering on the board. If the voltage with I2C (SDA and SCL pins) is not expected, there is likely an issue with pull-up resistors. For the test with power “on”, we expect the mux board to be connected to a 12V supply via the screw terminals and to the measurement board via the IDC ribbon cable.
Name |
Power |
Type |
Multiplexer BLACK probe |
Multiplexer RED probe |
Expected 4 roles |
Expected 2 roles |
---|---|---|---|---|---|---|
SC1 |
off |
continuity |
screw terminal GND |
screw terminal PWR |
no continuity |
no continuity |
SC2 |
off |
continuity |
screw terminal role x |
screw terminal role y |
no continuity |
no continuity |
SC3 |
off |
continuity |
screw terminal role x |
screw terminal role xx |
no continuity |
continuity |
SC4 |
off |
continuity |
screw terminal role x |
screw terminal role yy |
no continuity |
no continuity |
SC5 |
off |
continuity |
screw terminal role y |
screw terminal role xx |
no continuity |
no continuity |
SC6 |
off |
continuity |
screw terminal role y |
screw terminal role yy |
no continuity |
continuity |
SC7 |
off |
continuity |
screw terminal role xx |
screw terminal role yy |
no continuity |
no continuity |
SC8 |
off |
continuity |
screw terminal elec 1 |
screw terminal elec 2 |
no continuity |
no continuity |
SC9 |
off |
continuity |
screw terminal elec 2 |
screw terminal elec 3 |
no continuity |
no continuity |
SC10 |
off |
continuity |
screw terminal elec 3 |
screw terminal elec 4 |
no continuity |
no continuity |
SC11 |
off |
continuity |
screw terminal elec 4 |
screw terminal elec 5 |
no continuity |
no continuity |
SC12 |
off |
continuity |
screw terminal elec 5 |
screw terminal elec 6 |
no continuity |
no continuity |
SC13 |
off |
continuity |
screw terminal elec 6 |
screw terminal elec 7 |
no continuity |
no continuity |
SC14 |
off |
continuity |
screw terminal elec 7 |
screw terminal elec 8 |
no continuity |
no continuity |
SC15 |
off |
continuity |
screw terminal elec 8 |
screw terminal elec 9 |
no continuity |
continuity |
SC16 |
off |
continuity |
screw terminal elec 9 |
screw terminal elec 10 |
no continuity |
no continuity |
SC17 |
off |
continuity |
screw terminal elec 10 |
screw terminal elec 11 |
no continuity |
no continuity |
SC18 |
off |
continuity |
screw terminal elec 11 |
screw terminal elec 12 |
no continuity |
no continuity |
SC19 |
off |
continuity |
screw terminal elec 12 |
screw terminal elec 13 |
no continuity |
no continuity |
SC20 |
off |
continuity |
screw terminal elec 13 |
screw terminal elec 14 |
no continuity |
no continuity |
SC21 |
off |
continuity |
screw terminal elec 14 |
screw terminal elec 15 |
no continuity |
no continuity |
SC22 |
off |
continuity |
screw terminal elec 15 |
screw terminal elec 16 |
no continuity |
no continuity |
SC23 |
off |
continuity |
screw terminal elec 1 |
screw terminal elec 16 |
no continuity |
continuity |
SC24 |
off |
continuity |
screw terminal elec 2 |
screw terminal elec 15 |
no continuity |
continuity |
SC25 |
off |
continuity |
screw terminal elec 3 |
screw terminal elec 14 |
no continuity |
continuity |
SC26 |
off |
continuity |
screw terminal elec 4 |
screw terminal elec 13 |
no continuity |
continuity |
SC27 |
off |
continuity |
screw terminal elec 5 |
screw terminal elec 12 |
no continuity |
continuity |
SC28 |
off |
continuity |
screw terminal elec 6 |
screw terminal elec 11 |
no continuity |
continuity |
SC29 |
off |
continuity |
screw terminal elec 7 |
screw terminal elec 10 |
no continuity |
continuity |
SC30 |
off |
continuity |
screw terminal elec 8 |
screw terminal elec 9 |
no continuity |
continuity |
Warning
Do not power the board if one of the SC (shortcircuit) test does not pass!
Name |
Power |
Type |
Multiplexer BLACK probe |
Multiplexer RED probe |
Expected 4 roles |
Expected 2 roles |
---|---|---|---|---|---|---|
C1 |
off |
continuity |
screw terminal GND |
both MCP23017 VSS |
continuity |
continuity |
C2 |
off |
continuity |
screw terminal GND |
I2Cext GND |
continuity |
continuity |
C3 |
off |
continuity |
I2Cext SDA |
both MCP23017 SDA |
continuity |
continuity |
C4 |
off |
continuity |
I2Cext SDL |
both MCP23017 SDL |
continuity |
continuity |
V1 |
on |
voltage |
screw terminal GND |
both MCP23017 SDA |
5V |
5V |
V2 |
on |
voltage |
screw terminal GND |
both MCP23017 SDL |
5V |
5V |
V2 |
on |
voltage |
screw terminal GND |
both MCP23017 VDD |
5V |
5V |