Wiring
The test: one button
- Phone charger, 5 VESP32 USB portPower, by Micro-USB
- ESP32 GPIO 4Trimmer, outer legOpen drain: pulls low for 0.2 s to tap
- Trimmer, middle leg1 MΩ resistorTurn until every tap works and nothing else
- 1 MΩ resistorAlligator clipJumper off the breadboard
- Alligator clipFoil pad on Elec./Volt.Bites the foil tail
The unit
Base: ESP32 DevKit V1
Box beside the stove, under the strip
- GPIO 13Timer pad20 kΩ trimmer, then 1 MΩ. Open drain, 0.2 s low per tap
- GPIO 4Elec./Volt. pad20 kΩ trimmer, then 1 MΩ. Open drain, 0.2 s low per tap
- GPIO 18Down pad20 kΩ trimmer, then 1 MΩ. Open drain, 0.2 s low per tap
- GPIO 19Up pad20 kΩ trimmer, then 1 MΩ. Open drain, 0.2 s low per tap
- GPIO 22Function pad20 kΩ trimmer, then 1 MΩ. Open drain, 0.2 s low per tap
- GPIO 23On/Off pad20 kΩ trimmer, then 1 MΩ. Open drain, 0.2 s low per tap
- GPIO 26Mic SCKI2S bit clock
- GPIO 25Mic WSI2S word select
- GPIO 33Mic SDI2S data in: whistles
- 3V3Mic VDDMic power; L/R to GND picks left
- GPIO 272N7002 gate100 Ω, with 100 kΩ gate to GND. Switches the buzzer's ground
- GPIO 32Stop buttonStop button to GND, internal pull-up
- GPIO 35MQ-2 AO10 kΩ, with 20 kΩ to GND. Smoke level, kept under 3.3 V
- GPIO 34Cell +100 kΩ, with 100 kΩ to GND. Battery level, halved
- GPIO 17 (TX)Head GPIO 3 (RX)Link to the head
- GPIO 16 (RX)Head GPIO 1 (TX)Link from the head
Head: ESP32-CAM
End of the arm, over the panel
- Camera connectorOV2640 cameraReads the display and mode lights
- GPIO 13LED ring DIN330 Ω. Light ring data
- 5 V and GNDLED ring470 µF across, at the ring. Ring power, brightness capped in firmware
- GPIO 1 (TX)Base GPIO 16 (RX)Link to the base
- GPIO 3 (RX)Base GPIO 17 (TX)Link from the base
- GPIO 4On-board LEDFlash LED: kept off
Power: one 5 V rail
Perfboard in the base
- Phone charger, 5 V5 V railSchottky diode. Main power
- 5 V railTP4056 INCharges the backup cell
- TP4056 OUT, 18650 cell5 V boost boardBackup in a power cut
- 5 V boost board5 V railSchottky diode. Takes over when the charger stops
- 5 V railBase VIN, arm 5 V, partsFeeds the base, head, ring, buzzer, MQ-2
- Arm cable, 4 wiresHead5 V, GND, TX, RX