Skip to the content
2 layers195.7 × 100 mmPIAD-18bits, the printed circuit board in 3D

This project consists of an 18-bit analog input (ADC) and output (DAC) within a range of 20 V (± 10 V) and 32 digital pins that can be either as inputs or outputs.

Size
195.7 × 100 mm
Copper layers
2
Thickness
1.6 mm
Parts
36
Nets
69
Pads
276
Tracks, vias
692, 24
Pours
4
Routed
Yes
KiCad
KiCad 4
Created
7 Dec 2018
Updated
10 Apr 2026

Overview

PIAD-18bits is an open-source printed circuit board by lnls-sirius, from the lnls-sirius/SPIxCONV repository on GitHub, published under the MIT licence. It is a 2-layer board of 195.7 × 100 mm with 36 parts on 69 nets, routed with 692 tracks and 24 vias.

It is built around the MH3 and MH4. Its parts include 24 connectors, 8 capacitors and 4 ICs.

Main components

2

README

README.md

SPIxCONV

This project consists of an 18-bit analog input (ADC) and output (DAC) within a range of 20 V (± 10 V) and 32 digital pins that can be either as inputs or outputs. This system interfaces with pulsed power electronics hardware in order to control the output voltage for pulsed magnets as well as read and write status commands to their power supplies. An operator interface (OPI) software based on Qt was also developed for remote control.

Hardware

Main Board

Main Board

Circuit
  • Board

  • CPLD

  • DAC

  • ADC

  • Digital I/O

PCB

Connectors
  • SPIxxCON

  • CPLD

  • Board Connection Link

Test Points
  • SPI

  • Power Voltage

  • Analog In/Out

BOM

Bill of materials

GPIO Expander Board

GPIO Expander Board

Circuit

GPIO board circuit

PCB

Connectors
  • Interface A/B

  • Interface C/D

Test Points
  • Power Voltage

  • Analog In/Out

BOM

Bill of materials

Identification

Software

The software files of this project related to the server-side (IOC) is now available at streamdevice-ioc GitHub's repository under the "spixconv" directory.

The software files related to the OPI (Operator Interface) is now at pydm-opi GitHub's repository.

Finally, the client-side (Python code) is at this repository under the scripts directory.

Brief Description

To remotely control the board an EPICS IOC with an OPI was developed.

The IOC was built using asynDriver and StreamDevice on top of it. The application is launched in a form of a Docker container. The Docker image can be found at Docker Hub with the tag "SPIxCONV" followed by the version (eg: SPIxCONV-v1.9.6).

To configure the parameters of the IOC a spreadsheet is used (available for CNPEM accounts only). PV's prefix, Power Supply voltage, host IP to connect to, scan rate and other settings can be adjusted.

OPI (Operator Interface)

Previously, Control System Studio was used to develop the OPI. The windows can still be found under the CSS directory. Lately, we have been using PyDM (Python Display Manager) to develop the windows. As stated before, the files related to the PyDM OPI is located in pydm-opi repository.

OPI

CPLD

Board Calibration

To achieve more confiability, a calibration is done considering the DAC adjusts and the ADC measures. The next figures show the setup for this procedure. We basically connect the DAC output to the voltmeter and to the ADC input simultaneously.

  • DAC calibration: To calibrate the DAC we set its output to -9 V and later to +9 V and measure the real output voltage with the help of a 7 ½ digit voltmeter (here we are using the Keysight 34420A. We then use both measures to calculate the angular and linear coeffients for this curve.

  • ADC calibration: Now that we have the DAC calibrated, we will use its output to calibrate the ADC coefficients. Again, we set the DAC output to -9 V (already considering the corrections), wait 60 s for thermal stabilization and read the voltage with the ADC. We then repeat the procedure for an adjustment of +9 V on the DAC output. Finally, these measures are used to calculate an angular and linear coefficient for the ADC.

An automated script was developed for this process. To control the voltmeter 34420A remotely we need a RS-232/USB adaptor to plug it in the USB connector of the BeagleBone Black. An important thing to note, is that the serial cable (RS-232) has an identification to show which side is the voltmeter's one and which should be connected to the adaptor.

Finally, to calibrate the board, just connect to the BeagleBone Black and run the appropriate scrips, as showed below:

console
$ ssh root@<BBB-IP>
root@beaglebone:~# systemctl stop bbb-function
root@beaglebone:~# /root/spixconv/software/scripts/calibration.py <BOARD-ID>
    gain = 1.00014284735
    offset = -15.81235112
    gain = 1.00052568324
    offset = -66.6829873034

Where is the BeagleBone IP (for example "192.168.7.2") and the is the identification of the board (for example "15").

Board IDDAC gainDAC offsetADC gainADC offsetDate
11.00022856796-23.6045517951.00031151483-25.503497952506/14/2018
21.00026576963-28.8801796701.00047415222-60.215813783006/14/2018
31.00030796599-32.6996031801.00041814300-47.922711376906/18/2018
41.00017479634-17.2423411851.00026390485-31.617401479406/19/2018
51.00017265115-13.9747286901.00045784906-39.553380010106/19/2018
61.00015184443-11.6744238651.00060158655-59.172921288306/19/2018
71.00019784934-20.9188967601.00029330340-24.443958447106/19/2018
81.00035674834-37.7694488001.00029168671-34.032436382406/19/2018
91.00023135812-26.5667676951.00045023944-44.591192696606/19/2018
101.00020592482-21.5716328301.00044201352-51.352587195906/19/2018
111.00014897135-16.8622338351.00067934214-81.245690036206/19/2018
121.00022598345-22.0081009251.00057691743-66.011032583106/19/2018
131.00032333122-33.2671427751.00039023957-45.355220874706/19/2018
141.00016016368-18.3118846251.00048566801-60.557572648306/19/2018
151.00022607238-22.0513545201.00046470661-58.577090762506/19/2018
161.00028974958-32.6262031401.00073037347-97.737025128906/19/2018
171.00027075563-27.2929038051.00037276504-34.268222215006/20/2018
181.00017256223-15.7533689451.00046720927-66.446185494206/20/2018
191.00023103020-24.2966093151.00032961706-28.741752071106/20/2018
201.00019010191-20.9988503751.00012983616-2.1030990436506/20/2018
Code

https://lnls-sirius.github.io/SPIxCONV/

Known Problems

  • Not connecting to IOC after BBB reboots:
    Status: both nodes (IOC and BBB) show they are connected, but the IOC does not respond. Solution: reboot IOC.

  • Flash memory loses data: Status: this happened once in three years. After a power cycle, the flash suddenly lost al its data! Solution: record information in flash memory again.

FAQ

Parts

36
QtyValueFootprintReferences
4100nFCapacitors_SMD:C_0805_HandSolderingC2, C2, C4, C4
410uFCapacitors_SMD:C_0805_HandSolderingC1, C1, C3, C3
4CONN_01X01Pin_Headers:Pin_Header_Straight_1x01P5, P5, P6, P6
4CONN_02X13Pin_Headers:Pin_Header_Straight_2x13P1, P1, P3, P3
4XRA1405Housings_SSOP:TSSOP-24_4.4x7.8mm_Pitch0.65mmU1, U1, U2, U2
2CONN_01X03Controle:LNLS_LOGO_SilkP4, P4
2CONN_01X03Pin_Headers:Pin_Header_Straight_1x03P4, P4
2CONN_02X10Pin_Headers:Pin_Header_Straight_2x10P2, P2
2MH1Controle:M3_HoleP8, P8
2MH3Controle:M3_HoleP9, P9
2MH4Controle:M3_HoleP10, P10
2MP1Controle:M3_HoleP11, P11
2MP2Controle:M3_HoleP12, P12

More from lnls-sirius/SPIxCONV

4
  • 2 layers160 × 100 mmPIAD-18bits, the printed circuit board in 3D

    PIAD-18bits

    lnls-sirius/SPIxCONV

    This project consists of an 18-bit analog input (ADC) and output (DAC) within a range of 20 V (± 10 V) and 32 digital pins that can be either as inputs or outputs.

    178 parts1MIT
  • 2 layers110 × 100 mmPIAD-18bits, the printed circuit board in 3D

    PIAD-18bits

    lnls-sirius/SPIxCONV

    This project consists of an 18-bit analog input (ADC) and output (DAC) within a range of 20 V (± 10 V) and 32 digital pins that can be either as inputs or outputs.

    24 parts1MIT
  • 2 layers55.3 × 44.9 mmAdapter, the printed circuit board in 3D

    Adapter

    lnls-sirius/SPIxCONV

    This project consists of an 18-bit analog input (ADC) and output (DAC) within a range of 20 V (± 10 V) and 32 digital pins that can be either as inputs or outputs.

    19 parts1MIT
  • 2 layers110 × 100 mmLPKF version, the printed circuit board in 3D

    LPKF version

    lnls-sirius/SPIxCONV

    This project consists of an 18-bit analog input (ADC) and output (DAC) within a range of 20 V (± 10 V) and 32 digital pins that can be either as inputs or outputs.

    13 parts1MIT

Similar boards

  • 2 layers100.3 × 38.1 mmRelay shield, the printed circuit board in 3D

    Relay shield

    carlos-jenkins/relay-shield

    Relay and current sensor shield for Spark Core

    25 parts10GPL-2.0
  • 2 layers102.5 × 75 mmK PA Protec, the printed circuit board in 3D

    K PA Protec

    F6ITU/K_PA_Protec

    LA2NI OpenHPSDR Power Amplifier Protection board- kicad port

    91 parts1
  • 2 layers275.9 × 117.8 mmReform2-keyboard3, the printed circuit board in 3D

    Reform2-keyboard3

    jackhumbert/reform

    This is the main repository for the MNT Reform open source laptop.

    379 parts1
  • 2 layers50.4 × 75 mmOpen-01-pcb, the printed circuit board in 3D

    Open-01-pcb

    RonishNadar/open-01

    OPEN-01 - Omnidirectional Perception & Embedded Navigation. An open-source, low-cost ROS2 robot platform.

    64 parts1Apache-2.0
  • 4 layers58.5 × 50.3 mmF407-mainboard, the printed circuit board in 3D

    F407-mainboard

    adrienles/miniMPE

    a sectioned small and low profile MPE MIDI keyboard

    61 parts
  • 2 layers99.1 × 87.9 mmDigital theremin kicad, the printed circuit board in 3D

    Digital theremin kicad

    ncssrtnvnthm/WATCH2026-theremin

    Theremin project for the 2026 WATCH program

    40 parts

Questions

How big is the PIAD-18bits PCB?

It measures 195.7 × 100 mm and has 2 copper layers, 1.6 mm thick.

What parts does the PIAD-18bits use?

36 parts, built around the MH3 and MH4. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the PIAD-18bits KiCad files?

From the lnls-sirius/SPIxCONV repository on GitHub, at the commit this page was made from: the board is hardware/SPIxCONV (GPIO expander)/PIAD-18bits.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the PIAD-18bits design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).