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-X0B without 5.0 V boost converter

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:

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.
| Application | PUx | CLx | PDx | ONx | SDK 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 input | CTR_X0_MODE_DEFAULT | ||||
| Digital output (signal level) | CTR_X0_MODE_DEFAULT |
CHESTER pin configuration diagram

Pin configuration and functions
| Position | Signal name | Signal description |
|---|---|---|
| 1 | VDD | System VDD rail 3.0 V |
| 2 | CH1 | Channel 1 |
| 3 | GND | System ground signal |
| 4 | CH2 | Channel 2 |
| 5 | CH3 | Channel 3 |
| 6 | GND | System ground signal |
| 7 | CH4 | Channel 4 |
| 8 | +V | System positive rail |
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.

Module drawing
