Ardbox Q - Switches and jumpers¶
Several pins of the Arduino UNO Q are shared between two functions. The DIP switches and the jumpers inside the Ardbox Q select which function is connected to each pin. Each switch lever only connects or disconnects one path: when two levers share the same pin, turn ON only the one you need.
Ardbox Q AD¶
Switches¶
Left zone¶
| LEFT ZONE | |||
|---|---|---|---|
| SWITCH | UNO Q PIN | ON | OFF |
| 1 | D3 | Q0.6 / A0.6 connected | PIN3 only |
| 2 | D2 | I0.0 connected | PIN2 only |
| 3 | A1 | I0.8 connected | I0.8 disconnected |
| 4 | A1 | RS-485 DE connected | RS-485 DE disconnected |
| 5 | A0 | I0.9 connected | I0.9 disconnected |
| 6 | A0 | RS-485 RE connected | RS-485 RE disconnected |
- Q0.6 / PIN3 – ON: the D3 pin drives the output Q0.6/A0.6 (the PIN3 terminal stays connected to the same pin). OFF: D3 is only available on the PIN3 terminal.
- I0.0 / PIN2 – ON: the input I0.0 is read on D2 (the PIN2 terminal stays connected to the same pin). OFF: D2 is only available on the PIN2 terminal.
- I0.8 – ON: the input I0.8 is connected to the A1 pin.
- RS-485 DE – ON: the A1 pin controls the driver enable (DE) of the RS-485.
- I0.9 – ON: the input I0.9 is connected to the A0 pin.
- RS-485 RE – ON: the A0 pin controls the receiver enable (RE) of the RS-485.
To use the RS-485, set switches 4 and 6 ON and switches 3 and 5 OFF (the inputs I0.8 and I0.9 are not available). To use I0.8 and I0.9, set switches 3 and 5 ON and switches 4 and 6 OFF.
Warning
There is no I2C bus on the terminals: PIN2 and PIN3 are 3.3 V GPIO pins (D2 and D3 of the Arduino UNO Q). D3 is not 5 V tolerant.
Top zone¶
| TOP ZONE | ||
|---|---|---|
| SWITCH | UNO Q PIN | ON |
| 1 | D0 | Q0.8 |
| 2 | D0 | RS* (serial RX) |
| 3 | D1 | Q0.9 |
| 4 | D1 | RS* (serial TX) |
Info
RS* is the RS-485 or the RS-232, depending on the position of the jumpers of zone 1. To use either bus, switches 1 and 3 must be OFF, and switches 2 and 4 must be ON (the outputs Q0.8 and Q0.9 are not available). To use Q0.8 and Q0.9, switches 1 and 3 must be ON and switches 2 and 4 OFF.
Right zone¶
| RIGHT ZONE | ||
|---|---|---|
| SWITCH | ON | OFF |
| HD/FD | Half Duplex | Full Duplex |
| Q0.6 | Digital (Q0.6) | Analog (A0.6) |
| Q0.5 | Digital (Q0.5) | Analog (A0.5) |
| Q0.4 | Digital (Q0.4) | Analog (A0.4) |
| Q0.3 | Digital (Q0.3) | Analog (A0.3) |
| Q0.2 | Digital (Q0.2) | Analog (A0.2) |
| Q0.1 | Digital (Q0.1) | Analog (A0.1) |
| Q0.0 | Digital (Q0.0) | Analog (A0.0) |
- HD/FD – Selects half or full duplex for the RS-485. ON is half duplex (terminals A+ and B-); OFF is full duplex (receive on A+/B-, transmit on Y+/Z-).
- Q0.0-Q0.6 – ON connects the digital output Q0.x to its pin. OFF disconnects Q0.x, so the pin is only used by the analog output A0.x. The analog output A0.x is always connected to the same pin as Q0.x: use one of the two.
- Q0.6 and A0.6 also need switch 1 of the left zone ON.
- Q0.7 has no switch: it is always available.
Jumpers¶
| JUMPER ZONE 1 | ||
|---|---|---|
| UNO Q PIN | RS-485 POSITION | RS-232 POSITION |
| D0 (RX) | RS-485 receiver output | RS-232 receiver output |
| D1 (TX) | RS-485 driver input | RS-232 driver input |
| JUMPER ZONE 2 | ||
|---|---|---|
| UNO Q PIN | INPUT POSITION | RS-232 POSITION |
| D4 | I0.2 | RS-232 TX |
| D8 | I0.3 | RS-232 RX |
Zone 1¶
These jumpers connect the serial port of the Arduino UNO Q (pins D0/D1, through switches 2 and 4 of the top zone) to the RS-485 transceiver or to the RS-232 transceiver. To use the RS-485, place both jumpers in the RS-485 position. To use the RS-232, place both jumpers in the RS-232 position.
Zone 2¶
These jumpers connect pins D4/D8 of the Arduino UNO Q to the inputs I0.2/I0.3, or to the RS-232 transceiver. Keep them in the input position to use I0.2 and I0.3.
Warning
D4 and D8 have no hardware serial port in the Arduino UNO Q, so the RS-232 through zone 2 would need a software serial port, which the Ardbox Q does not support. Use the RS-232 through zone 1 (pins D0/D1) instead of the RS-485.
Ardbox Q ADR¶
Switches¶
Left zone¶
| LEFT ZONE | ||
|---|---|---|
| SWITCH | ON | OFF |
| NC | Not connected | Not connected |
| HD/FD | Half Duplex | Full Duplex |
| R5 / PIN3 | R5 (D3) | PIN3 only |
| I0.0 / PIN2 | I0.0 (D2) | PIN2 only |
| RE / I0.4 | RS-485 RE (A0) | Disconnected |
| I0.4 / RE | I0.4 (A0) | Disconnected |
| DE / I0.5 | RS-485 DE (A1) | Disconnected |
| I0.5 / DE | I0.5 (A1) | Disconnected |
- NC – Not connected.
- HD / FD – Choose between half and full duplex for the RS-485. ON is half duplex (terminals A+ and B-); OFF is full duplex (receive on A+/B-, transmit on Y+/Z-).
- R5 / PIN3 – ON: the D3 pin drives the relay R5 (the PIN3 terminal stays connected to the same pin). OFF: D3 is only available on the PIN3 terminal.
- I0.0 / PIN2 – ON: the input I0.0 is read on D2 (the PIN2 terminal stays connected to the same pin). OFF: D2 is only available on the PIN2 terminal.
- RE / I0.4 – ON: the A0 pin controls the receiver enable (RE) of the RS-485.
- I0.4 / RE – ON: the input I0.4 is connected to the A0 pin.
- DE / I0.5 – ON: the A1 pin controls the driver enable (DE) of the RS-485.
- I0.5 / DE – ON: the input I0.5 is connected to the A1 pin.
To use the RS-485, set the RE and DE switches ON and the I0.4 and I0.5 switches OFF (the inputs I0.4 and I0.5 are not available). To use I0.4 and I0.5, do the opposite.
Warning
There is no I2C bus on the terminals: PIN2 and PIN3 are 3.3 V GPIO pins (D2 and D3 of the Arduino UNO Q). D3 is not 5 V tolerant.
Top zone¶
| TOP ZONE | ||
|---|---|---|
| SWITCH | UNO Q PIN | ON |
| 1 | D1 | RS* (serial TX) |
| 2 | D1 | R8 |
| 3 | D0 | RS* (serial RX) |
| 4 | D0 | R7 |
Info
RS* is the RS-485 or the RS-232, depending on the position of the jumpers of zone 3. To use either bus, switches 1 and 3 must be ON and switches 2 and 4 must be OFF (the relays R7 and R8 are not available). To use R7 and R8, switches 2 and 4 must be ON and switches 1 and 3 OFF.
Jumpers¶
| JUMPER ZONE 1 | ||
|---|---|---|
| TERMINAL | RS-485 FULL DUPLEX | ANALOG OUTPUTS |
| Y+/A0.0 | Y+ | A0.0 |
| Z-/A0.1 | Z- | A0.1 |
| JUMPER ZONE 2 | ||
|---|---|---|
| UNO Q PIN | INPUT POSITION | RS-232 POSITION |
| D4 | I0.2 | RS-232 TX |
| D8 | I0.3 | RS-232 RX |
| JUMPER ZONE 3 | ||
|---|---|---|
| UNO Q PIN | RS-485 POSITION | RS-232 POSITION |
| D0 (RX) | RS-485 receiver output | RS-232 receiver output |
| D1 (TX) | RS-485 driver input | RS-232 driver input |
Zone 1¶
These jumpers select the function of the terminals Y+/A0.0 and Z-/A0.1. To use the RS-485 in full duplex mode, place both jumpers in the RS-485 full duplex position (terminals Y+ and Z-). To use the analog outputs, place both jumpers in the analog outputs position (terminals A0.0 and A0.1); the RS-485 can then only work in half duplex.
Zone 2¶
These jumpers connect pins D4/D8 of the Arduino UNO Q to the inputs I0.2/I0.3, or to the RS-232 transceiver. Keep them in the input position to use I0.2 and I0.3.
Warning
D4 and D8 have no hardware serial port in the Arduino UNO Q, so the RS-232 through zone 2 would need a software serial port, which the Ardbox Q does not support. Use the RS-232 through zone 3 (pins D0/D1) instead of the RS-485.
Zone 3¶
These jumpers connect the serial port of the Arduino UNO Q (pins D0/D1, through switches 1 and 3 of the top zone) to the RS-485 transceiver or to the RS-232 transceiver. To use the RS-485, place both jumpers in the RS-485 position. To use the RS-232, place both jumpers in the RS-232 position.