Projects / Continuity tester with a buzzer

Continuity tester with a buzzer

Beginner2 hGuided buildReviewed

Build it step by step

0 of 8 done
  1. NANO17.5 mASSD1306

    Install the libraries

    Adafruit SSD1306 and Adafruit GFX Library.

  2. NANO

    Measure the pull-up resistor

    Put its real value in R_PULLUP.

  3. NANO

    Wire the divider

    5V through 1 kilohm to the probe lead, then 220 ohm to A0.

  4. NANO

    Add the second lead and buzzer

    Second lead to GND, buzzer on D6.

  5. NANO

    Upload the sketch

    The display shows Open.

  6. NANO

    Touch the two probe tips together

    The display shows about 0 ohm and the buzzer beeps.

  7. NANO

    Test a 100 ohm resistor

    About 100 ohm shows, no beep.

  8. NANO

    Test a wire and a jumper

    Beeps for good connections.

In short

How do you build a continuity tester with a buzzer?

A pocket probe beeps when a circuit path is complete and shows the resistance on a display. You need Arduino Nano, Active buzzer 5 V, Resistor 1 kΩ, Resistor 220 Ω, SSD1306 OLED Display, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm). It takes 8 steps and about 120 minutes.

Level
Beginner
Time
About 120 min
Parts
7

Parts list

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

Wiring

FromToWhy
1 kilohm from 5V to the probe tip leadNano A0Pull-up so the probe pin sits high when open
220 ohm in seriesBetween the probe tip lead and A0Protects the input pin
Second probe leadNano GNDReturn lead
Active buzzer plusNano D6Continuity beep
Active buzzer minusNano GNDGround
OLED SDA and SCLNano A4 and A5I2C, address 0x3C

Code

The pull-up resistor holds A0 high at 5 V when the probes touch nothing. When the probes join a circuit, the resistance Rx between them forms a divider with the 1 kilohm resistor: the voltage on A0 is 5 V times Rx divided by (1 kilohm plus Rx). A short wire of a fraction of an ohm drags A0 almost to ground, a 50 ohm path gives about 0.24 V, which is about 48 on the ADC, and an open circuit reads 1023. Solving the divider for Rx gives the resistance shown on the display. The sketch averages 16 readings to steady the number and beeps below 50 ohms. A real multimeter uses a larger current than this tester, so this is for checking cables, solder joints and traces, not for exact low-ohm measurement. Use it only on unpowered circuits. If you touch the probes to a live supply, a voltage above 5 V could damage the Nano, so always switch off and discharge capacitors first. Never connect it to mains. The 220 ohm series resistor limits current into the pin if the probes touch a small voltage by mistake.

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).

#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>

Adafruit_SSD1306 oled(128, 64, &Wire, -1);

const uint8_t PIN_PROBE = A0, BUZ = 6;
const float R_PULLUP = 1000.0;         // measure your resistor and put its real value here
const float BEEP_BELOW_OHM = 50.0;     // below this counts as continuity

float readOhms() {
  long sum = 0;
  for (uint8_t i = 0; i < 16; i++) sum += analogRead(PIN_PROBE);
  float raw = sum / 16.0;
  if (raw > 1018) return -1;           // open circuit
  return R_PULLUP * raw / (1023.0 - raw);   // divider: pull-up above, unknown resistance below
}

void setup() {
  pinMode(BUZ, OUTPUT);
  oled.begin(SSD1306_SWITCHCAPVCC, 0x3C);
  oled.setTextColor(SSD1306_WHITE);
}

void loop() {
  float r = readOhms();
  bool beep = (r >= 0 && r < BEEP_BELOW_OHM);
  digitalWrite(BUZ, beep ? HIGH : LOW);

  oled.clearDisplay();
  oled.setTextSize(1);
  oled.setCursor(0, 0);
  oled.print("Continuity tester");
  oled.setTextSize(2);
  oled.setCursor(0, 22);
  if (r < 0) oled.print("Open");
  else if (r >= 1000) { oled.print(r / 1000.0, 1); oled.print(" k"); }
  else { oled.print(r, 0); oled.print(" ohm"); }
  oled.setTextSize(1);
  oled.setCursor(0, 54);
  oled.print(beep ? "Connected" : "Not connected");
  oled.display();
  delay(30);
}

Test checklist

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

CheckExpected
Probes apartOpen and no beep
Probes touchingNear 0 ohm and a beep
A short jumper wireBeep
A 100 ohm resistorAbout 100 ohm, no beep
A 1 kilohm resistorAbout 0.5 kohm, because the 1 kilohm pull-up is in parallel with the path to ground

If it does not work

Always shows Open

Check the probe lead reaches A0 and the other lead goes to GND.

Beeps with probes apart

A0 is shorted to ground, check the wiring.

Readings are off

Put the real pull-up value in R_PULLUP.

Buzzer never sounds

Use an active buzzer and check its polarity.

Damage risk

Only use on unpowered circuits with capacitors discharged.

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

Ask Lark AI

Common questions

What parts do I need for the continuity tester with a buzzer?

Arduino Nano, Active buzzer 5 V, Resistor 1 kΩ, Resistor 220 Ω, SSD1306 OLED Display, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm).

How long does the continuity tester with a buzzer take to build?

About 120 minutes for a beginner maker, in 8 steps.

How do I know the continuity tester with a buzzer works?

Probes apart: Open and no beep. Probes touching: Near 0 ohm and a beep. A short jumper wire: Beep.

Always shows Open: what should I check?

Check the probe lead reaches A0 and the other lead goes to GND.

Beeps with probes apart: what should I check?

A0 is shorted to ground, check the wiring.

Readings are off: what should I check?

Put the real pull-up value in R_PULLUP.

Buzzer never sounds: what should I check?

Use an active buzzer and check its polarity.