Adults onlyArduino NanoLevel 1/3
Cooker Whistle Counter
A sound sensor counts pressure-cooker whistles and, after the 3rd, a servo turns the gas knob off.

Adults only
Involves a gas stove and flame.
Not for children. Build at your own risk.
Strictly follow the description given with this video.
Video
The video link will be added here soon.
How it works
- The sound sensor's GATE pin goes HIGH on every loud whistle.
- The Nano counts each whistle once, ignoring echoes for a few seconds.
- At the 3rd whistle the servo turns the stove knob to OFF.
- The buzzer beeps so you know the cooking is done.
Parts you need
Kit for this projectPrice on request
Get the kitWiring

PowerGroundSignal
| # | From | Connect to |
|---|---|---|
| 1 Signal | Sound GATE | Nano D2 |
| 2 Power | Sound VCC | Nano 5V |
| 3 Ground | Sound GND | Nano GND |
| 4 Signal | Servo signal | Nano A1 |
| 5 Power | Servo red | Nano 5V |
| 6 Ground | Servo brown | Nano GND |
| 7 Signal | Buzzer + | Nano A5 |
| 8 Ground | Buzzer − | Nano GND |
3D print files
This project has no 3D-printed parts.
Code
The tested Arduino / ESP32 code for this project will be posted here, ready to copy.