Hacker News new | past | comments | ask | show | jobs | submit login
A Linux-powered microwave oven (lwn.net)
100 points by kirschner on Feb 18, 2016 | hide | past | favorite | 63 comments



For some reason you can't open the microwave door to get your food.

After searching LWN you find a comment at the bottom that you need to run fuser on /mnt/microwave/0/door/mechlock and kill the dbus_microwave_door_status daemon.

Search google again to discover a blog from 2004 detailing how you use dmesg and modprobe to find out which number your microwave door is bound to.


Superb satire, it reminds me of "Why GNU/Linux Viruses are fairly uncommon".


http://www.gnu.org/fun/jokes/evilmalware.html for anyone who hasn't seen it yet.


Linux on a microwave feels a lot like the NetBSD toaster from all those years ago. Additionally, it doesn't make sense from a technical perspective. People have converted toaster ovens to do smd reflow with an arduino [1], and that requires a lot more delicate control of temperature and timing; hell, Linux is worse for the job because its realtime capabilities are so poor. Also, if you're going to go through the trouble of redesigning the microwave, you'd do a world of wonders to get rid of the magnetron altogether in exchange for a few microwave heating transistors [2]. That way, you can target hot spots better, have better power control, and generally make better food. If you're gonna remake the microwave, do the job right.

[1] http://whizoo.com/reflowoven [2] http://www.nxp.com/products/rf/rf-power-transistors/rf-cooki...


Yes, it sort of makes me think of the infamous Espresso machine on kickstarter a few years back (https://www.kickstarter.com/projects/zpmespresso/pid-control...). They raised a ton of money for a "hackable" PID-contolled espresso machine starting from 5+ years ago, then delay after delay after delay....

The thing is, kitchen appliances are HARD. Appliance designers spend careers doing the stuff and have manufacturing know-how and are backed by serious resources. A dude installing linux in a microwave is going to have a good time and perhaps get other folks excited and I am all for that (and have done ghetto-retrofits myself).

But there are good microwaves out there, they just cost more than others. If you just want a good microwave and want to encourage better designs, fork over the money and buy them! On the other hand, it is just a microwave. There are better ways to cook food... don't overthink it!


Can anyone here explain to me why microwave ovens always have their power settings as multiples of some value, e.g. 200/400/800w but never have the ability to set a specific power output, e.g. 425w.


Microwave ovens use magnetrons to produce the microwave radiation. Magnetrons cannot be run at anything less than full power. Some microwaves have additional coils in the magnetron that can be connected to increase the power level, but it's limited to the power levels you can get from the various combinations of coils. For the same reason, running a normal microwave at "50% power" actually means it runs at full power for several seconds, then switches off for several seconds, then repeats. The pulses are so long because starting and stopping are hard on the magnetron.


Solid-state microwave generators have been developed to replace magnetrons recently, and they can run at variable power.

http://electronicdesign.com/blog/say-good-bye-last-vacuum-tu...

Using the MHT1003N, manufacturers can use from one to eight of these 250 W units to build a microwave oven with the desired power level. And the magnetron’s 4 kV power supply goes away in place of a supply of 28 to 50 volts. Furthermore, the crude on-off control of the magnetron can be replaced with full variable power control.

However, as far as I know there's no consumer devices containing things like this yet - the only ones I've seen were concept devices from Freescale. This article suggests we won't see them until 2017, and then only in high-end cookers:

http://www.electronicsweekly.com/news/design/the-future-of-m...


They are as-yet too expensive for low-end microwaves, IIRC they are around 0.10 per watt in quantity so $100 in parts just for a 1kW oven.


This isn't true, if you get one of the Panasonic microwaves with their "Inverter" feature. It really does run the magnetron at different power levels. It works quite nicely.


> Panasonic microwaves with their "Inverter" feature

Some GEs claim to use inverters but only for defrosting. I've been wondering why they wouldn't use it for other functions.


At a total guess it's down to the lack of precision in the output at anything other than full power. Most (all?) microwaves just pulse the magnetron to achieve an average delivery of the rated power so the difference between 400W and 425W would be dependent on the time the microwave runs, given most tend to use a fairly long time period.

You can see this effect if you run a microwave on low power for a short period - sometimes the magnetron will be running for the full duration.


Microwaves with turning knobs (example [0], maybe not the best, but you'll get the point) can have arbitrary power setting.

My personal, electronic microwave, has values 125/250/500/750W so not completely exponential (I guess, that's what you meant?).

One thing is, you can always (?) set arbitrary time, so you can compensate to gaps in power settings.

Other thing, maybe electronics are more simple with power settings like these?

When I see exponential settings I would always think of analogy to photography and 'f-stops' [1]. Some devices have exponential settings due to the physical nature of something, but is it the case with microwaves, I don't know.

[0] http://www.firstiraq.com/sites/default/files/products/5002-1...

[1] https://en.wikipedia.org/wiki/F-number


Yeah I was wondering if it was analogous to transformers where you have multiple coils all wound together and you combine them in various ways to get different voltages.

I have almost no idea how a magnetron actually works.


It may not make sense, but in my experience, microwave manufacturers seem to be very bad at making their own device-specific software.

Somehow, the software on microwaves has gotten worse over time (even without becoming "smartmicrowaves"), which I didn't think was possible. Limited sample, but I've seen three new microwaves, in '99, '10, and '14.

The first one was really easy to use: buttons 1-6 were a quick-start for 1 to 6 minutes. e.g. hit 3 and it immediately starts with a 3-minute timer. If you hit start, it would immediately start with 30 seconds (or add 30 if it was already started).

Second one ('10) was basically the same model, but with worse software: if you used the number quickstart, it somehow couldn't accept I/O for the next half second. So if you wanted to do 90 seconds (common operation), you would have to pause after hitting 1, then hit +30. A really annoying inconvenience, and completely unnecessary.

The third microwave ('14) was admittedly a different model, but doesn't seem to have learned from previous microwave innovation. The start/+30 button doesn't work for a quick start, only for adding to an active, ticking timer. And cancel no longer deletes previous input, but emits an error sound.

How hard is it not to make microwave UI software worse?


I don't think they have gotten worse, I have always been struck by the inconsistent behavior of microwave keypads. I've used plenty, and each time I have to experiment to see if, like you say, hitting the 'add minute' or '+30 seconds' will cause it to start, or require hitting start afterwards. Changing power levels is also a guessing game, do you set time then power, or the other way around? And on and on. I doubt Linux-enabling one could make this worse...


>People have converted toaster ovens to do smd reflow with an arduino [1], and that requires a lot more delicate control of temperature and timing; hell, Linux is worse for the job because its realtime capabilities are so poor.

What the heck are you talking about? Linux has rather decent realtime facilities. It's not a hard real-time, it's soft real-time, but that's good enough for many things. It's used successfully by the LinuxCNC project for controlling CNC machines all the time, and that requires millisecond precision for running stepper motors through a parallel port. There is no way that running a toaster oven is more demanding than that.

Hell, a reflow toaster oven can be run with a controller with latencies of a second or more! It's not going to make a difference there; there's far too much latency between activating power to the heating elements and seeing a temperature change for millisecond precision to be necessary. The only problem with Linux on a toaster oven is that it's just plain overkill; an Arduino is simpler and cheaper. SMD reflow does NOT require "delicate control of temperature and timing". Reflow ovens are not that accurate. They just have to follow the recommended profile well enough, and it's not that hard once a controller has learned the characteristics of the oven.

I wouldn't run avionics systems needing hard real-time guarantees on Linux, but for soft real-time systems, Linux works well enough. To say that its RT capabilities are "so poor" is just ridiculous, unless you're looking at Linux circa 2001 or something.


Hi! Maybe you know of any oven that is using [2] or similar? I would like to buy one. Thank you.


That was the bigger wishlist item, because there aren't any out there at the moment. Unfortunately, the kitchen appliance biz is really conservative in this sector, and even with NXP having introduced the transistors a few years ago, there still aren't any on the consumer market. Freescale showed off the Sage last July [1] to try to encourage companies to move away from magnetrons, but unfortunately, everything on the market at the moment is still oldschool.

[1] http://www.nxp.com/products/rf/rf-sage:RF-SAGE-PG


It doesn't look there are any available, although there are a multitude of press releases from the last couple of years [0].

[0] https://www.google.com/search?q=solid+state+microwave+oven


There are some fascinating things you could do with one of those. You could, for example, make a "stick boiler"—like a "stick blender"—that you stick inside a cup of liquid to heat it up, without any part of the stick itself getting hot. (Presumably there'd be a waffle-grid cross-guard to block reflected RF.)

But, in the wrong hands, that's a directed-energy weapon, isn't it? (Hell, stick one of these in the right kind of tube and you've now got a coherent RF beam—a maser pointer. You could probably burn your name into a wooden building from across a football field with one.)


You can do plenty of damage with a normal microwave oven in the wrong hands, I remember reading a book from the library a few years back that detailed making an EMP from one.

Thinking of that book, I don't think it's likely that libraries would carry that kind of book any more, sadly.


Which book was that? A portable EMP could be really useful....


If I remember correctly, I think it was this one

http://www.amazon.com/Build-Laser-Phaser-Working-Projects/dp...


The 250W transistors cost £100 each. You probably need a few of them for a microwave. A microwave with these in would cost at least £1k. Probably more, so I think it will be a while.


It will be a while, yes. The price will plummet as soon as a heavy starts selling products with these components.

Looking at NXP's "RF Cooking" page, it appears they're pushing this stuff with some optimism... (http://www.nxp.com/video/sage-freescales-vision-of-an-intell...)


That's a fine looking death machine there. Then again, the buttons on my microwave are also so horrible I've been tempted...

If he gets the voice control worked out to where I can say "Tea, Earl Grey, Hot" I might be sold.


I bought a "crappy" brand microwave because it has a great UI:

One knob with rotary encoder for time (turn faster for minutes).

One knob with rotary encoder for power.

Both settingscan be changed even while microwave is running.


That's what the original microwave UI was like:

http://www.radar58.com/radarange/fullsize/2Panel.jpg

Mine is like that too, and it works really well and simple to use compared to the alternative of a dozen not-very-tactile buttons. It's based on a mechanical timer, so no buggy firmware either.


Have one like that. Only problem is that it predates the rotary plate, so i have to do half and half times to make sure they heat somewhat evenly. Great for a quick bag of popcorn though.


That's the standard interface for microwaves for me.


Lucky you. My samsung oven has something like 20 buttons with cryptic icons. Feels like an old VHS remote control.


My standard interface is a finicky touchpad. Has been for ~30 years & half a dozen microwaves.


This is one that I've bought this year: http://www.elektrogeraete-co.de/bilder/produkte/gross/434738...

Not a crappy brand, a mid-range product I think. Costs around 180 EUR here.


That's gorgeous. It would be laughed off the market here in the US. Where can I buy one?


It's this one: http://www.amazon.co.uk/Gorenje-MO-4250-CLI/dp/B00FMYZME8

I have trouble finding US shops that have it, maybe it's Europe-only brand, but hope you have better luck!


Really? Every single microwave I saw in the UK is like this one:

http://www.amazon.co.uk/Russell-Hobbs-Microwave-Litre-White/...

One knob for time, the other for power. Done.


I've not seen one like that in the US since the 80s. They all look like this:

http://tinyurl.com/uwaveimg


>Then again, the buttons on my microwave are also so horrible

Is it really that hard to push "Time cook -> 2 -> 3 -> 0 -> Start"? I mean come on I can understand wanting to optimize your life or whatever but complaining about microwave buttons seems a bit ridiculous.


For the record, many of the microwaves I've used have required something more like "Time cook -> 2 -> 2 -> 2 -> 3 -> 0 -> 0 -> 0 -> Start -> Facepalm" than the intended "Time cook -> 2 -> 3 -> 0 -> Start".

TL;DR: pressing buttons is easy, but sometimes they press your buttons back.


Ahh memories. Back in college I had a microwave where almost all of the buttons stopped working over time. Eventually I had to set everything for something like 4:44 or 44:44 and use the timer on my phone to know when to take it out.


My previous one had something like, e.g. "Cook > Power > 500W > Time > 15 sec > 15 sec > 15 sec > Start" for cooking something for 45 seconds at 500W. None of my guests knew how to use it, because pressing buttons in wrong order would do nothing (not even error "beep").


In japan at least most microwaves have au automatic mode that stops heating usually at the right time.


Gold automatic mode? Sounds blingy


You're an awful person. /s ;)

I only upvoted because I felt smart for recognizing "au". (Not a high-school graduate.)


Mine often makes the beep without registering the press. Drives me nuts.


Our Emerson is awesome, you just push 2 and it runs for 2 minutes, no need for Start. Push Start alone, and it runs for 30 seconds, every push adds 30 seconds.

Haven't pushed more than two buttons in almost a year.


Some microwave ovens have pretty hostile user interfaces.

The microwave oven I've got doesn't let you use the number keys to specify the power level. Each press of the power level button decrements the power level by 10%, and the first press doesn't count. So to cook something at 30%, you need to press the power level button 8 times before typing in the cooking time.


Or you have the quick option, where hitting start add time in 30 second units.


Hmm... as a microwave oven is (essentially) just a large 2.4ghz transmitter, does this mean I'll have to stop running linux on it if the FCC gets their way and locks down radio modifications?


This reminds me a lot of this project: https://www.youtube.com/watch?v=e2YtARzJTys

It integrated a raspberry pi with a barcode scanner and microwave. All you needed to do to cook prepackaged food was scan the barcode. It had all the times set in and all of the mixing and instructions.

I think that feature is useful.


Once I tried to warm up some food in a microwave oven at work and it would not run (no light or fan.) I opened the door and now the fan was running. Close the door and it stopped again. No idea if there was any microwave radiation coming out but I quickly unplugged that thing and put a note on it for facility staff. Not sure how a safety sensor would fail in that manner!


My microwave has a horrid interface; instead of buttons for setting the time to cook, it has a digital dial with a bizare nonlinear sensitivity. Fortunately it has a "add 30s" button, as the digital dial is so hard to use that I press the "add 30s" button 10 times for something that needs 5 minutes to cook.


related $1500 June machine learning vision oven thingy http://fortune.com/2015/06/09/june-smart-oven/


Can I link my phone to it? Can I use it to generate micro black holes and send messages to the past?

This is important


Please no novelty accounts. This isn't Reddit.


oh come on this is my regular nickname, I just made a funny post, that's all


You can link your phone to it, you will still need a lifter and a direct link from your house to CERN.


This was really just done so that Richard Stallman could eat popcorn again without going into a rant. Nobody tell him that the genes for the corn it's made from are likely proprietary.


He should only eat GPL'ed popcorns.


Actually, there are universities doing genetic research on corn that have published some variants under free licenses.

So he might actually be able to eat corn under GPL license.


Like I was joking or something...


This won't fix popcorn rants. Introducing GNU/Linux only shifts the burden: there is still a risk of kernel panic.

I'll show myself out.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: