Skip to content

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
SWITCHUNO Q PINONOFF
1D3Q0.6 / A0.6 connectedPIN3 only
2D2I0.0 connectedPIN2 only
3A1I0.8 connectedI0.8 disconnected
4A1RS-485 DE connectedRS-485 DE disconnected
5A0I0.9 connectedI0.9 disconnected
6A0RS-485 RE connectedRS-485 RE disconnected
  1. 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.
  2. 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.
  3. I0.8 – ON: the input I0.8 is connected to the A1 pin.
  4. RS-485 DE – ON: the A1 pin controls the driver enable (DE) of the RS-485.
  5. I0.9 – ON: the input I0.9 is connected to the A0 pin.
  6. 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
SWITCHUNO Q PINON
1D0Q0.8
2D0RS* (serial RX)
3D1Q0.9
4D1RS* (serial TX)
Top switch diagram
Top switch diagram

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
SWITCHONOFF
HD/FDHalf DuplexFull Duplex
Q0.6Digital (Q0.6)Analog (A0.6)
Q0.5Digital (Q0.5)Analog (A0.5)
Q0.4Digital (Q0.4)Analog (A0.4)
Q0.3Digital (Q0.3)Analog (A0.3)
Q0.2Digital (Q0.2)Analog (A0.2)
Q0.1Digital (Q0.1)Analog (A0.1)
Q0.0Digital (Q0.0)Analog (A0.0)
Right switch diagram
Right switch diagram
  • 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 PINRS-485 POSITIONRS-232 POSITION
D0 (RX)RS-485 receiver outputRS-232 receiver output
D1 (TX)RS-485 driver inputRS-232 driver input
JUMPER ZONE 2
UNO Q PININPUT POSITIONRS-232 POSITION
D4I0.2RS-232 TX
D8I0.3RS-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
SWITCHONOFF
NCNot connectedNot connected
HD/FDHalf DuplexFull Duplex
R5 / PIN3R5 (D3)PIN3 only
I0.0 / PIN2I0.0 (D2)PIN2 only
RE / I0.4RS-485 RE (A0)Disconnected
I0.4 / REI0.4 (A0)Disconnected
DE / I0.5RS-485 DE (A1)Disconnected
I0.5 / DEI0.5 (A1)Disconnected
Left switch diagram
Left switch diagram
  1. NC – Not connected.
  2. 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-).
  3. 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.
  4. 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.
  5. RE / I0.4 – ON: the A0 pin controls the receiver enable (RE) of the RS-485.
  6. I0.4 / RE – ON: the input I0.4 is connected to the A0 pin.
  7. DE / I0.5 – ON: the A1 pin controls the driver enable (DE) of the RS-485.
  8. 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
SWITCHUNO Q PINON
1D1RS* (serial TX)
2D1R8
3D0RS* (serial RX)
4D0R7
Top switch diagram
Top switch diagram

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
TERMINALRS-485 FULL DUPLEXANALOG OUTPUTS
Y+/A0.0Y+A0.0
Z-/A0.1Z-A0.1
JUMPER ZONE 2
UNO Q PININPUT POSITIONRS-232 POSITION
D4I0.2RS-232 TX
D8I0.3RS-232 RX
JUMPER ZONE 3
UNO Q PINRS-485 POSITIONRS-232 POSITION
D0 (RX)RS-485 receiver outputRS-232 receiver output
D1 (TX)RS-485 driver inputRS-232 driver input
Relay jumpers
ADR jumpers

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.