Projects / Milliohm meter with 4-wire sensing

Milliohm meter with 4-wire sensing

Intermediate3 hGuided buildReviewed

Build it step by step

0 of 7 done
  1. NANOLM317

    Build the current source

    LM317 and 10 ohm resistor.

  2. NANO

    Check the current

    Meter in series, about 125 mA.

  3. NANOADS1115

    Wire the ADS1115

    Differential A0 to A1.

  4. NANOCROCOD

    Zero with the clips shorted

    Send z.

  5. NANO

    Measure a known shunt

    Check the reading.

  6. NANO

    Enter the real current

    c command.

  7. NANO

    Measure wire and traces

    Compare lengths.

In short

How do you build a milliohm meter with 4-wire sensing?

A constant current and a 16-bit ADC measure tiny resistances such as wire, switches and PCB traces. You need Arduino Nano, ADS1115 16-bit ADC module, LM317 adjustable regulator, Resistor 10 Ω, Crocodile clip test leads (10 pack) and SSD1306 OLED Display. It takes 7 steps and about 180 minutes.

Level
Intermediate
Time
About 180 min
Parts
6

Parts list

Tick what you already own. It saves to My Garage, so “Build with what I have” knows.

Wiring

FromToWhy
Nano 5VLM317 INSupply
LM317 OUTOne end of the 10 ohm resistorCurrent set resistor
10 ohm resistor other endLM317 ADJ, and force lead 1Current is about 1.25 V / 10 ohm = 125 mA
Force lead 2Nano GNDCurrent return
Sense lead 1ADS1115 A0Inside the force clips
Sense lead 2ADS1115 A1Inside the force clips
ADS1115 VDD and GNDNano 5V and GNDPower
ADS1115 SDA and SCLNano A4 and A5I2C
OLED SDA and SCLNano A4 and A5I2C (same bus)

Code

With an ordinary meter, the resistance of the test leads is added to what you measure, which hides anything under an ohm. Four-wire sensing solves it: two leads carry a known current through the part, and two more leads, connected just inside, measure only the voltage across it, so no current flows in them and their resistance does not matter. An LM317 with a 10 ohm resistor makes a steady current of about 125 mA, and the 16-bit ADS1115 reads the voltage to a few microvolts. Short the clips together and send z to zero any offset, then measure a known part. For best accuracy measure the real current with a meter in series once and enter it with the c command, since the 10 ohm resistor is not exact. Test only parts that are powered off and discharged, never a circuit that is connected to a supply or a battery. The LM317 warms slightly, and a part dissipates current squared times resistance, so keep to low resistances. Readings beyond about 2 ohms go out of range. Arduino IDE, board "Arduino Nano" (try the Old Bootloader option if the upload fails).

Runs on a virtual Arduino Nano in your browser, with sliders for the sensors. Happy with it? Verify and upload to your real board from the same page (Chrome or Edge on a computer).

// Milliohm meter with 4-wire (Kelvin) sensing: the LM317 forces about 125 mA, the ADS1115 reads the voltage across the part.
// Library: Adafruit ADS1X15, Adafruit SSD1306. Board: Arduino Nano.
// Serial commands: z (zero with the clips shorted together), c 0.123 (set the measured current in amps).
#include <Wire.h>
#include <Adafruit_ADS1X15.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
Adafruit_ADS1115 ads;
Adafruit_SSD1306 oled(128, 64, &Wire, -1);
float currentA = 0.125;                  // measure your actual current with a meter in series and enter it with the c command
float offsetV = 0;
float readVolts() {
  long sum = 0;
  for (int i = 0; i < 16; i++) { sum += ads.readADC_Differential_0_1(); delay(10); }
  return (sum / 16.0) * 0.0078125e-3;    // GAIN_SIXTEEN: 7.8125 microvolts per count
}
void setup() {
  Serial.begin(115200);
  ads.setGain(GAIN_SIXTEEN);             // range plus or minus 0.256 V: parts up to about 2 ohms
  ads.begin();
  oled.begin(SSD1306_SWITCHCAPVCC, 0x3C);
  oled.setTextColor(SSD1306_WHITE);
}
void loop() {
  if (Serial.available()) {
    char c = Serial.read();
    if (c == 'z') offsetV = readVolts();
    if (c == 'c') currentA = Serial.parseFloat();
  }
  float v = readVolts() - offsetV;
  float mohm = v / currentA * 1000.0;
  oled.clearDisplay(); oled.setTextSize(2); oled.setCursor(0, 0);
  oled.print(mohm, 1); oled.print(" m");
  oled.write(0xEA);                      // omega on the default font
  oled.setTextSize(1); oled.setCursor(0, 40); oled.print(v * 1000.0, 3); oled.print(" mV at "); oled.print(currentA * 1000.0, 0); oled.print(" mA");
  oled.display();
  Serial.println(mohm, 2);
}

What the serial monitor should show

Open the serial monitor at the baud rate in the code. This is what our simulator prints for a virtual Arduino Nano with its sensors at their default values. Your numbers will follow your real readings, but the format should match.

0.00

Test checklist

What you should see at each check. If a reading is far off, stop and use the troubleshooting list.

CheckExpected
Clips shortedNear zero after the z command
A 0.1 ohm shuntReads about 100 milliohms
Longer wireHigher reading
Sense leads swappedReads negative

If it does not work

Unsteady reading

Keep the clips firm and away from drafts.

Always out of range

Check the part is under 2 ohms.

Reads zero

Check the force leads carry current.

Still stuck? Find the fault step by step with your multimeter →

Ask Lark AI

Common questions

What parts do I need for the milliohm meter with 4-wire sensing?

Arduino Nano, ADS1115 16-bit ADC module, LM317 adjustable regulator, Resistor 10 Ω, Crocodile clip test leads (10 pack) and SSD1306 OLED Display.

How long does the milliohm meter with 4-wire sensing take to build?

About 180 minutes for a intermediate maker, in 7 steps.

How do I know the milliohm meter with 4-wire sensing works?

Clips shorted: Near zero after the z command. A 0.1 ohm shunt: Reads about 100 milliohms. Longer wire: Higher reading.

Unsteady reading: what should I check?

Keep the clips firm and away from drafts.

Always out of range: what should I check?

Check the part is under 2 ohms.

Reads zero: what should I check?

Check the force leads carry current.