Skip to the content
2 layers110 × 100 mmLPKF version, 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
13
Nets
27
Pads
159
Tracks, vias
104, 0
Pours
3
Routed
Yes
KiCad
KiCad 4
Created
7 Dec 2018
Updated
10 Apr 2026

Overview

LPKF version 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 13 parts on 27 nets, routed with 104 tracks and 0 vias.

Its parts include 10 connectors and 2 ICs.

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

13
QtyValueFootprintReferences
4CONN_01X01Controle:ground_plane_viaP104, P105, P106, P107
2HC245Housings_SOIC:SOIC-20W_7.5x12.8mm_Pitch1.27mmU101, U102
1BeagleBoneControle:BEAGLEBONEBLACKBeagle101
1CONN_01X01Pin_Headers:Pin_Header_Straight_1x01_Pitch2.54mmP109
1CONN_01X02Pin_Headers:Pin_Header_Straight_1x02_Pitch2.54mmP108
1CONN_01X05Pin_Headers:Pin_Header_Straight_1x05_Pitch2.54mmP101
1CONN_01X07Pin_Headers:Pin_Header_Straight_1x07_Pitch2.54mmP102
1CONN_01X07Controle:LNLS_LOGO_SilkP102
1CONN_02X02Pin_Headers:Pin_Header_Straight_2x02_Pitch2.54mmP103

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 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

Similar boards

  • 2 layers40 × 20 mmUsb uart, the printed circuit board in 3D

    Usb uart

    earthtojake/text-to-cad

    Design physical products with AI

    13 parts26kMIT
  • 2 layers35 × 29 mmMagSpoofTC, the printed circuit board in 3D

    MagSpoofTC

    samyk/magspoof

    A portable device that can spoof/emulate any magnetic stripe, credit card or hotel card "wirelessly", even on standard magstripe (non-NFC/RFID) readers.

    13 parts4.2k
  • 2 layers20.6 × 23.6 mmAO-03 signal amplifier, the printed circuit board in 3D

    AO-03 signal amplifier

    fossasia/pslab-scripts

    Pocket Science Lab - Scripts for Sensor Experiments

    13 parts1.6kApache-2.0
  • 2 layers47 × 35.6 mmMX7-C-35PL C11, the printed circuit board in 3D

    MX7-C-35PL C11

    rusefi/rusefi

    rusefi - GPL internal combustion engine control unit

    13 parts1.2k
  • 2 layers95 × 95 mmCube batteryboard, the printed circuit board in 3D

    Cube batteryboard

    willem-pennings/balancing-cube

    A cube that balances itself in a corner or edge using reaction wheels

    13 parts1.1kGPL-3.0
  • 2 layers15.2 × 20.3 mmPt100stick, the printed circuit board in 3D

    Pt100stick

    VoronDesign/Voron-Hardware

    Cool Hardware designed by the Voron Design group

    13 parts1.1kGPL-3.0
  • 2 layers53.9 × 23.2 mmBuffer, the printed circuit board in 3D

    Buffer

    hoglet67/RGBtoHDMI

    Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

    13 parts1kGPL-3.0

Questions

How big is the LPKF version PCB?

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

What parts does the LPKF version use?

13 parts. 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 LPKF version KiCad files?

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

Can I use the LPKF version 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).