Community project

Обнаружение Утечек Вибрацией

Photo of Обнаружение Утечек Вибрацией
Generated with AI

ptur

Published November 30, 2026

This project detects pipe leaks and structural vibrations by monitoring acoustic and mechanical signals using dual accelerometers and piezoelectric sensors. The system combines a LIS3DH 3-axis accelerometer, an ADXL345 sensor, and two piezoelectric disc inputs to capture vibration patterns across different frequency ranges, then processes the data on an Arduino Uno for real-time leak detection.

Builders will receive a complete wiring diagram showing sensor integration with logic level shifting, a detailed parts list with JST connectors and supporting passive components, step-by-step assembly instructions for breadboard construction, and Arduino firmware that initializes both accelerometers via I2C and streams sensor data at 250 Hz for analysis and logging.

Wiring diagram

Loading diagram…

Gather all the parts

QtyComponent
1

JST B2B-XH-A + XHP-2

Quiet Pipe circuit component

1

Passive piezoelectric disc

Quiet Pipe circuit component

1

JST B2B-XH-A + XHP-2

Quiet Pipe circuit component

1

Passive piezoelectric disc

Quiet Pipe circuit component

1

JST B4B-XH-A + XHP-4

Quiet Pipe circuit component

1

LIS3DH 3.3 V breakout

Quiet Pipe circuit component

1

JST B4B-XH-A + XHP-4

Quiet Pipe circuit component

1

GY-291 ADXL345

Quiet Pipe circuit component

1

BSS138 Logic Level Shifter

Common BSS138 MOSFET-based 4-channel bidirectional logic level converter module. Good for I2C, UART, and slow digital signals between 3.3V and 5V domains; not a strong high-speed SPI/LED data buffer.

1

MCP6002-I/P PDIP-8

Quiet Pipe circuit component

1

Ceramic Capacitor

100 nF

Through-hole ceramic capacitor bought by value, such as 22 pF, 10 nF or 100 nF (0.1 µF). It is non-polarised, so either lead can go to either net. Its most common job is decoupling: a 100 nF capacitor between an IC's supply pin and ground, placed as close to the chip as possible.

1

Electrolytic Capacitor

10 µF / 16 V

Radial aluminium electrolytic capacitor bought by value and voltage rating, such as 10 µF, 100 µF or 1000 µF 10 V. It is polarised: the + lead goes to the higher voltage and the - lead, marked by the stripe on the sleeve, to the lower voltage or ground. It is mostly used for bulk filtering across a power rail, with a voltage rating comfortably above the rail.

1

Resistor

10 kΩ 1%

Through-hole resistor (current-limiting in series with an LED)

1

Resistor

10 kΩ 1%

Through-hole resistor (current-limiting in series with an LED)

1

Electrolytic Capacitor

10 µF / 16 V

Radial aluminium electrolytic capacitor bought by value and voltage rating, such as 10 µF, 100 µF or 1000 µF 10 V. It is polarised: the + lead goes to the higher voltage and the - lead, marked by the stripe on the sleeve, to the lower voltage or ground. It is mostly used for bulk filtering across a power rail, with a voltage rating comfortably above the rail.

1

Resistor

100 kΩ

Through-hole resistor (current-limiting in series with an LED)

1

Resistor

1 MΩ

Through-hole resistor (current-limiting in series with an LED)

1

Resistor

47 kΩ

Through-hole resistor (current-limiting in series with an LED)

1

BAT85 Schottky DO-35

Quiet Pipe circuit component

1

BAT85 Schottky DO-35

Quiet Pipe circuit component

1

Resistor

4.7 kΩ

Through-hole resistor (current-limiting in series with an LED)

1

Ceramic Capacitor

100 nF

Through-hole ceramic capacitor bought by value, such as 22 pF, 10 nF or 100 nF (0.1 µF). It is non-polarised, so either lead can go to either net. Its most common job is decoupling: a 100 nF capacitor between an IC's supply pin and ground, placed as close to the chip as possible.

1

Resistor

10 kΩ 1%

Through-hole resistor (current-limiting in series with an LED)

1

Resistor

10 kΩ 1%

Through-hole resistor (current-limiting in series with an LED)

1

Electrolytic Capacitor

10 µF / 16 V

Radial aluminium electrolytic capacitor bought by value and voltage rating, such as 10 µF, 100 µF or 1000 µF 10 V. It is polarised: the + lead goes to the higher voltage and the - lead, marked by the stripe on the sleeve, to the lower voltage or ground. It is mostly used for bulk filtering across a power rail, with a voltage rating comfortably above the rail.

1

Resistor

100 kΩ

Through-hole resistor (current-limiting in series with an LED)

1

Resistor

1 MΩ

Through-hole resistor (current-limiting in series with an LED)

1

Resistor

47 kΩ

Through-hole resistor (current-limiting in series with an LED)

1

BAT85 Schottky DO-35

Quiet Pipe circuit component

1

BAT85 Schottky DO-35

Quiet Pipe circuit component

1

Resistor

4.7 kΩ

Through-hole resistor (current-limiting in series with an LED)

1

Ceramic Capacitor

100 nF

Through-hole ceramic capacitor bought by value, such as 22 pF, 10 nF or 100 nF (0.1 µF). It is non-polarised, so either lead can go to either net. Its most common job is decoupling: a 100 nF capacitor between an IC's supply pin and ground, placed as close to the chip as possible.

1

JST B2B-XH-A + XHP-2

Quiet Pipe circuit component

1

JST B2B-XH-A + XHP-2

Quiet Pipe circuit component

1

JST B4B-XH-A + XHP-4

Quiet Pipe circuit component

1

JST B4B-XH-A + XHP-4

Quiet Pipe circuit component

1

Breadboard 830 points

A full-size solderless breadboard with 830 tie points (MB-102 size), with socket grids on both sides of a centre channel and red and blue power rails along the long edges. LEDs, buttons, resistors, potentiometers, buzzers and jumper wires push into it without soldering. In a generated housing it rests in a screwless tray and carries those small parts inside the case.

Assemble it in 6 steps

1. Разметьте плату под пайку

«Установите J1–J4 на краю платы. Проверьте номер первого контакта по маркировке корпуса. Поместите усилитель и защиту рядом с J1 и J2, согласователь рядом с J3 и J4.»

2. Соберите питание и смещение

«Не подключая USB, соедините земли. Соберите два отдельных делителя 10 кОм + 10 кОм. Плюс каждого конденсатора 10 мкФ — к смещению или 5 В согласно схеме, минус — к земле. Поставьте 100 нФ рядом с выводами 8 и 4 усилителя.»

3. Соберите два входа пьезодисков

«Повторите цепь по схеме для каждого канала. Полоска нижнего диода — к защищённому узлу, верхнего — к 5 В. На усилителе соедините выводы 1 и 2, затем 6 и 7. От выходов через 4,7 кОм идите к A0 и A1.»

4. Подключите шину и проверьте монтаж

«HV — 5 В, LV — 3,3 В. A4 — SDA, A5 — SCL. На стороне кабеля датчика CS соедините с питанием логики самого датчика, SDO с землёй. Сверьте кабели прозвонкой. С вынутыми датчиками проверьте отсутствие коротких замыканий; затем от USB измерьте 5 В, 3,3 В и оба смещения. Перед установкой датчиков снова отключите USB.»

5. Распаяйте ответные части JST-XH

«J1–J4 на одном краю, контакт 1 отметьте на каждой половине. J1/J2 — жёлтый SIG и чёрный GND. J3/J4 — оранжевый 3,3 В, чёрный GND, зелёный SDA, синий SCL. Связи между половинами на схеме обозначают сопряжение контактов, не отдельные провода. Для шага JST-XH 2,50 мм используйте подходящие посадочные отверстия или адаптер, не вдавливайте штыри в ряд с шагом 2,54 мм.»

6. Проверьте шины и ряды отверстий

«Прозвоните соседние отверстия пустой платы. На плате с отдельными площадками общий узел сформируйте пайкой короткой перемычки; на полосовой плате разрежьте дорожки между разными узлами. Справа у U1 установите C1 и C2 ножками прямо между красной шиной 5 В и чёрной GND; плюс C2 к 5 В. CB1/CB2 оставьте у своих делителей, плюс к смещению. CO1/CO2 оставьте у A0/A1. Шина 3,3 В отдельная. Прозвоните каждый кабель с вставленной и вынутой вилкой до подачи питания.»

Review all connections

1. Connections between "ri1" and "Arduino"

Functionri1Arduino
digitalP1 → JST B2B-XH-A + XHP-2 1EXT

2. Connections between "j1" and "Arduino"

Functionj1Arduino
ground2GND

3. Connections between "j2" and "Arduino"

Functionj2Arduino
ground2GND

4. Connections between "j3" and "Arduino"

Functionj3Arduino
ground2GND
power13V3

5. Connections between "j4" and "Arduino"

Functionj4Arduino
ground2GND
power13V3
digital3 → JST B4B-XH-A + XHP-4 3EXT
digital4 → JST B4B-XH-A + XHP-4 4EXT

6. Connections between "ls" and "Arduino"

FunctionlsArduino
groundGNDGND
powerLV3V3
digitalLV1 → JST B4B-XH-A + XHP-4 3EXT
digitalLV2 → JST B4B-XH-A + XHP-4 4EXT
powerHV5V
digitalHV1GPIO 18
digitalHV2GPIO 19

7. Connections between "u1" and "Arduino"

Functionu1Arduino
ground4GND
power85V
digital2 → MCP6002-I/P PDIP-8 1EXT
analog7 → MCP6002-I/P PDIP-8 6EXT

8. Connections between "c1" and "Arduino"

Functionc1Arduino
ground2GND
power15V

9. Connections between "c2" and "Arduino"

Functionc2Arduino
ground-GND
power+5V

10. Connections between "rb1" and "Arduino"

Functionrb1Arduino
groundP2GND
digitalP1 → Resistor P2EXT

11. Connections between "cb1" and "Arduino"

Functioncb1Arduino
ground-GND
power+ → Resistor P2EXT

12. Connections between "dl1" and "Arduino"

Functiondl1Arduino
groundAGND
digitalK → Resistor P2EXT

13. Connections between "co1" and "Arduino"

Functionco1Arduino
ground2GND
digital1 → Resistor P2EXT

14. Connections between "rb2" and "Arduino"

Functionrb2Arduino
groundP2GND
digitalP1 → Resistor P2EXT

15. Connections between "cb2" and "Arduino"

Functioncb2Arduino
ground-GND
power+ → Resistor P2EXT

16. Connections between "dl2" and "Arduino"

Functiondl2Arduino
groundAGND
digitalK → Resistor P2EXT

17. Connections between "co2" and "Arduino"

Functionco2Arduino
ground2GND
digital1 → Resistor P2EXT

18. Connections between "ri2" and "Arduino"

Functionri2Arduino
digitalP1 → JST B2B-XH-A + XHP-2 1EXT

19. Connections between "imu3" and "Arduino"

Functionimu3Arduino
digitalCS → LIS3DH 3.3 V breakout VCCEXT
digitalSDO → LIS3DH 3.3 V breakout GNDEXT
powerVCC → JST B4B-XH-A + XHP-4 1EXT
groundGND → JST B4B-XH-A + XHP-4 2EXT
i2cSDA → JST B4B-XH-A + XHP-4 3EXT
i2cSCL → JST B4B-XH-A + XHP-4 4EXT

20. Connections between "imu4" and "Arduino"

Functionimu4Arduino
digitalCS → GY-291 ADXL345 VCCEXT
digitalSDO → GY-291 ADXL345 GNDEXT
powerVCC → JST B4B-XH-A + XHP-4 1EXT
groundGND → JST B4B-XH-A + XHP-4 2EXT
i2cSDA → JST B4B-XH-A + XHP-4 3EXT
i2cSCL → JST B4B-XH-A + XHP-4 4EXT

21. Connections between "rt1" and "Arduino"

Functionrt1Arduino
powerP15V

22. Connections between "dh1" and "Arduino"

Functiondh1Arduino
powerK5V
digitalA → Resistor P2EXT

23. Connections between "rt2" and "Arduino"

Functionrt2Arduino
powerP15V

24. Connections between "dh2" and "Arduino"

Functiondh2Arduino
powerK5V
digitalA → Resistor P2EXT

25. Connections between "ro1" and "Arduino"

Functionro1Arduino
digitalP1 → MCP6002-I/P PDIP-8 1EXT
digitalP2GPIO 14

26. Connections between "rg1" and "Arduino"

Functionrg1Arduino
digitalP2 → MCP6002-I/P PDIP-8 3EXT
digitalP1 → Resistor P2EXT

27. Connections between "rg2" and "Arduino"

Functionrg2Arduino
digitalP2 → MCP6002-I/P PDIP-8 5EXT
digitalP1 → Resistor P2EXT

28. Connections between "ro2" and "Arduino"

Functionro2Arduino
digitalP1 → MCP6002-I/P PDIP-8 7EXT
digitalP2GPIO 15

29. Connections between "rz1" and "Arduino"

Functionrz1Arduino
digitalP2 → Resistor P2EXT
digitalP1 → Resistor P2EXT

30. Connections between "rz2" and "Arduino"

Functionrz2Arduino
digitalP2 → Resistor P2EXT
digitalP1 → Resistor P2EXT

31. Connections between "pz1" and "Arduino"

Functionpz1Arduino
digitalSIG → JST B2B-XH-A + XHP-2 1EXT
digitalGND → JST B2B-XH-A + XHP-2 2EXT

32. Connections between "pz2" and "Arduino"

Functionpz2Arduino
digitalSIG → JST B2B-XH-A + XHP-2 1EXT
digitalGND → JST B2B-XH-A + XHP-2 2EXT

33. Connections between "j1plug" and "Arduino"

Functionj1plugArduino
digital1 → JST B2B-XH-A + XHP-2 1EXT
digital2 → JST B2B-XH-A + XHP-2 2EXT

34. Connections between "j2plug" and "Arduino"

Functionj2plugArduino
digital1 → JST B2B-XH-A + XHP-2 1EXT
digital2 → JST B2B-XH-A + XHP-2 2EXT

35. Connections between "j3plug" and "Arduino"

Functionj3plugArduino
digital1 → JST B4B-XH-A + XHP-4 1EXT
digital2 → JST B4B-XH-A + XHP-4 2EXT
digital3 → JST B4B-XH-A + XHP-4 3EXT
digital4 → JST B4B-XH-A + XHP-4 4EXT

36. Connections between "j4plug" and "Arduino"

Functionj4plugArduino
digital1 → JST B4B-XH-A + XHP-4 1EXT
digital2 → JST B4B-XH-A + XHP-4 2EXT
digital3 → JST B4B-XH-A + XHP-4 3EXT
digital4 → JST B4B-XH-A + XHP-4 4EXT

Deploy the firmware

#include <Arduino.h>
#include <Wire.h>
constexpr uint8_t LIS=0x18, AD=0x53;
bool wr(uint8_t a,uint8_t r,uint8_t v){Wire.beginTransmission(a);Wire.write(r);Wire.write(v);return Wire.endTransmission()==0;}
bool rd(uint8_t a,uint8_t r,uint8_t *b,uint8_t n){Wire.beginTransmission(a);Wire.write(r);if(Wire.endTransmission(false))return false;if(Wire.requestFrom(a,n)!=n)return false;while(n--)*b++=Wire.read();return true;}
uint32_t next;
void setup(){
 Serial.begin(230400); Wire.begin(); digitalWrite(A4,LOW);digitalWrite(A5,LOW);
 Wire.setClock(100000); Wire.setWireTimeout(2500,true);
 uint8_t id;
 bool l=rd(LIS,0x0f,&id,1)&&id==0x33&&wr(LIS,0x23,0x88)&&wr(LIS,0x20,0x77);
 bool a=rd(AD,0,&id,1)&&id==0xe5&&wr(AD,0x31,0x08)&&wr(AD,0x2c,0x0c)&&wr(AD,0x2d,0x08);
 Serial.print(F("Quiet Pipe TEST LIS="));Serial.print(l);Serial.print(F(" AD="));Serial.println(a);
 next=micros();
}
void loop(){
 uint32_t t=micros(); if(int32_t(t-next)<0)return; next+=4000;
 if(int32_t(t-next)>=0)next=t+4000;
 uint16_t p=analogRead(A0),q=analogRead(A1);
 uint8_t l[6]={},a[6]={}; bool okL=rd(LIS,0xa8,l,6),okA=rd(AD,0x32,a,6);
 // Human-readable diagnostic snapshots, 25 lines/s; acquisition is 250 frames/s.
 static uint8_t count; if(++count!=10)return; count=0;
 Serial.print(t);Serial.print(',');Serial.print(p);Serial.print(',');Serial.print(q);
 for(uint8_t k=0;k<6;k++){
  const uint8_t *b=k<3?l:a;uint8_t i=2*(k%3);
  Serial.print(',');if(k<3?okL:okA){int16_t raw=int16_t(uint16_t(b[i])|(uint16_t(b[i+1])<<8));Serial.print(k<3?raw/16:raw);}else Serial.print(F("NA"));
 }
 Serial.println();
}
// Analog inputs A0 and A1 are after their respective output RC filters.

Remix this project

Make it yours in one click

Open a full copy of this project in your own Schematik workspace, diagram, code, parts, and assembly steps included. Swap the sensor, add features, or redesign the whole thing with AI. The author's original stays untouched.

Open in Schematik