Skip to the content
4 layers100 × 100 mmRsyn1, the printed circuit board in 3D

Resistance synthesizer

Size
100 × 100 mm
Copper layers
4
Thickness
1.59 mm
Parts
90
Nets
103
Pads
329
Tracks, vias
790, 178
Pours
436
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
16 May 2023
Updated
11 Jul 2024

Overview

Rsyn1 is an open-source printed circuit board by jaromir-sukuba, from the jaromir-sukuba/rsyn repository on GitHub, published under the MIT licence. It is a 4-layer board of 100 × 100 mm with 90 parts on 103 nets, routed with 790 tracks and 178 vias.

It is built around the OPA145ID, OPA202ID and ISO7341CDW. Its parts include 38 resistors, 16 capacitors, 12 ICs, 6 connectors and 3 diodes. It belongs with the audio and music boards of this library.

Main components

3

README

README.md

What is in this repository?

Here is the complete set of design files, BOM, source files, test results and other resources that I used in the process of building a simple resistance synthesizer.

What is resistance synthesizer?

A resistance synthesizer is a device allowing the emulation of a resistance or (nearly) any value for use in control and test instrumentation. It can emulate resistive components like resistive temperature devices (thermistors, platinum sensors) or other resistive sensors, too. There are commercial instruments that do this task, but they are often way outside the average hobby budget. Therefore, I decided to build one.

This project demonstrates a simple resistance synthesizer device built around a high-precision digital-to-analog converter (DAC) that is controlled by a microcontroller, allowing communication with a computer to control and calibrate the instrument, allowing integration into automated test setups. As standard in test equipment, the analog portion of the instrument is isolated from the digital portion, which makes the integration much easier as the synthesizer doesn't suffer from ground loops and is insulated from potentially dangerous voltage levels. Apart from control via USB, the instrument contains a local user interface consisting of a keypad and display. enter image description here

How does resistance synthesis work?

Reistance synthesis can be done in numerous ways. The obvious one is a network of resistors and relays to switch the desired value. The number of relays and resistors can be minimized by varying exponential values and switching in binary code patterns. That would employ resistor values of 1R-2R-4R-8R-16, etc., and an appropriate switching pattern allowing the resistor to be included or excluded from the circuit. This approach is quite straightforward but has a few issues. Contact resistance is included in the resistor value and can matter, especially on the low end of the range (unless a four-wire arrangement is used, which can solve most of the contact problems); the contact resistance may change over the relay lifetime and other environmental factors. Furthermore, switching takes time, may be acoustically noisy, and causes relay contact wear. More elegant is the electrical resistance adjustment. Digital potentiometers may be adequate for many uses, but they usually suffer from low resolution and low precision. While those can be a perfect fit for many applications, my idea of a resistance synthesizer requires somehow a more nuanced approach. Fortunately, there are other ways to emulate the resistance, reducing the problem to current sensing and voltage generation, both of which can be done relatively easily and with much higher precision than the digital potentiometer can offer. The principle is simple and this picture demonstrates this approach. enter image description here

The left side of the picture captures voltage and current in a simple circuit with a resistor, following Ohm's law. Should we include voltage source U in series with the resistor, the apparent resistance of the circuit changes, following the formula on the right side of the picture. If the Us is derived from the current Ir, the resulting resistance value is invariant of the current Ir, so that the circuit behaves like a resistor with apparent resistance Rs between zero (Us = Ir x Rr) and Rr (Us = 0).

Second picture depicts this idealized schematic in a way that somehow resembles the circuit in my resistance synthesizer. enter image description here The voltage on Rr is brought to a voltage follower (so that Ir isn't influenced by following circuits) and subsequently to a potentiometer, allowing it to regulate the synthesized resistance value. This circuit has the advantage of a potentiometer acting like a grounded voltage divider, so it can be substituted by a multiplying DAC, in this case LTC2756.

Instrument overview

Schematic sheet 'Interconnect' depicts top-level schematics and internal instrument wiring. enter image description here

Resistance synthesizer board

Reference resistors R19 and R29/30 are switched using DG442 analog switches U11C and U11D. There are options to change the gain of the reference resistor amplifier (R20, R24, R28, and U7B, U11A, and U11B) and DAC amplifier (R8, R9, R10, and switches U7A, U7C, and U7D), but those aren't used in the current firmware, so that U7A and U7B are switched continuously. U4 is the heart of the resistance synthesizer board. It works in a more-or-less datasheet configuration, with one interesting point: its reference voltage is switchable by zero-ohm resistors R2 and R3 (only one is installed). When R2 is populated, the output works in the range 0..5 V and is useful for testing the DAC. In this mode, the circuit doesn't work as a resistance synthesizer. When R3 is installed instead of R2, the reference voltage is derived from the resistance drop on a reference resistor (refer to Picture #2), and the circuit works as a resistance synthesizer. The remaining parts of the PCB are just support functions for the DAC. Microcontroller U10 acts as a UART-DAC bridge, converting ASCII commands from serial lines to DAC SPI control packets and analog switch actions. U3 acts as a digital isolator, allowing the digital and analog boards to be separated electrically.

Display board

Three SCT2024 shift registers with constant current drivers are chained into a 48-bit-long string. Six pieces of dual starburst LED displays are multiplexed in a 1:4 multiplex ratio by the microcontroller U7. This microcontroller communicates via serial line and transforms single ASCII commands into text readable on the display.

Digital and PSU boards

U5 on this board acts as the main controlling element of the device. It talks to internal microcontrollers (on the resistance synthesizer board and display board) as well as external communication channels via USB. Apart from that, it reads the keyboard to allow direct user control. The majority of the complexity of this part lies in firmware, available on GitHub. PSU is relatively straight-forward. Both analog and digital sections are fed from separate transformer windings, each with a diode rectifier and voltage regulator. In the case of the digital section, I opted for a Murata OKI-78-SR-33 switching regulator to cut down on heat generated in the PSU.

Physical construction

Resistance synthesizers and display boards were designed as 4-layer PCBs in KiCAD. Digital PSU and keypad boards were simple enough to be made on a perfboard. All electrical components are mounted into a CP-15-32 enclosure with custom milled front and back panels. Construction is obvious from the photos. enter image description here

Instrument operation

It is operated using either a local interface or serial commands. For the local interface, keys 1 and 2 select the digit to be modified, and keys 3 and 4 perform incrementation or decrementation of the digit. The digit to be modified blinks for approximately 4 seconds. Pressing keys 1 and 2 simultaneously changes the range (10 and 100 kOhm ranges). For the serial interface, the following commands are implemented in current firmware:

idn

returns instrument identification PC->Instrument: idn Instrument->PC: RSYN Ver 1.00

srv

set resistance value PC->Instrument: srv 1.234LF> Instrument->PC: srv 1.234LF>

grv

set resistance value PC->Instrument: grv Instrument->PC: grv 1.234LF>

srr

set resistance range (0: 0-10 kOhm; 1: 0-100 kOhm) PC->Instrument: srr 1LF> Instrument->PC: srr 1LF>

grr

Get the resistance range (0: 0-10 kOhm; 1: 0-100 kOhm). PC->Instrument: grr Instrument->PC: grr 1LF>

scc

Set the calibration coefficient (the first argument is the coefficient number, the second is the coefficient). PC->Instrument: scc 2, 3.456LF> Instrument->PC: scc 2, 3.456LF>

gcc

Get the calibration coefficient (the argument is the coefficient number). PC->Instrument: gcc 2LF> Instrument->PC: gcc 2, 3.456LF>

gcd

get a calibration dump PC->Instrument: gcd Instrument->PC: gcc [followed by calibration constants on each line]

wmc

write calibration coefficient (into EEPROM memory; previous calibration is overwritten) PC->Instrument: wcc Instrument->PC: wcc

After first powering up, default calibration constants 0 and 12345 are loaded for offset and gain, respectively. The user needs to replace those constants with valid ones obtained by calibration. For calibration, a ohmmeter, usually in a form of multimeter has to be used. The precision of the resistance synthesizer is determined by he meter used for adjustment. On the other hand, thermal and long time drift is given by design and construction of the device. The calibration procedure is as follows:

  1. Turn on the calibration meter and resistance synthesizer, connect the appropriate leads, and let them warm up (typical precision meters do have a few hours of warmup required). 2, set the meter to the 10 kOhm manual range, set the synthesizer to the 10 kOhm range, and set the synthesizer to 50 kOhm. Adjust the offset to range 0 so that the meter correctly displays 50 ohms.
  2. Set the synthesizer to 10 kOhm. Adjust gain at range 0 so that the meter correctly displays 10 kOhm.
  3. Repeat steps 2 and 3 if needed. 5, do the same as step 2 on 100 kOhm ranges and adjust offset at range 1.
  4. Do the same as step 3, with a 100 kOhm value, and adjust gain at range 1.
  5. Repeat steps 4 and 5 if needed.
  6. Issue the wmc command to overwrite previous calibration values in the EEPROM.

Verification

For parameter verification, I performed two tests: a linearity check and short-term stability. enter image description here For the linearity test, I set the values of the DAC converter to values from 0 to 262143 in increments of 32768. I measured the resitance values using an HP34401A multimeter and calculated the difference from the linear fit of the values, expressed in the least significant digits of the value. As apparent from the graph, the typical deviation from linearity is around 0.2 LSB, indicating that the used DAC has very good linearity, and apart from that, linearity isn't degraded by the analog functionality (chosen opamps and reference resistors). Short-term stability: I measured the value of resistance set to 5 kOhm over the course of one hour. The value was stable within the 20 mOhm range. enter image description here

Resources

A video showing the synthesizer in operation is at https://youtu.be/5EVBY4_3-oE

Resume

This resistance synthesizer is not a very common target of DIY designs, but nonetheless, it's a useful tool for automatic calibration of test and measurement instruments or as a general-purpose tool for testing and adjusting multimeters, controllers, and similar apparatus.

Parts

90
QtyValueFootprintReferences
150RResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR3, R5, R12, R13, R14, R15, R16, R17, R18, R21, R22, R23, R25, R26, R27
10100nCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC2, C3, C5, C8, C9, C10, C11, C12, C13, C16
9TestPointTestPoint:TestPoint_Pad_1.0x1.0mmTP1, TP2, TP3, TP4, TP5, TP6, TP7, TP8, TP9
69k1Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR6, R7, R11, R36, R37, R38
5DNPResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR2, R4, R31, R32, R33
420k0Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR8, R20, R29, R30
4MountingHoleMountingHole:MountingHole_3.2mm_M3_DIN965_PadH1, H2, H3, H4
310uCapacitor_Tantalum_SMD:CP_EIA-6032-28_Kemet-C_Pad2.25x2.35mm_HandSolderC4, C6, C7
3910RResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR1, R34, R35
3Conn_01x06_MaleConnector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_VerticalJ1, J2, J3
3LEDLED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolderD1, D2, D3
3OPA145Package_SO:SOIC-8_3.9x4.9mm_P1.27mmU1, U6, U12
222pCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC14, C15
23k01Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR10, R28
26k98Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR9, R24
2Conn_01x05_MaleConnector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalJ4, J5
2DG441xJPackage_SO:SO-16_3.9x9.9mm_P1.27mmU7, U11
1100pCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC1
188k7Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR19
1AT90S4433Package_QFP:TQFP-32_7x7mm_P0.8mmU10
1AVR-ISP-6Connector_IDC:IDC-Header_2x03_P2.54mm_VerticalJ6
1Crystal_GND24Crystal:Crystal_SMD_Abracon_ABM3B-4Pin_5.0x3.2mmY1
1ISO7341CPackage_SO:SOIC-16W_7.5x10.3mm_P1.27mmU3
1L78L05_SO8Package_SO:SOIC-8_3.9x4.9mm_P1.27mmU5
1LT1021Package_DIP:DIP-8_W7.62mm_SocketU2
1LTC2756Package_SO:SSOP-28_5.3x10.2mm_P0.65mmU4
1OPA202Package_SO:SOIC-8_3.9x4.9mm_P1.27mmU8
1TL071Package_SO:SOIC-8_3.9x4.9mm_P1.27mmU9
1logo_genericj_lib:logo_rpg7x9LOGO1

More from jaromir-sukuba/rsyn

1
  • 2 layers140 × 32 mmDisp test, the printed circuit board in 3D

    Disp test

    jaromir-sukuba/rsyn

    Resistance synthesizer

    43 parts4MIT

Similar boards

  • 4 layers150 × 99.5 mmRnvm bart, the printed circuit board in 3D

    Rnvm bart

    kitspace-test-repos/kicad6-file-collection

    883 partsMIT
  • 2 layers130 × 80 mmSmu main 1, the printed circuit board in 3D

    Smu main 1

    jaromir-sukuba/J-SMU

    DIY source-measure unit

    210 parts244
  • 4 layers70 × 35.5 mm2023 PiezoPreamp, the printed circuit board in 3D

    2023 PiezoPreamp

    arxwtf/2023_PiezoPreamp2

    Piezo preamplifier v2 with Baxandall tone control and battery indicator. KiCAD v7 project.

    73 parts2MIT
  • 4 layers72.5 × 50 mmSimple, the printed circuit board in 3D

    Simple

    Atmelfan/src-multislope-adc

    Multislope ADC

    78 parts
  • 2 layers158.1 × 124.5 mmUsb1, the printed circuit board in 3D

    Usb1

    neuroidss/FreeEEG32-beta

    as FreeEEG32 plus alpha1.5 test passed, FreeEEG32 project changed to beta version

    213 parts166AGPL-3.0
  • 4 layers70 × 70 mmFreeEEG32-alpha1.5, the printed circuit board in 3D

    FreeEEG32-alpha1.5

    neuroidss/FreeEEG32-alpha1.5

    4xAD7771BCPZ 64 kSPS, ADR4525BRZ 2.5V REF +-0.02%, STM32H743ZIT6 MCU 1027 DMIPS

    198 parts24AGPL-3.0
  • 4 layers70 × 70 mmFreeEEG32-alpha131, the printed circuit board in 3D

    FreeEEG32-alpha131

    neuroidss/FreeEEG32-alpha131

    https://hackaday.io/project/181683-freeeeg32-alpha131

    124 parts4AGPL-3.0

Questions

How big is the Rsyn1 PCB?

It measures 100 × 100 mm and has 4 copper layers, 1.59 mm thick.

What parts does the Rsyn1 use?

90 parts, built around the OPA145ID, OPA202ID and ISO7341CDW. 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 Rsyn1 KiCad files?

From the jaromir-sukuba/rsyn repository on GitHub, at the commit this page was made from: the board is PCB/rsyn-analog/rsyn1.kicad_pcb and its schematic PCB/display/disp_test.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

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