Independent Hobby Project

WhistleSense

A smart pressure-cooker whistle detection prototype designed for Indian kitchens, built to explore audio sensing, vibration detection, temperature validation, and real cooking-session data logging.

ESP32 INMP441 I2S Microphone MPU6050 Accelerometer DS18B20 / Temperature Sensing Sensor Fusion Audio Signal Processing RMS & Peak Detection Frequency Ratio Analysis Python Data Logging CSV Analysis Embedded Prototyping Product Feasibility
Section 1

Project Overview

WhistleSense is a smart pressure-cooker whistle counter concept developed as an independent hobby project. The idea was to create a compact device that attaches to a pressure cooker handle and helps users track whistle counts without needing to stand near the cooker throughout the cooking process.

The device concept combines multiple signals: pressure cooker whistle sound, vibration travelling through the cooker handle, and temperature feedback to confirm that the cooker is actively heating. The user sets a target whistle count, such as two or three whistles, and the device counts confirmed whistle events before alerting the user through a buzzer, LED/display indication, and eventually a phone notification.

WhistleSense smart pressure cooker whistle counter concept
Concept visual of WhistleSense as a compact strap-mounted device attached to a pressure cooker handle.

The broader vision was to explore whether industrial-style automation concepts could be brought into everyday kitchen workflows. Instead of manually counting cooker whistles, the project investigated whether a small embedded device could identify real whistle events reliably using practical, low-cost sensors.

Section 2

Problem Statement

In many Indian kitchens, pressure cooker cooking is still tracked manually by counting whistles. This sounds simple, but it becomes inconvenient when the user steps away, gets distracted, or is managing multiple tasks at once.

The project explored whether a small alert-only device could reduce this mental load by detecting whistles and notifying the user once a target count is reached. The key product question was whether people would value an alert-only product, or whether they would only find the concept compelling if it could also turn off the stove automatically.

User Questions Explored
  • How often do users miss pressure cooker whistles?
  • What usually happens when they miss one?
  • Would an alert-only version be useful?
  • Would users trust a small device near a cooker?
  • Would users attach the device to the handle every time?
  • Would users pay for this without stove shut-off automation?
Engineering Challenge

The main engineering challenge was not just detecting something loud. A real kitchen contains speech, utensils, mixer noise, TV audio, background movement, and short impulse sounds. The system needed to distinguish real cooker whistles from these false positives using multiple signal features.

Section 3

WhistleSense V0 Prototype

WhistleSense V0 was designed as a temporary sensor band or clip attached to a pressure cooker handle. The goal of this prototype was not to build a polished final consumer product, but to collect real cooking-session data and understand whether whistles could be detected accurately.

The V0 prototype did not need internet connectivity or mobile notifications. Its main purpose was data capture: measuring sensor signals, saving timestamped readings, and allowing manual whistle marking so the algorithm could be compared against human-labelled ground truth.

Prototype Goals
  • Attach securely to or around the cooker handle
  • Measure sound, vibration, and temperature
  • Allow manual marking of each real whistle
  • Save timestamped sensor data
  • Show whether reliable whistle detection is possible
Success Criteria
  • Good signal: detect 8 out of 10 real whistles
  • Strong signal: detect 9 out of 10 real whistles
  • False positives should be rare or explainable
  • Should work across different cooker types
  • Should survive one full cooking session safely
WhistleSense V0 prototype electronics setup
V0 prototype setup used to capture pressure cooker audio, vibration, temperature, and manual whistle markers.
Section 4

System Architecture

The WhistleSense architecture was built around an ESP32 microcontroller collecting multiple sensor streams and sending structured readings to a laptop over serial for logging and analysis. The design was kept intentionally simple so that early testing could focus on signal quality and detection feasibility.

Inputs
  • INMP441 microphone audio stream
  • MPU6050 accelerometer / vibration readings
  • Temperature sensor reading from cooker handle area
  • Manual push button for ground-truth whistle labels
Outputs and Logging
  • Serial CSV output from ESP32
  • Python logger using pyserial
  • CSV files for Excel, Anaconda, or Jupyter analysis
  • LED and buzzer for debugging and future alert testing
WhistleSense system architecture diagram
System architecture showing sensor capture, ESP32 processing, serial CSV logging, and offline analysis.
Section 5

Sensor Stack

The first sensor stack was selected to test whether whistle detection could be made more reliable by combining sound, vibration, and heat context. The microphone provided the primary signal, while accelerometer and temperature readings were included to support future sensor fusion and reduce false positives.

ESP32

Used as the main development board because it is low-cost, widely available, easy to program, and supports Wi-Fi/Bluetooth for future iterations.

INMP441 Microphone

Used to measure whistle audio intensity and frequency patterns, and to compare pressure cooker whistles against speech, utensils, mixer noise, TV audio, and other kitchen sounds.

MPU6050 Accelerometer

Used to explore vibration bursts during whistle events and check whether vibration travels clearly to the cooker handle across different cooker types.

Temperature Sensor

Used to confirm that the cooker is actively heating and to reduce false positives from random whistle-like sounds when no cooking event is happening.

Manual Button

Used to mark actual whistle events during testing, creating ground-truth labels that could be compared with algorithmic detections.

Buzzer and LED

Used for debugging, live test feedback, and future alert behaviour when a target whistle count is reached.

Section 6

Whistle Detection Logic

The detection logic evolved through multiple iterations. The first version relied on RMS sound energy crossing a threshold for a minimum duration. This worked for controlled audio clips, but was not reliable enough for real kitchens because human speech and kitchen noise can also produce high RMS values.

The algorithm then moved toward frequency-band analysis. A real cooker whistle was treated not only as a loud sound, but as a signal with energy concentrated in whistle-like frequency bands. This helped distinguish actual whistle events from random loud noises.

Detection Features Used
  • RMS sound energy
  • Peak value
  • Frequency ratio from 2000-6000 Hz
  • Frequency ratio from 3000-7000 Hz
  • Minimum duration check
  • Cooldown period after confirmed detection
Current Working Flow
  1. Read audio from INMP441
  2. Calculate RMS and peak
  3. Apply lightweight RMS prefilter
  4. Run frequency analysis only if needed
  5. Check final RMS threshold
  6. Check whistle-like frequency ratios
  7. Confirm signal duration
  8. Apply cooldown
  9. Count whistle
WhistleSense RMS and frequency ratio analysis graph
CSV analysis showing how RMS and whistle-like frequency ratios change during confirmed pressure cooker whistles.

In one of the later test runs, the updated algorithm detected four whistles while the manual button also marked four real whistles. The delay between the manual marker and algorithm detection was consistently around 760 ms, which was acceptable for an alert-focused prototype.

Section 7

Data Logging and Testing

Data logging was the most important feature of the V0 prototype. Instead of trying to perfect the product immediately, the project focused on collecting real signals from real cooking sessions and using those logs to decide whether the idea was technically promising.

Option A: Laptop Logging

The ESP32 sends CSV-style data over USB serial. A Python script reads the serial stream using pyserial and saves the data into CSV files for later analysis.

Option B: microSD Logging

A more standalone version could log to a microSD card, making it easier to give the prototype to other people for testing in their own kitchens.

Testing included human speech, kitchen background noise, pressure cooker audio played from a phone, and real pressure cooker whistle audio. Real cooker data became the main source of truth because phone audio did not match the strength and behaviour of an actual cooker whistle closely enough.

Section 8

Accelerometer and Sensor Fusion

The PDF notes mainly describe the microphone-focused development path, but the accelerometer was an important part of the intended prototype direction. The purpose of adding an MPU6050 accelerometer/gyro was to measure vibration bursts travelling through the cooker handle during whistle events.

The reason this matters is that sound alone can be fooled by speech, TV, utensils, mixers, or background noise. A real pressure cooker whistle should create a combination of signals: strong whistle-like audio, vibration activity on the cooker, and a temperature profile indicating that cooking is actually happening.

Accelerometer Role
  • Detect vibration bursts during whistle release
  • Check whether vibration transfers reliably to the handle
  • Compare signal strength across different cooker designs
  • Use vibration as a confirmation signal alongside microphone data
Future Sensor Fusion Logic
  • Microphone confirms whistle-like sound signature
  • Accelerometer confirms cooker-body vibration event
  • Temperature confirms the cooker is actively heating
  • Manual labels validate whether detections match real whistles
WhistleSense accelerometer vibration analysis graph
Accelerometer testing would help verify whether real whistle events create measurable vibration bursts at the cooker handle.

This sensor fusion direction is also what makes the project more interesting from an engineering perspective. It shows that the system was not treated as a simple sound trigger, but as a small embedded sensing problem where multiple noisy real-world signals need to be combined.

Section 9

Technical Lessons Learned

The project produced several useful technical lessons about embedded sensing, audio detection, and real-world data collection. These lessons are the strongest part of the project from a portfolio perspective.

Signal Processing Lessons
  • Phone whistle audio is not enough for validation
  • Real cooker data must be the main source of truth
  • RMS alone is risky because speech can create high energy
  • Peak alone is worse because kitchen clanks create spikes
  • Duration checks help reject short impulse noise
  • Frequency ratios are valuable for identifying whistle-like sounds
Product and Testing Lessons
  • Manual ground-truth labels made the data much more useful
  • Mic-only detection looked promising but should not be the final approach
  • Sensor placement and attachment comfort matter
  • Different cooker types may behave differently
  • Commercialisation would require strong differentiation and significant validation
WhistleSense data analysis notebook
Offline analysis helped compare raw sensor readings, detected events, and manually labelled whistle moments.
Section 10

Project Outcome

WhistleSense is being positioned as a completed independent hobby project and prototype exploration rather than an active commercial product. The technical prototype showed promising signs, especially in microphone-based whistle detection using RMS, duration, and frequency-ratio filtering.

However, turning this into a profitable consumer product would require extensive industrial design, safety validation, market testing, manufacturing, app development, support infrastructure, and differentiation against established appliance and kitchen technology brands. Based on that commercial reality, the project is best presented as a strong technical learning project rather than a startup attempt.

Final positioning: WhistleSense demonstrates embedded prototyping, sensor selection, signal processing, data logging, algorithm iteration, and product feasibility thinking in a real-world kitchen environment.
Embedded Systems
  • ESP32 prototyping
  • I2S microphone integration
  • Accelerometer testing
  • Temperature sensing
  • Button, LED, and buzzer I/O
Data and Algorithms
  • Serial data logging
  • CSV-based analysis
  • RMS and peak calculation
  • Frequency-band ratios
  • Threshold, duration, and cooldown logic
Product Thinking
  • User problem validation
  • Prototype success criteria
  • Market feasibility review
  • Competitor awareness
  • Decision to preserve as hobby project