KNIFE-013 – v13 / v13L: microphone off while the bird sings, everything off when the button is up
Problematic breadboard and PCB design - Not ready nor used, proper dedicated breadboard KNIFEs are KNIFE-018 and onwards.
📅 2026-10-12 · stav: hotové · priorita: vysoká · ✍️ Ondrej Špánik
- requirements checked on v12 / v12L: (1) the microphone is completely off every time the DFPlayer Pro plays and back on right after; (2) everything is off the moment the big button (E11–F16) is released
- v12: (1) no (the microphone sat on the 3.3 V rail; the firmware only ignored it), (2) yes. v12L: (1) no, (2) no (the player stopped, but the ESP32-S3 and the microphone kept running from USB) → v13 / v13L
- microphone from an ESP32-S3 pin (MICPWR, GPIO6), both versions: the MAX9814 module has no shutdown pin but draws only ~3 mA, so a pin can power it. The firmware switches the microphone off, then the player on; after the churr the player off, the microphone on, 200 ms settle, listen again
- v13L: the button drives the ESP32-S3's reset (EN) pin through R6 680 Ω / R7 1 kΩ from the switched 5 V: held → EN ≈ 3.0 V, runs; released → EN ≈ 0.3 V, held in reset by hardware, all pins float → microphone unpowered, Q1 held off by R5, player without VIN. First try (2.2k / 4.7k) left EN at 1.07 V when released (VSW floats, so only R7 fights the board's 10k pull-up) — caught in simulation, values changed
- v13 adds no part (one wire pad); v13L adds R6, R7 (techfun.sk resistor pack)
- verified: breadboard = schematic and PCB 12 / 12 nets (both); ngspice in all four states (held / released × playing / listening); release timing (transient, dev board and player capacitances assumed): player stops 0.08 ms / ≤ 0.17 ms, microphone power gone 0.06 / 0.17 ms, ESP32-S3 off 0.20 ms / 1.6 ms (v13 / v13L)
- v13L note: the ESP32-S3 can only be flashed while the button is held (or with the EN wire off)
- details:
docs/v13_parts.mdin ST-017-MOTHERBOARD; firmwarefirmware/whistle/whistle.ino(LELEK_BOARD 13, not yet compiled)
Why only a blue wire? In v13 (battery) the microphone's VDD moved from the 3.3 V rail to an ESP32-S3 pin (GPIO6, the blue wires). The MAX9814 draws only ~3 mA, so a pin can power it, and the firmware switches that pin off before the churr plays and on right after it. "Everything off when the button is released" was already true since v9: the button sits in the battery line, before the regulator, the ESP32-S3, the microphone and the player. No new part was needed. (v13L, powered by USB, also needed R6 680 Ω / R7 1 kΩ to hold the ESP32-S3 in reset while the button is up; see docs/v13_parts.md.)


From OFF to LISTENING + MATCHING (predisposition, mostly estimates, not measured)
| Step | Time | Source |
|---|---|---|
| Button press → supply up (contact bounce, U3 / dev board capacitors) | ~5–10 ms | estimate (tact switch bounce) |
ESP32-S3 boot to setup() (bootloader, Arduino core) | ~0.3 s | estimate; v13L: EN rises in < 1 ms first |
| Microphone power on → settled | 0.2 s | fixed in firmware (MIC_SETTLE_MS), real settling not measured |
| OFF → LISTENING | ≈ 0.5 s | |
| Whistle → recognized (8 tonal blocks of 32 ms, + up to one block of alignment) | 0.26–0.29 s | simulated (Python model of the firmware) |
| OFF → MATCHING SOUND (whistling from the moment the button is pressed) | ≈ 0.8 s | only whistling after LISTENING counts |
| Recognized → microphone off → player switched on (Q1) | < 1 ms | firmware order, MOSFET switching in µs |
| Player boot → churr audible | ~1 s | estimate; DFPlayer Pro boot never measured |
| Press → churr heard | ≈ 1.8 s | |
| Churr | 6.0 s (player powered 7 s) | lelek_churr.wav, PLAY_MS |
| End of churr → listening again | 0.2 s | player cut at once, microphone settle |
| Button released → player silent / microphone off / ESP32-S3 off | 0.08 / 0.06 / 0.20 ms (v13), ≤ 0.17 / 0.17 / 1.6 ms (v13L) | ngspice transient, capacitances assumed |
To measure first on the bench: the ESP32-S3 boot time, the DFPlayer Pro's boot-to-sound time, and how long the MAX9814 really needs after power-on; the two boot times are ~1.3 s of the 1.8 s.