Skip to the content
2 layers110 × 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
110 × 100 mm
Copper layers
2
Thickness
1.6 mm
Parts
24
Nets
37
Pads
190
Tracks, vias
199, 4
Pours
3
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 110 × 100 mm with 24 parts on 37 nets, routed with 199 tracks and 4 vias.

It is built around the 74LS125DC, 74LCX245M and LT3080EDD. Its parts include 13 connectors, 4 capacitors, 4 ICs and 2 resistors.

Main components

3

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

24
QtyValueFootprintReferences
4CONN_01X01Controle:ground_plane_viaP104, P105, P106, P107
2100nFCapacitors_SMD:C_0805_HandSolderingC102, C104
21uFCapacitors_SMD:C_0805_HandSolderingC101, C103
274LCX245Housings_SOIC:SOIC-20W_7.5x12.8mm_Pitch1.27mmU101, U102
2CONN_01X02Pin_Headers:Pin_Header_Straight_1x02_Pitch2.54mmP108, P112
2CONN_01X04Pin_Headers:Pin_Header_Straight_1x04_Pitch2.54mmP110, P111
11kResistors_SMD:R_0805_HandSolderingR102
1330kResistors_SMD:R_0805_HandSolderingR101
174LS125TO_SOT_Packages_SMD:SOT-353_SC-70-5_HandsolderingU103
1BeagleBoneControle:BEAGLEBONEBLACKBeagle101
1CONN_01X01Pin_Headers:Pin_Header_Straight_1x01_Pitch2.54mmP109
1CONN_01X05Pin_Headers:Pin_Header_Straight_1x05_Pitch2.54mmP101
1CONN_01X07Controle:LNLS_LOGO_SilkP102
1CONN_01X07Pin_Headers:Pin_Header_Straight_1x07_Pitch2.54mmP102
1CONN_02X02Pin_Headers:Pin_Header_Straight_2x02_Pitch2.54mmP103
1LT3080Controle:SOT-223U104

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 layers195.7 × 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.

    36 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

  • 4 layers295 × 285 mmKsys573, the printed circuit board in 3D

    Ksys573

    NaokiS28/Konami-System-573-Documentation

    Schematics and pinout information for the Konami System 573

    126 parts16
  • 2 layers169.3 × 128 mmPSU PCB, the printed circuit board in 3D

    PSU PCB

    ThomasVDD/SmartSupply

    SmartSupply is a digital battery powered lab powersupply. It is Arduino compatible and can be controlled via PC over USB.

    134 parts96
  • 2 layers50 × 100 mmPSU PCB, the printed circuit board in 3D

    PSU PCB

    ThomasVDD/SmartSupplyMini

    118 parts16
  • 2 layers100 × 100 mmDragonOne cpu rev03, the printed circuit board in 3D

    DragonOne cpu rev03

    kanpapa/MC68EZ328

    MC68EZ328 DragonOne SBC

    48 parts11BSD-3-Clause
  • 4 layers145 × 157 mmRear, the printed circuit board in 3D

    Rear

    JQIamo/20A-bipolar-current-source

    20A bipolar current source with water cooled sensing resistor

    99 parts2
  • 2 layers97.8 × 82.6 mmPower Supply, the printed circuit board in 3D

    Power Supply

    hxtk/Power-Supply

    Dual-limiting laboratory power supply schematic and PCB

    43 parts1
  • 2 layers124.5 × 87.5 mmS1VirtualFloppy, the printed circuit board in 3D

    S1VirtualFloppy

    bml3mk5/L3S1VirtualFloppy

    Virtual Floppy Card for HITACHI Basic Master Level3 / MB-S1

    71 parts
  • 2 layers175 × 80 mmVideoEncoder, the printed circuit board in 3D

    VideoEncoder

    stonedDiscord/Automatenplatinen

    Reverse engineerte Hardware aus deutschen Spielautomaten.

    47 parts5BSD-2-Clause

Questions

How big is the PIAD-18bits PCB?

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

What parts does the PIAD-18bits use?

24 parts, built around the 74LS125DC, 74LCX245M and LT3080EDD. 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 (stack)/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).