Skip to the content
2 layers55.3 × 44.9 mmAdapter, 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
55.3 × 44.9 mm
Copper layers
2
Thickness
1.6 mm
Parts
19
Nets
16
Pads
43
Tracks, vias
66, 2
Pours
2
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
7 Dec 2018
Updated
10 Apr 2026

Overview

Adapter 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 55.3 × 44.9 mm with 19 parts on 16 nets, routed with 66 tracks and 2 vias.

It is built around the OPA2277U, BAT165E6327 and SD0805S020S0R5. Its parts include 6 resistors, 6 connectors, 3 capacitors, 3 diodes and 1 IC. It belongs with the interfaces and adapters boards of this library.

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

19
QtyValueFootprintReferences
41kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR3, R4, R5, R6
3100nFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC1, C2, C3
3Conn_01x02Connector_PinSocket_2.54mm:PinSocket_1x02_P2.54mm_VerticalJ1, J2, J3
2BAT165E63Diode_SMD:D_0805_2012Metric_Pad1.15x1.40mm_HandSolderD1, D3
110kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR1
12k2Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR2
1Analog_inPin_Headers:Pin_Header_Straight_1x02_Pitch2.54mmP404
1CONN_01X02Pin_Headers:Pin_Header_Straight_1x02_Pitch2.54mmP302
1Conn_01x01Connector_PinSocket_2.54mm:PinSocket_1x01_P2.54mm_VerticalJ4
1OPA2277Package_SO:SOIC-8_3.9x4.9mm_P1.27mmU1
1SD0805S020S0R5Diode_SMD:D_0805_2012Metric_Pad1.15x1.40mm_HandSolderD2

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 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 layers25.6 × 24.6 mmLibreHDMI, the printed circuit board in 3D

    LibreHDMI

    Nold360/LibreHDMI

    MS9288A based VGA / YPbPr to HDMI Converter PCB

    61 parts24
  • 2 layers167.3 × 85.2 mmFinalCircuit, the printed circuit board in 3D

    FinalCircuit

    HarshitRaj3007/EDL2024

    Repository for our EDL project in year 2024. RRAM Characterization using FPGA.

    59 parts1
  • 2 layers80 × 110 mmBed mainboard pcb, the printed circuit board in 3D

    Bed mainboard pcb

    arrowtip/bed-mainboard_pcb

    Simple PCB for using an ESP32 board to control Neopixel-LEDs based on audio-spectrum recorded by mircrophone. Boards also includes interface for a rotary encoder and i2c devices.

    33 partsMPL-2.0
  • 4 layers120 × 120 mmEEG board, the printed circuit board in 3D

    EEG board

    iowlabs/TDAB

    Repositorio para el proyecto de electromiografo

    616 partsGPL-3.0
  • 2 layers121.9 × 55.9 mmPotentiostat KiCAD Prohject, the printed circuit board in 3D

    Potentiostat KiCAD Prohject

    yashil3/Pocket-Potentiostat

    Potentiostat for applying cyclic voltammetry to electrolyte

    81 parts
  • 2 layers48.3 × 105.4 mmControl rev3, the printed circuit board in 3D

    Control rev3

    PaulStoffregen/O_C_T41

    Ornament and Crime Optimized With Teensy 4.1

    127 parts164
  • 4 layers70 × 85 mmQuantizer brain, the printed circuit board in 3D

    Quantizer brain

    lennartquerter/euro-rack-synth

    Lenimal Github for DIY for a Eurorack Synth

    102 parts13
  • 2 layers43.9 × 27.7 mmTcd1304-4v, the printed circuit board in 3D

    Tcd1304-4v

    OpnTec/open-spectrometer-hardware

    Open source VIS spectrometer

    19 parts1.5k

Questions

How big is the Adapter PCB?

It measures 55.3 × 44.9 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Adapter use?

19 parts, built around the OPA2277U, BAT165E6327 and SD0805S020S0R5. 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 Adapter KiCad files?

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

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