
Metaldetector
Petersdavis/balanced_pulse_induction_metal_detector
Open source pulse induction balance metal detector

Handheld auto guitar tuner: custom ESP32-S3 PCB with autocorrelation pitch detection and servo-driven peg tuning
T25 445PCB is an open-source printed circuit board by RitvikPatnala, from the RitvikPatnala/auto-guitar-tuner repository on GitHub, published under the MIT licence. It is a 2-layer board of 97.4 × 72.1 mm with 74 parts on 63 nets, routed with 323 tracks and 92 vias.
It is built around the ESP32-S3-WROOM-1-N8, AP62150WU and LM386MX-1/NOPB-HXY, with the KMR232NGULCLFS, VLS6045EX-3R3N and 10118192-0001LF among its other parts. Its parts include 19 capacitors, 15 resistors, 9 connectors, 4 ICs and 2 switches. It belongs with the audio and music and robots and motor control boards and the ESP32 boards of this library.
A handheld device that detects a guitar string's pitch and physically rotates the tuning peg until the string is in tune. Built around a custom ESP32-S3 PCB designed from schematic capture to routed layout, with real-time pitch detection firmware and closed-loop servo control. Tunes to within ±12 cents across all six strings and multiple tuning standards (Standard, Eb, Drop D, Open G).
The most interesting design decision in the project. Guitar strings produce strong harmonics — the 2nd harmonic often carries more energy than the fundamental, so naive FFT peak-picking frequently reports the octave above the true pitch. Time-domain autocorrelation measures the signal's self-similarity across lag values, which naturally locks onto the fundamental period. It was also faster on the ESP32-S3:
| Approach | Latency |
|---|---|
| Autocorrelation | ~22 ms |
| FFT + peak detection | ~48 ms |
The pipeline: Hann window → autocorrelation over the guitar's lag range (73–330 Hz) → normalization → zero-crossing peak detection → parabolic sub-sample interpolation for resolution beyond the lag grid. The ~22 ms loop lets the tuner track pitch continuously while the motor turns, so the user doesn't need to re-pluck after every adjustment.
| Subsystem | Result |
|---|---|
| Power rails | 3.353 V / 4.995 V measured (±1% of nominal) |
| Audio chain | Gain of ~52 measured (target 50); piezo signal 84 mV |
| Pitch detection | ±12 cents final tuning accuracy, ~22 ms latency |
| Control | Autonomous tuning verified on all 6 strings + alternate tunings |
| Qty | Value | Footprint | References |
|---|---|---|---|
| 10 | TestPoint | TestPoint:TestPoint_Pad_D1.0mm | TP3, TP4, TP5, TP7, TP8, TP9, TP10, TP11, TP12, TP15 |
| 7 | 0.1uF | Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C3, C4, C7, C9, C19, C22, C25 |
| 7 | 10k | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R1, R2, R3, R8, R9, R12, R13 |
| 6 | TestPoint | TestPoint:TestPoint_Pad_D1.5mm | TP1, TP2, TP6, TP13, TP14, TP16 |
| 4 | 10uF | Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C5, C6, C13, C23 |
| 4 | MountingHole | MountingHole:MountingHole_3.2mm_M3 | H1, H2, H3, H4 |
| 3 | 1uF | Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C11, C28, C29 |
| 3 | TestPoint | TestPoint:TestPoint_Pad_D2.0mm | TP17, TP18, TP19 |
| 2 | 100k | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R6, R7 |
| 2 | 22uF | Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C8, C10 |
| 2 | AP62150WU | Package_TO_SOT_SMD:TSOT-23-6 | U2, U3 |
| 2 | KMR232NG_ULC_LFS | Button_Switch_SMD:KMR232NGULCLFS | S1, S2 |
| 2 | VLS6045EX-3R3N | Inductor_SMD:IND_VLS6045EX-3R3N | L1, L2 |
| 1 | 0.01uF | Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C12 |
| 1 | 1.2k | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R10 |
| 1 | 100uF | Capacitor_THT:CP_Radial_D6.3mm_P2.50mm | C2 |
| 1 | 10118192-0001LF | Connector_USB:AMPHENOL_10118192-0001LF | J8 |
| 1 | 160k | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R14 |
| 1 | 1M | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R4 |
| 1 | 31.6k | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R5 |
| 1 | 47k | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R15 |
| 1 | 52.3k | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R11 |
| 1 | BAT | Connector_Molex:Molex_KK-254_AE-6410-02A_1x02_P2.54mm_Vertical | J1 |
| 1 | Conn_01x03 | Connector_Molex:Molex_KK-254_AE-6410-03A_1x03_P2.54mm_Vertical | J2 |
| 1 | Conn_01x08 | Connector_Molex:Molex_KK-254_AE-6410-08A_1x08_P2.54mm_Vertical | J7 |
| 1 | ESP32-S3-WROOM-1 | RF_Module:ESP32-S3-WROOM-1 | U5 |
| 1 | LM386MX-1_NOPB | Audio_Module:SOIC127P599X175-8N | U1 |
| 1 | POW_SW | Connector_Molex:Molex_KK-254_AE-6410-02A_1x02_P2.54mm_Vertical | J3 |
| 1 | Piezo | Connector_Molex:Molex_KK-254_AE-6410-02A_1x02_P2.54mm_Vertical | J6 |
| 1 | RSBIC3100AA00K | Capacitor_THT:CAP_RSBIC3100AA00K_KEM | C1 |
| 1 | SEL_BUT | Connector_Molex:Molex_KK-254_AE-6410-02A_1x02_P2.54mm_Vertical | J5 |
| 1 | TOG_BUT | Connector_Molex:Molex_KK-254_AE-6410-02A_1x02_P2.54mm_Vertical | J4 |
| 1 | TestV | Connector_Molex:Molex_KK-254_AE-6410-02A_1x02_P2.54mm_Vertical | J9 |

Petersdavis/balanced_pulse_induction_metal_detector
Open source pulse induction balance metal detector


Mouse-GYM/auto-trainer-hardware
Repository for hardware, firmware, and software related to the Mouse-GYM modules





It measures 97.4 × 72.1 mm and has 2 copper layers, 1.6 mm thick.
74 parts, built around the ESP32-S3-WROOM-1-N8, AP62150WU, LM386MX-1/NOPB-HXY and KMR232NGULCLFS. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
From the RitvikPatnala/auto-guitar-tuner repository on GitHub, at the commit this page was made from: the board is hardware/T25_445PCB.kicad_pcb and its schematic hardware/T25_445PCB.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).