🔍 Overview

The Precision Auto‑Ranging LR Meter is a professional‑grade instrument designed by JEP‑Electronics to measure resistance (10 Ω – 2 MΩ) and inductance (80 µH – 30 mH) with outstanding accuracy. Built on the ubiquitous Arduino UNO platform, it combines a custom analog shield with sophisticated firmware to deliver results rivaling much costlier bench equipment.

Two fundamental measurement principles are employed:

The device is controlled locally via two tactile buttons (Test / Mode) and a 16×2 I2C LCD, or remotely over USB using a full SCPI command set. Every design decision – from the 0.1% metal‑film resistors to the non‑blocking debounced button handling – is documented and traceable to the System Requirements Specification (SRS‑LRMETER‑002 v2.1).

⚙️ Firmware version 2.1 – fully compliant with SRS, featuring 16× oversampled ADC, auto‑ranging with fallback, 8‑pulse averaged inductance measurement, and real‑time non‑blocking operation.

📊 Specifications

Resistance range

10 Ω – 2 MΩ
autoranging with 4 sub‑ranges

Resistance accuracy

±1.5% / ±2 Ω
whichever greater (after calibration)

Inductance range

80 µH – 30 mH
using 2.0 µF tank capacitor

Inductance accuracy

±5%
of reading

📋 Detailed characteristics

ParameterValue
MicrocontrollerArduino UNO (ATmega328P, 5 V, 16 MHz)
Reference resistors (measured & calibrated)2005.0 Ω, 20030.0 Ω, 199870.0 Ω, 1001200.0 Ω (examples)
LC tank capacitance2.0 µF film (WIMA MKS2, ±5% , low ESR)
Display16×2 I2C LCD (PCF8574, address 0x27 or 0x3F)
Remote interfaceSCPI over USB‑Serial (9600 baud)
Supply voltage5 V from USB or barrel jack (shield <150 mA)
Measurement timeresistance <200 ms, inductance <3 s

⚠️ Error detection

ConditionDisplay message
Open circuit / no DUTOPEN / NO PART
Short circuit (<10 Ω)SHORT CIRCUIT + buzzer
Out of range (>2 MΩ)OUT OF RANGE
No LC oscillationNO OSCILLATION

📐 Schematic

Below is the complete circuit diagram of the LR Meter shield. All components are clearly marked and correspond to the hardware construction report (HCR‑LRMETER‑002).

LR Meter Schematic miniature

⬆️ Preview — high‑resolution files available in Downloads.

Key functional blocks: auto‑ranging voltage divider (R2‑R5), LC tank (C2, J1), LM393 comparator with clamping diode, I2C LCD connector, and two push‑buttons with internal pull‑ups.

🛠️ Hardware construction

The LR Meter is built on a custom double‑sided Arduino shield. Every component is carefully selected to meet the stringent requirements of SRS‑LRMETER‑002. Below are highlights from the hardware construction report (HCR‑LRMETER‑002 v1.1).

🔧 Precision references

🔀 Comparator interface

🔌 Pin assignment (shield to UNO)

Arduino pinFunction
D4Test button (active LOW, internal pull‑up)
D5Mode button (active LOW, internal pull‑up)
D6Inductor charge output (OUT_L_TEST_PIN)
D7Divider supply enable (APPLY_VOLTAGE_PIN)
D82 kΩ range select (active LOW)
D920 kΩ range select (active LOW)
D10200 kΩ range select (active LOW)
D111 MΩ range select (active LOW)
D12Pulse input from LM393
A2Voltage sense (divider midpoint)
A4/A5I2C (SDA/SCL) to LCD
A3Buzzer (optional)

📄 Full netlist, component justification and thermal calculations are available in the hardware report.

💻 Firmware & SCPI

The firmware (LR_meter_final_vol2b.ino) is a single‑file, purely procedural implementation compliant with SW‑REQ‑001 to SW‑REQ‑017. It features a cooperative state machine, non‑blocking debounce, and a fully featured SCPI parser.

⚙️ Core algorithms

📡 SCPI command set (USB‑Serial, 9600 baud)

CommandResponse example
*IDN?Arduino UNO,LR_Meter,V2.1
MEAS:RES?R : 1234.567890 Ohm
MEAS:IND?L: 0.001234 H
*CLSOK
SYST:ERR?No error

📱 UI modes (cycled by MODE button)

All time‑critical sections use millis() timers; no delay() longer than 10 ms in the main loop (SW‑REQ‑014).

📥 Downloads & documentation

All files are fully versioned and compliant with the project documentation requirements (DOC‑REQ‑003).

📋 Direct file references (from upload)

https://github.com/janengelbrecht/LRMeter
FileDescription
LR_meter_final_vol2b.inoFirmware source, fully commented (SW‑REQ‑005).
Hardware Construction Report.txtDetailed shield design, component selection, netlist.
Software_Construction_Report.txtArchitecture, module tests, traceability matrix.
System Requirements Specification.txtMaster SRS document, v2.1.
LRMeterSchematics.png / .pdfComplete circuit diagram.
Github files.