This text describes a sensible digital counter that counts the variety of pressure-cooker whistles and likewise time period of the cooking. It triggers a buzzer alarm when the preset whistles rely or preset cooking time period is reached.
This design can be utilized in factories having boilers with stress launch valves to robotically flip them off on listening to the sound at boiling level. Or it may be utilized in steam engines to robotically minimize off energy when sound is made by the vessel’s outlet valve.
Block diagram of the undertaking is proven in Fig. 1. The parts used within the undertaking are listed underneath the Invoice of Materials desk.
Circuit and dealing
Circuit diagram of the good whistle counter is proven in Fig. 2. The circuit includes Arduino Mega 2560 board (MOD1) and LM393 based mostly sound sensor module (MOD2), which is used for detection of the whistle’s sound.
It operates at 5V and produces an analogue voltage proportional to the sound degree. This voltage is given to analogue enter pin (A0) of microcontroller MOD1.
The 4×4 keypad is used as an enter machine to set the overall variety of whistles required, or complete time period for cooking. The keypad has keys organized in 4 rows and 4 columns, that are related to eight digital enter pins of the microcontroller.
The 23mm (0.91-inch) I2C serial pin 4 of the OLED show module is interfaced with Arduino. It shows the variety of detected whistles and time period. The decision of the show is 128×32 and its driving voltage is 5V. It’s related to the SCL and SDA pins of the Arduino board.
Lively alarm buzzer (B1) used on this undertaking works on 5V. It’s related to digital output pin 53 of Arduino board MOD1. It offers 1kHz sound sign. The buzzer is triggered when the preset whistle rely or the preset cooking period is reached.
|Invoice of Materials|
|Microcontroller board||Arduino Mega 2560 (MOD1)||1|
|Sound sensor||LM393 (MOD2)||1|
|Show||23mm OLED 128×32 (MOD3)||1|
|Keypad||4×4 keypad (MOD 4)||1|
|Buzzer||MH-FMD ( B1)||1|
|On off change||S1||1|
The sound sensor MOD2’s output pin 1, related to analogue enter A0 (pin 54) of microcontroller MOD1, is digitised with 10-bit decision. A transferring window low-pass filter is applied in software program with the window dimension of 25,000 samples. The sum worth of window is in contrast with the ‘excessive threshold’ and a whistle is said detected if the sum worth is larger. The whistle sound stays excessive for a couple of seconds.
Whistle low detection can be essential. If the detected flag is true and window sum worth is lower than the ‘low threshold,’ whistle low is said. This part of the C code is proven in Fig. 3.
This technique of whistle detection could be very strong. It really works effectively even in presence of different family noises.
The opposite functionalities of software program embody working the clock timer (minutes and seconds), getting inputs from the 4×4 keypad, displaying knowledge on the OLED, and sounding the buzzer. The show exhibits the variety of detected whistles and time since begin of the cooking course of.
Working of the circuit is easy. Earlier than utilizing, set the variety of whistles you need and time required for cooking utilizing the keypad. Place the machine someplace close to the range.
When the variety of whistles reaches the preset worth, the buzzer sounds to point that the duty of the stress cooker is over and it’s time to flip off the range. If the stress cooker doesn’t sound any whistle for a protracted time frame, then additionally it sounds the buzzer, after the preset cooking time. This might occur when there’s some challenge with the stress cooker due to which it didn’t sound the buzzer.
You possibly can add the code to Arduino utilizing the IDE by choosing the fitting port of Arduino and board mannequin.
Building and testing
Add supply code (smart_kitchen_v4.C) of the undertaking on Arduino Mega 2560 board (MOD1). Then wire up the circuit as per the circuit diagram proven in Fig. 2.
Place the machine close to the cooking range and, utilizing the keypad, set the variety of whistles you need. It’s possible you’ll now begin the cooking on range. When the machine detects the set variety of whistles, it alerts you to show off the range.
The writer’s prototype’s exterior and inner views are proven in Fig. 4.
Palak Patel is an electronics engineer having expertise in embedded system growth for terminal automation trade. At the moment she is doing freelancing for embedded programs initiatives