Ask HN: Tech to build a self-contained appliance that lasts 20 years
I have not worked in tech long enough to see a microcontroller fail(Except in cases like dumping 5v into a 3.3v chip, and even then, most of the time it keeps working).<p>I have almost no doubt that even a cheap consumer chip will keep running up to and beyond whatever it&#x27;s flash retention time is.<p>20 years is not that long.  I would guess that quite a few consumer appliances made now will work by then.<p>Being able to totally guarantee it will work then is another matter.<p>Things I <i>do</i> see break, sometimes as a bear guarantee within a year kind of thing:<p>* Power conversion.  Some modules more than others.  I don&#x27;t see the ones with rated MTBFs fail before their time much, but cheap stuff fails all the time.<p>* Switches.  I no longer trust any mechanical switch that doesn&#x27;t cost way more than it should.  For some reason, switches seem to hate being held in the pressed position long term.  However, cherry MX and all the clones are fine, and even if they weren&#x27;t they&#x27;re swappable. I wish people would use them instead of microswitches more...<p>* Connectors.  I don&#x27;t see a lot of USB-C and 2.1mm barrel jack failures. XLR seems mostly OK. Everything else common fails proportionally to how cheap it is, except microUSB, which is a complete dumpster fire.   Therefore, I try to use USB-C and 2.1mm a lot.<p>* Power Switching.  I don&#x27;t actually see this as much as I expect.   I&#x27;m not sure I&#x27;ve ever actually seen a mechanical relay fail even though it&#x27;s very much a thing that can happen.  But it&#x27;s still something I watch out for.<p>* Marginal stuff that was out of spec to begin with but just now randomly decided to stop working.<p>Ran I2C over long wires? Yeah you&#x27;re not really supposed to.  It will work for now.  It might stop working. It might not start working again. I probably won&#x27;t be able to figure out what changed in less than several days.  Probably something about interference or a wire scooted an inch or the weather changed and that made voltage thresholds different.<p>Therefore, I pay more attention to what the datasheet says than personal experience.  I don&#x27;t care what works right now, I care what they specified to work in all conditions.<p>* Rotary encoders.  These are like switches but they switch even more so they break even more.<p>* Mechanical stuff.  I trust a chip a lot more than a mechanical part.  There are just so many more interactions, thermal, vibration, wear, etc.  It can be incredibly reliable or it can be total crap.   Nylon gears can get randomly brittle. Screws can strip.<p>If you want to do mechanical stuff at all, you should find a copy of Exact Constraint by Douglas Blanding.  Or not, it&#x27;s expensive, but at least read the Hackaday article.  I have very little spatial intelligence and can still get by when needed, mostly thanks to this one idea.<p>* Sheet metal.  This one is mostly only relevant during maintenance and is more of a personal pet peeve....   But this stuff can take on a permanent bend rather easily.  It always seems to be just a little out of alignment when you take it apart and replace it.<p>Basically, if it gets hot or moves, it&#x27;s gonna break. If it&#x27;s unique and interesting only time can tell if it lasts 100 years or 10 hours.  Pay attention to all the failures you see in everyday life.  Those are probably the same modes you need to watch out for.<p>Unfortunately, this causes a lot of conflict, because I&#x27;m constantly pushing for less and less interesting stuff with no personality or innovation anywhere on it, which seems to make the more idea driven engineers rather bored.<p>There&#x27;s a whole bunch of other soft failure modes that can be resolved by cleaning a sensor window or rebooting too, but as I don&#x27;t work in life safety stuff, I often ignore them.  Usually the fix for them would either cost money or it would introduce a hard failure mode.<p>This also causes conflict, because people remember soft failures once a month and think the thing is unreliable, even if it&#x27;s just a few seconds inconvenience, when really the soft failures could be a safety shutdown because you pushed too hard on a drill.<p>People might perceive an old thing that will happily strip its own gears as being more reliable than something that occasionally shuts off if it detects a little too much pressure.<p>There&#x27;s also lots of network related stuff that you don&#x27;t have to worry about in this case.<p>And of course, computer hardware failure issues.  Not relevant if you don&#x27;t need a full computer.<p>If you need UI, try to keep it separate.  Use a computer for that, but communicate over a really simple serial protocol, so that the UI could be reimplemented if needed,  and don&#x27;t use any weird stuff in the software.<p>Sometimes I&#x27;ve wondered about using an old game console emulator as an embedded UI, because those are likely to be around indefinitely and follow the same spec, and not much else has that kind of staying power.  That&#x27;s of course, totally nuts, but the fact I thought of it shows how insane things are getting with programmers making breaking changes all the time.