Skip to main content

KNIFE-015 – v14 / v14L: parts you can order in Slovakia and Czechia

danger

Problematic breadboard and PCB design - Not ready nor used, proper dedicated breadboard KNIFEs are KNIFE-018 and onwards.

📅 2026-10-15 · status: done · priority: high · ✍️ Ondrej Špánik

v14 / v14L = v13 / v13L with parts you can actually order in Slovakia and Czechia. Same circuit, nets, firmware pins and Nightjar board bay; only the parts that no Slovak or Czech shop sells were swapped:

Partv13 / v13Lv14 / v14LWhy
U3 (v14 only)MCP1700-3302E/TO (TO-92) + C3 1 µFLaskaKit XC6220 LDO module (3.4–6 V → 3.3 V / 1 A), no C3no 3.3 V low-dropout regulator in TO-92 at techfun.sk or LaskaKit (only AMS1117, ≈ 1 V dropout); the module has its own 10 µF capacitors
F1 (v14 only)Proffuse TZ-D-077, 77 °C (HESTORE, Hungary)Hadex K368, 84 °C77 °C out of stock in SK / CZ for months; same 4 x 11.6 mm body, same pads; more margin for the extra ≈ 0.4 W of the ESP32-S3 and U3
J3MAX9814 module, techfun.skMAX9814 module, LaskaKitout of stock at techfun.sk; same chip and three wires
  • v14 (battery): three shops (techfun.sk EUR 12.00, LaskaKit EUR 6.81, Hadex CZK 12) ≈ EUR 19.30 plus shipping, on top of the parts from the v8 order. Keeping the 142 °C placeholder fuse saves the Hadex order.
  • v14L (USB): two shops (techfun.sk EUR 12.35, LaskaKit EUR 4.43) ≈ EUR 16.78; circuit, PCB and breadboard are v13L's, only relabelled.
  • XC6220 module: pins EN, GND, VIN, (none), 3.3V OUT, GND; EN is tied to VIN on the module. On the breadboard it stands in row B (strips 20–25), its output reaches the lower 3.3 V strip with the red jumper D24 → F24; C3 and its ground jumper are gone. On the PCB U3 becomes three wire pads (GND, VIN, VOUT): the module is too big for the 27.9 mm board and too tall for the 14 mm bay, so it needs a place off the board (not checked in the enclosure yet).
  • Checks: breadboard nets = schematic (both); PCB 12 / 12 nets (both), minimum copper gap 14.1 mil (v14) / 12.7 mil (v14L); simulation with the button held and a whistle: VSW 3.68 V, 3V3 3.30 V, player on (v14) / VSW 4.97 V, EN 2.97 V, player on (v14L). No Gerbers yet.
  • Details: docs/v14_parts.md in ST-017-MOTHERBOARD (order lists with links and stock on 2026-10-15, the fuse comparison, the module's pinout); LELEK_board_v14.fzz, LELEK_board_v14L.fzz. Everything else from KNIFE-013 (v13) still applies.

v14 (battery) breadboard and schematic

v14 breadboard: the XC6220 module standing in row B, strips 20-25

v14 schematic

v14L (USB) breadboard and schematic

v14L breadboard

v14L schematic

MAX9814 GAIN and A/R pins: left unconnected, on purpose

Both pins have three states (tied to VDD, tied to GND, or left open), and "open" is a setting of its own, not a floating input. In v9–v14 both are left open, so only VDD, GND and OUT are wired:

Pinto VDDto GNDopen (used)
GAIN (maximum gain of the automatic gain control)40 dB50 dB60 dB
A/R (attack / release time ratio)1:20001:5001:4000

Why:

  • 60 dB lets the bird hear a whistle from across the room. The automatic gain control turns the gain down for loud sounds, so a whistle right next to the bird doesn't clip the output.
  • 1:4000 is the slowest release. After a loud sound the gain climbs back slowly, so it doesn't pump up the room noise in the pauses of a whistle.
  • The detector judges how tonal a sound is (the share of energy in one frequency), not how loud it is, so it doesn't depend on the exact gain.
  • Fewer wires and solder joints.

If the bird reacts to the TV or a beeping kitchen, first try GAIN to GND (50 dB), then to VDD (40 dB). From v13 on, take that "VDD" from the module's own VDD pin, which is powered from GPIO6. Do not use the 3.3 V rail: it would keep feeding the microphone while the ESP32-S3 has switched it off. Pin levels and ratios are from the MAX9814 datasheet; the actual sensitivity hasn't been tested in the wooden bird yet.

ESP32-S3 dev board pins and ADC channels

The microphone's OUT goes to GPIO4 = ADC1_CH3; CTRL (GPIO5) and MICPWR (GPIO6) sit next to it on the same side. ADC1 (GPIO1–10) is used because ADC2 cannot be read while Wi-Fi is on.

ESP32-S3 dev board pinout with ADC1 / ADC2 channels: GPIO4 = ADC1_CH3 (MIC), GPIO5 (CTRL), GPIO6 (MICPWR)

Review questions and answers​

1. Keep the microphone powered while the button is held and handle the anti-feedback in firmware? This is how v9–v12 worked: the microphone sat on the 3.3 V rail and the firmware stopped listening while the churr played, then waited 1.5 s. Since v13 the firmware does the same steps, plus one: it switches the microphone off through GPIO6 while the churr plays. That costs one wire and no part.

The current sequence (whistle.ino, LELEK_BOARD 13):

  • listening: 8 kHz audio in 32 ms blocks, a whistle detector (Goertzel filters 0.9–3.5 kHz, not yet a spectrogram / CNN, see KNIFE-009);
  • whistle found: stop sampling → microphone off → player on (Q1) → 7 s;
  • after: player off → microphone on → 200 ms to settle → listening again.

Without the MICPWR wire the same firmware falls back to the firmware-only method (MIC_PWR_PIN -1, 1.5 s cooldown), so both ways work.

2. Several replies per press instead of "one press = one response"? Yes, that is already the behaviour. While the button is held, the firmware loops: listen → reply → listen again, as often as the user whistles. Whistles during the churr are ignored. Releasing the button switches everything off; in v14L the ESP32-S3 is held in reset.

3. Detect the end of playback over UART instead of a fixed timer? Agreed that it would be more robust. Today PLAY_MS (7 s) has to be changed by hand for a different recording. With the current switching it is not safe, though:

  • Q1 cuts the player's ground. While Q1 is off, the player's GND floats up to the supply (3.7–5 V).
  • A UART line between the ESP32-S3 and the player would then push current through the player's pin protection diodes (phantom powering).
  • In v14L it could also put up to 5 V on an ESP32-S3 pin, and those pins are not 5 V tolerant.

Doing it properly needs a common ground: keep the player powered while the button is held, with no Q1, and start and stop it over UART (AT+PLAYFILE, AT commands at 115200 baud). That also removes Q1 and R5 (the option noted in KNIFE-010), but first the bench has to show two things:

  • the DFPlayer Pro stays silent at power-up when it is set up for that;
  • it reports, or can be asked, when a track has ended.

Unlike the DFPlayer Mini it has no BUSY pin. Until then, a per-file duration table in the firmware is the simple fix.

4. Hardware mic disable optional for V1? Agreed, it is optional. It is in v13 / v14 because it was cheap (one wire) and because of the MAX9814's automatic gain control:

  • during the loud churr a powered microphone turns its gain right down;
  • with A/R at 1:4000 the gain comes back very slowly (the release time is the attack time × 4000, and can reach seconds depending on the module's capacitor);
  • so after a 0.5–1 s cooldown it could still be deaf to a quiet whistle.

Powering it off resets the gain control, and it starts again at full gain after 200 ms. It also saves ~3 mA. Both settle times are datasheet-based; to measure.

5a. Is the power stage enough for the ESP32-S3's current peaks? Mostly; one point to measure.

  • v14 regulator: the XC6220 module is rated for 1 A, plenty for the ESP32-S3, which needs about 0.1 A at 240 MHz with Wi-Fi off (Wi-Fi bursts of a few hundred mA are not used).
  • The cell: the GeB 503035 is rated for only 0.25 A. The simulation shows 0.21 A while the bird plays.
  • C1 (470 µF): covers short peaks, before the button.
  • The weak spot: a nearly empty cell (3.4–3.5 V) plus the amplifier's peaks. The XC6220 needs about 0.2 V more than its 3.3 V output, so the 3.3 V could dip and reset the ESP32-S3.
  • To measure:
    • the 3.3 V rail during the churr, on a nearly empty cell;
    • the average current, with a multimeter in series;
    • peaks only with an oscilloscope.
  • v14L: USB powers the ESP32-S3 through its own regulator, so this does not apply.

5b. Can the MOSFET switching cause trouble with the player's power or a UART line?

  • Power path:
    • Q1 (logic level, about 5 mΩ) drops almost nothing.
    • The speaker outputs are bridged and float, which is fine.
    • Switching it on charges the player's input capacitors from VSW. That brief dip could reach the ESP32-S3 in v14, where both share VSW. Check it with the same 3.3 V measurement. A gate resistor of ~100 Ω–1 kΩ would soften the switch-on if needed.
  • UART / KEY / PLAY: today no signal line connects the ESP32-S3 and the player, only power and the speaker, so there is no problem. Any such line would need the change in point 3.
  • The player's USB-C port: plugged into a PC while the board is connected, it bypasses Q1 through the USB ground. Load sound files with J1 disconnected, as noted since v7.

← KNIFE-014 · ↩️ All KNIFE posts · KNIFE-016 →