DIGILENT-logo

DIGILENT DMM Shield 5 1/2 Digit Digital Multimeter

DIGILENT-DMM-Shield-5-1-2-Digit-Digital-Multimeter-product-image

Product Information

The DMM Shield is an add-on hardware module that provides measurement capabilities to Digilent system boards featuring the Arduino Shield connector. It features 4 banana connectors for measuring volts, common ground (COM), milliamps (mA), and amps (A). The shield supports both AC and DC voltage and current measurements, as well as diode and continuity measurements. It also has resistance measurement capabilities and supports SPI connection.

The DMM Shield is compatible with various Digilent boards, including Arty-Z7, uC32TM, WF32TM, Uno32TM, Arduino Uno, Arduino Due, and Arduino Mega. It can be used with system boards operating at both 3.3V and 5V voltage levels.

Key Features:

  • Full compatibility with Digilent System Boards featuring the Arduino Shield connector
  • 4 banana connectors for measurements (Volts/, COM, mAmps, Amps)
  • Floating COM for AC/DC voltage and current measurements
  • Diode and continuity measurement/function
  • Resistance measurement
  • Supports SPI connection

Product Usage Instructions

Power
The DMM Shield is powered by the system board it is connected to. It requires both 5V0 and 3V3 power supplies. The average power consumption of the DMM Shield is 90mA. The shield features on-board power supplies that are used to power the DMM core of the board. The 5V power supply is isolated to provide an isolated reference signal for measurements.

Functional Description
Connectors and Jumpers:
The DMM Shield is equipped with an Arduino shield header that provides power and communication between the DMM Shield and the system board. It also has 4 banana connectors (J1-J4) that interface with the sources and devices to be measured.

Banana Connectors (J1-J4):

  • J1 (V/) – Used for measuring AC/DC voltages, resistances, diode, and continuity.
  • J2 (COM) – The reference point for all measurements done with the DMM Shield. COM signal is floating from all other reference points on the board.
  • J3 (500mA) – Used for measuring AC/DC currents up to 500mA.
  • J4 (5A) – Used for measuring AC/DC currents up to 5A.

DMM Shield Reference Manual

The DMM Shield is a 5 1/2 Digit digital multimeter, designed for use with Digilent microcontroller boards and FPGA boards that are equipped with the Arduino shield header, see Compatible Boards. The shield is built around the  HY3131 module from Hycon Technology, which is an analog front end DMM dedicated chip. The device has 7 measurements functions (AC/DC Voltage, AC/DC Current, Resistance, Diode, Continuity) and is factory calibrated. It can be used out of the box with the compatible system boards.
It is accessed through a custom SPI interface, using digital IO pins exposed in the DMM Shield connector.

DIGILENT-DMM-Shield-5-1-2-Digit-Digital-Multimeter-1

Overview

Features

  • Full compatibility with Digilent System Boards featuring the Arduino Shield
  • Provides 4 banana connectors for measurements(Volts/Ω, COM, mAmps, Amps). Floating COM
  • AC/DC voltage and current measurements
  • Diode, continuity measurement/function
  • Resistance measurement
  • Supports SPI connection

HY3131 Features in Brief

  • Programmable multifunctional switch network
  • High-resolution, high-speed ∑-Δ ADCs – for high conversion speed, resolution and accuracy
  • Digital RMS circuit – the conversion result is processed by the high-speed calculation of the inner hardware to realize the digital RMS [reference:  http://www.hycontek.com/wp-content/uploads/Description-HYCON-EN.pdf] Operational amplifier
  • Multifunctional comparator
  • Peak-Hold measurement circuit – to achieve higher accuracy
  • Low-Pass filter – implements a third order LPF
  • Supports SPI interface connection

Compatible Boards
The DMM Shield is hardware compatible with all Digilent boards that use the Arduino Shield connector, however, the libraries and out of box experience are written for the following boards:

  • Arty-Z7
  • uC32™
  • WF32™
  • Arduino Uno
  • Arduino Due
  • Arduino Mega

The DMMShield can be used with both 3.3V and 5V voltage levels existing on the Arduino boards.
Note: The pic32 library is written to target the uC32 micro-controller board. For all the other boards from the series, the pin-out might suffer modifications.

Specifications

Voltage and Power ParametersMinTypicalMaxUnits
Power Supply Input Voltage3.03.33.6V
Power Supply Input Voltage5.0V
Power Supply Current Consumption90100mA
RangesMinMax
AC Voltage-30+30V
DC Voltage-50+50V
AC/DC Current-5+5A
Resistances5050MΩ
  • Accuracy: +/-0.1% on Voltage, Current and 500Ω-5MΩ Resistance measurements; +/-1% on 50Ω and 50MΩ Resistances measurements
  • Resolution: 5 1/2 Digit
  • Floating COM with on board isolated power supply
  • Protections:
    • 60V PTC for Voltage and resistances and uA
    • 630mA fuse for mA rail
    • 6.3A fuse for A rail
  • Communication: Custom SPI protocol

Power

DMM Shield is powered by the system board. It uses both 5V0 and 3V3 power supplies. The average consumption of the DMM Shield is 90mA. The DMM shield features on-board power supplies that are used to power the DMM core of the board. The 5V power supply is isolated in order to provide an isolated reference signal for measurements. There are more than one reference signals on the DMM Shield board:

  • GND – Ground for the non-isolated section. References all the signals and voltage rails in the non-isolated section such as 5V0 and 3V3 voltages from the system board, relay driver, flash memory
  • VSS_ISO – Most negative voltage in the isolated section. It is the reference for isolated power supplies VCC5V0_ISO and
  • VCC3V3_ISO as well for all the digital signals in the isolated section
  • COM_ISO – Reference for the DMM measurement. All the measurements done with the DMM Shield will be referenced to COM_ISO signal, through COM connector, J2. The reference is leveled at 1.8V above VSS_ISO
  • AGND_ISO – Reference for all the analog signals in the isolated section. It is connected to the COM_ISO through a 0Ω resistor

Functional Description

Connectors and Jumpers
The DMM Shield is equipped with the Arduino shield header that provides powering and communication between the DMM Sheild and system board. There are also 4 banana connectors that interface the DMM with the sources and devices that need to be measured.

Banana Connectors (J1-J4)

  • J1 (V/Ω) – is used for measuring the AC/DC voltages, Resistances, Diode and Continuity.
  • J2 (COM) – is the reference for all the measurements that can be done with the DMM Shield. COM signal is floating from all the other reference points from the board.
  • J3 (500mA) – is used for measuring AC/DC currents up to 500mA.
  • J4 (5A) – is used for measuring AC/DC currents up to 5A.

Arduino Shield Connector (J5-J9):

  • J5 – 1×2 Header – Digital pins
  • J6 – 2×6 Header – Analog pins J7,
  • J8 – 2×8 Headers – Digital pins
  • J9 – 1×8 Header – Power pins

Jumpers:

  • JP1 – Frequency Measurement – Not Implemented

Digital Pins Used for Communication

SPI Pins
The DMM Shield supports SPI communication with both the DMM chip and the EEPROM chip. The hardware interface lines DataIn (DI), DataOut (DO) and Clock (CK) are shared between the two devices, and the Chip Select (CS) lines are separate, allowing the user to access either of them with fewer hardware resources used.
The DMM chip is electrically separated from the rest of the circuitry, therefore the communication lines need to be isolated as well. The EEPROM CS line is active high, while the DMM CS line is active low. The reading sequence for SPI DMM communication is the one below:

DIGILENT-DMM-Shield-5-1-2-Digit-Digital-Multimeter-2

The writing sequence for SPI DMM communication is the one below:

DIGILENT-DMM-Shield-5-1-2-Digit-Digital-Multimeter-3

The timing for SPI DMM communication is the one below:

DIGILENT-DMM-Shield-5-1-2-Digit-Digital-Multimeter-4

GPIO Pins
There are three GPIO pins used for Relay control: RLU, RLD, RLI. Depending on the type of measurement performed, the corresponding relay/s need to be triggered/commanded using a GPIO pin. The relays RLI, RLU, and RLD are controlled by three digital signals, IO2, IO3, and IO4, from the shield connector.

ScalesRLIRLURLD
50MΩ001
5MΩ001
500kΩ001
50kΩ001
5kΩ001
500Ω001
50Ω001
50VDC010
5VDC010
500mVDC001
50mVDC001
50VAC010
5VAC010
500mVAC001
50mVAC001
5ADC000
ScalesRLIRLURLD
500mADC000
50mADC000
5mADC100
500uADC100
5AAC000
500mAAC000
50mAAC000
5mAAC100
500uAAC100
Continuity001
Diode001

In addition to configuring the GPIO pins, setting each scale assumes the configuration of some registers. The HY3131 chip provides 23 configurable registers.

ScalesINTER20R21R22R23R24R25R26R27R28R29R2AR2BR2CR2DR2ER2F
50MΩ0x000xC00xCF0x170x930x850x000x000x550x550x000x000x080x000x000x800x86
5MΩ0x000xC00xCF0x170x930x850x000x000x550x550x000x000x080x000x800x800x86
500kΩ0x000xC00xCF0x170x930x850x000x000x550x550x000x000x080x000x080x800x86
50kΩ0x000xC00xCF0x170x830x850x000x000x550x000x000x000x400x000x060x440x94
5kΩ0x000xC00xCF0x170x830x850x000x000x550x000x000x000x400x600x000x440x94
500Ω0x000xC00xCF0x170x830x350x000x000x550x000x000x000x400x060x000x440x94
50Ω0x000xC00xCF0x170x830x350x010x000x550x000x000x000x400x060x000x440x94
50VDC0x000x600x000x170x8B0x010x110x000x550x310x000x220x000x000x090x280xA
5VDC0x000x600x000x170x8B0x010x110x000x550x310x000x220x000x000x900x280xA
500mVDC0x000xC00x000x170x8B0x850x110x000x550x310x000x000x000x000x000x000x90
50mVDC0x000x000x000x170x8B0x350x110x000x550x310x000x000x000x000x000x000x90
50VAC0x000xF20xDD0x070x030x520x100x800x250x310xF80x220x000x000x0D0x280xA
5VAC0x000xF20xDD0x070x030x520x100x800x250x310xF80x220x000x000xD00x880xA
500mVAC0x000x920xDD0x070x030x520x100x800x250x110xF80x000x000x000x000x000x90
50mVAC0x000x520xDD0x070x030x000x130x800x250x110xF80x000x000x000x000x000x90
5ADC0x000x000x000x170x8B0x950x110x000x550x310x000x000x000x000x000x000x80
500mADC0x000x000x000x170x8B0x950x110x000x550x310x000x000x000x000x000x000x80
50mADC0x000x000x000x170x8B0x350x110x000x550x310x000x000x000x000x000x000x80
5mADC0x000x000x000x170x8B0x950x110x000x550x310x000x000x000x000x000x000x80
500uADC0x000x000x000x170x8B0x350x110x000x550x310x000x000x000x000x000x000x80
5AAC0x000x520xDD0x070x030x000x130x800x250x110xF80x000x000x000x000x000x90
500mAAC0x000x920xDD0x070x030x520x100x800x250x110xF80x000x000x000x000x000x90
50mAAC0x000x520xDD0x070x030x000x130x800x250x110xF80x000x000x000x000x000x90
5mAAC0x000x920xDD0x070x030x520x100x800x250x110xF80x000x000x000x000x000x90
500uAAC0x000x520xDD0x070x030x000x130x800x250x110xF80x000x000x000x000x000x90
Continuity0x000x740xCF0x170x830x350x100x000x550x000x000x000x000x0A0x000x400x86
Diode0x000xC00xCF0x170x8B0x8D0x100x000x550x310x000x000x000x080x000x400x86

EEPROM Memory

The DMM Shield is equipped with a non-volatile EEPROM memory chip from Microchip: 93LC66BT  datasheet available from Microchip’s website ), which has 512 bytes/256 words (4kbits) available space. The memory can be accessed over a custom SPI protocol, using digital IO pins exposed in the DMM Shield connector: CS_EEPROM (EEPROM SPI chip select), DO (SPI MISO), DI (SPI MOSI) and CLK (SPI CLK).
While the chip select line is specific to EEPROM module, the SPI lines (data and clock) are shared with the DMM device.
Note the data is written and read from memory using word format addressing, instead of byte: bytes 0-1 are written at address 0x00, bytes 2-3 are written at address 0x01, etc.
The EEPROM is used to store the following system information:

Section ContentAddresses (words)Size
Factory calibration data0x93 – 0xFF109 words / 218 bytes
Serial Number0x8C – 0x927 words / 14 bytes
User calibration data0x1F – 0x8B109 words / 218 bytes
Free Memory0x00 – 0x1E31 words / 62 bytes

Please consult the DMM Shield Library User Guide for more information about the EEPROM module usage and communication. For more details about Calibration process, read more on Calibration Procedure below.

Measurement Scales
DMM Shield comes with preset scales of measurement. They will indicate the maximum value that can be accurately measured with the device. Keep in mind that at low values the resolution is lower and different scales might give a more accurate result since the device is calibrated closer that value. Ex: for a 40kΩ resistor is better to use the 50kΩ scale instead of the 500kΩ for a better resolution. There are 4 scales for voltages, 5 for current and 7 for resistances. Additionally, there are two extra scales for Diode and Continuity.

The device comes factory calibrated for each scale. For more details about calibration please see the Calibration procedure below.

Accuracy
The accuracy of the DMM Shield is around 0.1% for AC/DC Currents and Voltages, 500Ω-5MΩ Resistances and within the scales; 1% for 50Ω and 50MΩ Resistances. For AC Current and Voltage we guarantee the 0.1% accuracy at 50/60Hz. Note that outrunning the end of a scale will increase the measurement error. The accuracy is computed in percentage as a difference between the reference value and the measured value, reported to full scale.
Let’s consider $R_{F}, M_{F}$ as the reference and the measured value at full scale and $F_{S}$ the full scale. The accuracy is computed as follows:

Scales
AC Voltage50m500m530V
DC Voltage50m500m550V
AC/DC Current500u5m50m500m5A
Resistances505005k50k500k5M50MΩ
Diode
Continuity

$$Accuracy=\frac {R_{F} – M_{F}}{F_{S}} * 100\label{10}\tag{10}$$

Calibration Procedure

The DMMShield needs calibration before performing measurements and delivering correctly measured values to the user. This is due to errors introduced by the chip itself and on-board additional electronics. Calibration is the process of computing and applying correction coefficients to the measured values that allow precise measurements.
The process consists of computing an additive and a multiplicative coefficient for each scale.
Calibration is done by collecting pairs of reference value and measured value (RefVal, MsVal) in multiple points. The reference value is the value measured with an accurate instrument, considered to be the actual value to be measured by the DMMShield device. The measured value is the value reported by DMMShield hardware. When all these pairs are collected, the calibration coefficients are computed mainly using the difference between the reference and the measured values.
Depending on the scale, different types of calibration are performed, as detailed in the following chapters:
2 Points Calibration for Resistance Scales
This method applies to the Resistance scales. It collects the pairs (RefVal, MsVal) in two points: 0 point (short between probes), and full scale value.
Let’s consider this pairs as being ($R_{0}$, $M_{0}$) and ($R_{F}$, $M_{F}$). The calibration coefficients are computed in the following manner:
Calib_{MULT})\label{2}\tag{2}$$
The reference value for the short is considered to be 0: $R_{0} = 0$
The calibration coefficients are applied to the acquired value in the following manner: $$Value_{corrected}=(1 +
Calib_{MULT})Value_{acquired} + Calib_{ADD}\label{3}\tag{3}$$
3 Points Calibration for DC
This method applies to the DC Voltage and DC Current scales. It collects the pairs (RefVal, MsVal) in three points: 0 point (short between probes for voltage and open for current), negative full scale value and positive full scale value. For example, for VoltageDC500m scale, the following points are used: 0 point (short between probes), -500mV, 500 mV.
Let’s consider this pairs as being ($R_{0}$, $M_{0}$), ($R_{FN}$, $M_{FN}$) and ($R_{FP}$, $M_{FP}$). The calibration coefficients are computed in the following manner:
$$Calib_{MULT}=\frac {R_{FP} – R_{FN}}{M_{FP} – M_{FN}} – 1\label{4}\tag{4}$$ $$Calib_{ADD}=(R_{0} – M_{0})(1 +
Calib_{MULT})\label{5}\tag{5}$$
The reference value for the zero calibration is considered to be 0: $R_{0} = 0$
The calibration coefficients are applied to the acquired value in the following manner: $$Value_{corrected}=(1 +
Calib_{MULT})Value_{acquired} + Calib_{ADD}\label{6}\tag{6}$$
2 Points Calibration for AC
This method applies to the AC Voltage and AC Current scales. It collects the pairs (RefVal, MsVal) in two points: 0 point (short between probes for voltage and open for current) and full scale value. For example, for VoltageAC500m scale, the following points are used: 0 point
(short between probes) and 500 mV.
Let’s consider this pairs as being ($R_{0}$, $M_{0}$), ($R_{F}$, $M_{F}$). The calibration coefficients are computed in the following manner:$$Calib_{MULT}=\frac {R_{F}}{\sqrt{{M_{F}}^2 – {M_{0}}^2}} – 1\label{7}\tag{7}$$ $$Calib_{ADD}= M_{0}\label{8}\tag{8}$$
The reference value for the zero calibration is considered to be 0: $R_{0} = 0$
The calibration coefficients are applied to the acquired value in the following manner: $$Value_{corrected}=(1 + Calib_{MULT})\sqrt{|
{Value_{acquired}}^2- {Calib_{ADD}}^2 |}\label{9}\tag{9}$$

Software Libraries

Digilent provides libraries to access DMM Shield functionality. The libraries were created to support ZYNQ plaform and Digilent PIC32 microcontroller boards. Both libraries come with a demo that allows the communication with the DMM Shield through UART. Functions as setting a scale and measure can be accessed by entering commands in the UART terminal emulator. Another demo shows how to access the memory left in the EEPROM by reading and writing 32 words. Documentation and downloads for these libraries can be found at the following locations:

  • ZYNQ
  • PIC32
  • Arduino

Appendix: Pinout Tables

DMM Shield Connector Pinout

Banana Connector Interface

J1J2J3J4
Voltage/ΩCOMCurrent (mA)Current (A)

Power Connector

J9
Connector pin numberArduino Shield Name
1NC
23V3
3NC
43V3
55V0
6GND
7GND
8VIN
Arrow.com.

Analog Connector

J6
Outer RowInner Row
Connector pin numberArduino Shield NameConnector pin numberArduino Shield Name
1A02A6
3A14A7
5A26A8
7A38A9
9A410A10
11A512A11

Digital IO Connector

J7
Inner RowOuter row
Connector pin numberArduino Shield NameConnector pin numberArduino Shield Name
1IO412A
3IO404G
5IO396IO13/CLK
7IO388IO12/DI
9IO3710IO11/DO
11IO3612IO10/CS_DMM
13IO3514IO9/CS_EEPROM
15IO3416IO8
J8
Inner RowOuter Row
Connector pin numberArduino Shield NameConnector pin numberArduino Shield Name
1IO332IO7
3IO324IO6
5IO316IO5
7IO308IO4/RLD
9IO2910IO3/RLU
11IO2812IO2/RLI
13IO2714IO1
15IO2616IO0

About this Document
This reference manual applies to Revision C of the DMM Shield.

Additional Information

  • Arduino DMM Shield Library User Guide
  • Arty Z7 DMM Shield Oled Demo User Guide
  • Arty Z7-20 DMM Shield Webserver Demo User Guide PIC32 DMM Shield Library User Guide
  • Zynq DMM Shield Library User Guide

Our Partners
Xilinx University
Program
Technology
Partners
Distributors

Help
Technical Support
Forum
Reference Wiki
Contact Us

Customer Info
Videos
FAQ
Store Info

Company Info
About Us
Shipping &
Returns
Legal
Jobs
Internships

Connect With Us
social

Documents / Resources

DIGILENT DMM Shield 5 1/2 Digit Digital Multimeter [pdf] User Manual
HY3131, DMM Shield, 5 1 2 Digit Digital Multimeter, DMM Shield 5 1 2 Digit Digital Multimeter, Digit Digital Multimeter, Digital Multimeter, Multimeter

References

Leave a comment

Your email address will not be published. Required fields are marked *