Wiring

The test: one button

5 VChargerBreadboardESP32GPIO 420 kΩ trim1 MΩElec./Volt.ClipFoil pad
  1. Phone charger, 5 VESP32 USB portPower, by Micro-USB
  2. ESP32 GPIO 4Trimmer, outer legOpen drain: pulls low for 0.2 s to tap
  3. Trimmer, middle leg1 MΩ resistorTurn until every tap works and nothing else
  4. 1 MΩ resistorAlligator clipJumper off the breadboard
  5. Alligator clipFoil pad on Elec./Volt.Bites the foil tail

The unit

HeadESP32-CAMCameraGPIO 13LED ringArm, 4 wires5VGNDTXRXBaseESP32 DevKitTimer13Elec./Volt.4Down18Up19Function22On/Off2320 kΩ + 1 MΩPads26 · 25 · 33INMP441 mic27Buzzer, by 2N700232Stop button35MQ-2 smoke3418650 cell5 V railChargerCell, TP4056, boost

Base: ESP32 DevKit V1

Box beside the stove, under the strip

  1. GPIO 13Timer pad20 kΩ trimmer, then 1 MΩ. Open drain, 0.2 s low per tap
  2. GPIO 4Elec./Volt. pad20 kΩ trimmer, then 1 MΩ. Open drain, 0.2 s low per tap
  3. GPIO 18Down pad20 kΩ trimmer, then 1 MΩ. Open drain, 0.2 s low per tap
  4. GPIO 19Up pad20 kΩ trimmer, then 1 MΩ. Open drain, 0.2 s low per tap
  5. GPIO 22Function pad20 kΩ trimmer, then 1 MΩ. Open drain, 0.2 s low per tap
  6. GPIO 23On/Off pad20 kΩ trimmer, then 1 MΩ. Open drain, 0.2 s low per tap
  7. GPIO 26Mic SCKI2S bit clock
  8. GPIO 25Mic WSI2S word select
  9. GPIO 33Mic SDI2S data in: whistles
  10. 3V3Mic VDDMic power; L/R to GND picks left
  11. GPIO 272N7002 gate100 Ω, with 100 kΩ gate to GND. Switches the buzzer's ground
  12. GPIO 32Stop buttonStop button to GND, internal pull-up
  13. GPIO 35MQ-2 AO10 kΩ, with 20 kΩ to GND. Smoke level, kept under 3.3 V
  14. GPIO 34Cell +100 kΩ, with 100 kΩ to GND. Battery level, halved
  15. GPIO 17 (TX)Head GPIO 3 (RX)Link to the head
  16. GPIO 16 (RX)Head GPIO 1 (TX)Link from the head

Power: one 5 V rail

Perfboard in the base

  1. Phone charger, 5 V5 V railSchottky diode. Main power
  2. 5 V railTP4056 INCharges the backup cell
  3. TP4056 OUT, 18650 cell5 V boost boardBackup in a power cut
  4. 5 V boost board5 V railSchottky diode. Takes over when the charger stops
  5. 5 V railBase VIN, arm 5 V, partsFeeds the base, head, ring, buzzer, MQ-2
  6. Arm cable, 4 wiresHead5 V, GND, TX, RX
NextSimulate