Milliohm meter with 4-wire sensing
Build it step by step
0 of 7 doneBuild the current source
LM317 and 10 ohm resistor.
Check the current
Meter in series, about 125 mA.
Wire the ADS1115
Differential A0 to A1.
Zero with the clips shorted
Send z.
Measure a known shunt
Check the reading.
Enter the real current
c command.
Measure wire and traces
Compare lengths.
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
- Development BoardsBuyArduino Nano × 1
- SensorsBuy
- PowerBuy
- PassivesBuyResistor 10 Ω × 1
- Connectors
- DisplaysBuy
Tick what you already own. It saves to My Garage, so “Build with what I have” knows.
Wiring
| From | To | Why |
|---|---|---|
| Nano 5V | LM317 IN | Supply |
| LM317 OUT | One end of the 10 ohm resistor | Current set resistor |
| 10 ohm resistor other end | LM317 ADJ, and force lead 1 | Current is about 1.25 V / 10 ohm = 125 mA |
| Force lead 2 | Nano GND | Current return |
| Sense lead 1 | ADS1115 A0 | Inside the force clips |
| Sense lead 2 | ADS1115 A1 | Inside the force clips |
| ADS1115 VDD and GND | Nano 5V and GND | Power |
| ADS1115 SDA and SCL | Nano A4 and A5 | I2C |
| OLED SDA and SCL | Nano A4 and A5 | I2C (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.
| Check | Expected |
|---|---|
| Clips shorted | Near zero after the z command |
| A 0.1 ohm shunt | Reads about 100 milliohms |
| Longer wire | Higher reading |
| Sense leads swapped | Reads 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 →
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.
