Skip to main content

CHESTER-X0

This article describes the CHESTER-X0 four-channel I/O extension module. Two variants are available:

  • CHESTER-X0A including 5.0 V boost converter
CHESTER-X0A module, a red PCB with boost converter fitted in the top-left corner

  • CHESTER-X0B without 5.0 V boost converter
CHESTER-X0B module, a red PCB with the boost-converter position unpopulated and solder bridges instead

Module overview​

Each of the four channels can be configured as one of the following (one function per channel at a time):

  • Digital input or output**
  • Analog input or output**
  • Voltage input 0–26 V*
  • Current loop 4–20 mA
  • Dry contact input
  • NPN or PNP input
  • Power output
    • X0A with boost converter: 5 V
    • X0B w/o boost converter: standard 3.0 V (VDD solder bridge) or on request V+ battery rail (V+ solder bridge)

* The CHESTER-M mainboard has TVS protection on the Ax and Bx terminal block pins that starts to protect GPIO above 28 V. Theoretically, you can measure voltages higher than 26 V, but the protection distorts the measurements, or you need to request the board without these TVS diodes or remove them.

** Signal-level output only: the MCU pin drives the channel through a 100 kΩ series resistor, so the output can feed only high-impedance inputs (tens of µA at most). It cannot switch relays, LEDs or other loads; for that, use the power output or the CHESTER-X9 output module. The analog output is generated by PWM (the MCU has no DAC) and smoothed by the on-board 100 kΩ / 1 nF RC filter. The SDK has no dedicated output mode; your application drives the pin in CTR_X0_MODE_DEFAULT (see ctr_x0_get_spec).

Electrical specification​

  • Power output (ONx), continuous current: 50 mA
  • Power output (ONx), peak current limit: 150 mA
  • Digital and analog output: signal level only, 100 kΩ series resistor

Channel schematic diagram​

Depending on the application these configuration options are available for each channel:

  • Enable pull-up resistor 330 kΩ (PUX)
  • Enable pull-down resistor 249 Ω (PDX)
  • Enable voltage divider (gain 1/11) (100 kΩ, 10 kΩ) (CLX)
  • Enable 5 V boost converter (CHESTER-X0A only) (ONX)

This picture shows the electric circuit of each channel:

Single-channel circuit: CHX input with varistor, PUX pull-up, PDX pull-down, CLX divider, and ONX 5 V switch to GPX/AX

Configuration table​

The configuration depends on the application.

Signals PUx, CLx, PDx, ONx refer to the schematic above. Green tick ✅ means that the I2C GPIO expander or X0 sends a logic high signal to this configuration signal. However, this is just to understand the modes. You only need to know which mode is set in the ctr_x0_set_mode table column.

ApplicationPUxCLxPDxONxSDK ctr_x0_set_mode
Analog input 0-26 V✅CTR_X0_MODE_AI_INPUT
Dry contact✅CTR_X0_MODE_DEFAULT
NPN input✅CTR_X0_MODE_NPN_INPUT
PNP input✅CTR_X0_MODE_PNP_INPUT
Current loop 4-20 mA✅✅CTR_X0_MODE_CL_INPUT
Power source✅CTR_X0_MODE_PWR_SOURCE
Analog output 0–VDD (PWM, signal level)CTR_X0_MODE_DEFAULT
Digital inputCTR_X0_MODE_DEFAULT
Digital output (signal level)CTR_X0_MODE_DEFAULT

CHESTER pin configuration diagram​

CHESTER-X0 terminal block pinout, pins 1-8: VDD, CH1, GND, CH2, CH3, GND, CH4, +V

Pin configuration and functions​

PositionSignal nameSignal description
1VDDSystem VDD rail 3.0 V
2CH1Channel 1
3GNDSystem ground signal
4CH2Channel 2
5CH3Channel 3
6GNDSystem ground signal
7CH4Channel 4
8+VSystem positive rail
note

The system positive rail (+V) voltage depends on the CHESTER power supply option.

Schematic diagram​

A schematic diagram is useful if you program low-level hardware-related code or if you're just curious about how the system is designed.

CHESTER-X0 schematic sheet 1: PCAL6416A GPIO expander and TPS61099 boost converter with module pin headers CHESTER-X0 schematic sheet 2: configuration switch circuits for channels 1 and 2 CHESTER-X0 schematic sheet 3: configuration switch circuits for channels 3 and 4

Module drawing​

CHESTER-X0 board outline with edge signals: +V, GP0-GP3, SDA, SCL, VDD, GND on top; +V, CH1-CH4, GND, VDD on bottom

CHESTER SDK​

References​