Allen Pan – Devstyler.io https://devstyler.io News for developers from tech to lifestyle Wed, 28 Apr 2021 11:37:18 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.2 Allen Pan’s Arduino-Controlled Microwave Only Works While Gaming https://devstyler.io/blog/2021/04/28/allen-pan-s-arduino-controlled-microwave-only-works-while-gaming/ Wed, 28 Apr 2021 11:37:18 +0000 https://devstyler.io/?p=49298 ...]]> Microwave ovens have been the peak of convenient cooking since the 1960s. You can microwave some pizza rolls, some vegetables, but Allen Pan decided to make gaming a more integral part of the cooking process for his most recent project.

This is a microwave oven that will only cook food while an attached game console is in use. That console is a generic all-in-one handheld with many built-in games. If a Hot Pocket requires three minutes of microwave cooking, then Pan has to play one of those games for a full three minutes or risk biting into an icy centre.

Pan used an Arduino Uno board to monitor a microphone placed in front of the console’s speaker. The console only outputs audio while a game is in play, so this was a good way to determine if the user is actively playing or if they have walked away.

If the Arduino detects sound, then it will turn on a relay in the microwave oven. All Pan needs to do is pop some food in the microwave and start playing a game. So long as his thumbs don’t get tired, he can heat up whatever treat he craves.

]]>