HackerTube English?
表示、直觉与反馈 →

不写一行程序,机器怎么知道下一步?

从咖啡机的一次出水和弹珠机的一次加分开始,顺着阀门、凸轮和温度锁扣看下去。每台机器都留下一个可以检查的瞬间:此刻,是什么让下一步得以发生?

本文的问题 · 6
  1. 把回路画出来,水为什么只往一个方向走?
  2. 米饭熟了和爆米花快好了,机器看到了什么?
  3. 门什么时候打开,决定了哪一份水在洗碗
  4. 用部件的运动来验算
  5. 换个灯体,开关要重新学什么?
  6. 同一个拉环,为什么先泄压再开口?

把回路画出来,水为什么只往一个方向走?

把滴滤机的出水口和水箱画在热管两端。如果两头都能通,膨胀的气泡凭什么把水推到高处?水箱一侧的单向阀给了这个问题一个物理答案。弹珠机里,千分继电器也没有收到一句「请加五千」的命令:转动的凸轮让触点依次闭合,五个脉冲逐次到达。一个装置靠压力改变阀的状态,一个靠转角改变触点的状态。都可以沿真实路径指出下一步发生的条件。

原文与时间戳 · 4
a one-way valve and a tube that gets hot
Drip Coffee Makers — super simple, super cheap · ▶ 16:50–16:54
the check valve prevents the water from moving back into the reservoir
Drip Coffee Makers — super simple, super cheap · ▶ 18:03–18:08
It allows things to happen automatically in a sequence.
Old pinball machines are amazingly complex · ▶ 31:13–31:17
the 1,000 point relay will receive five pulses
Old pinball machines are amazingly complex · ▶ 35:24–35:28

米饭熟了和爆米花快好了,机器看到了什么?

电饭锅的磁扣其实没有感知米粒。水沸腾时锅底仍接近沸点,水耗尽后,锅底才足以让磁性元件松开。爆米花微波炉等的是另一种事件——袋口放出蒸汽。它还要利用蒸汽出现之前经过的时间估计剩余时长。一台通过材料直接切换开关,另一台把传感器读数交给查表逻辑。如果提前在炉腔里留了湿气,哪一台的判断最先失去意义?

原文与时间戳 · 4
just a bit higher than the boiling point of water
Old-fashioned rice cookers are extremely clever · ▶ 7:21–7:28
the magnet is no longer attracted to it
Old-fashioned rice cookers are extremely clever · ▶ 8:13–8:18
a single humidity sensor for feedback
The Antique Microwave Oven that's Better than Yours · ▶ 4:03–4:06
how long it took for the bag to burst
The Antique Microwave Oven that's Better than Yours · ▶ 4:57–5:03

门什么时候打开,决定了哪一份水在洗碗

在一次洗碗程序里,只追踪「放了多少洗涤剂」会漏掉一个关键动作:预洗水会被排走。敞开格和密封格让同样的粉末进入不同的水。与弹珠机的计分触点对照,两个例子都有一个可用手验证的问题:把打开的时刻提前,最后一次动作还能拿到它原来需要的东西吗?

原文与时间戳 · 3
the recirculation of water
Your dishwasher is better than you think (tips, tricks, and how they work) · ▶ 2:05–2:10
the pre-wash compartment right next to it isn’t sealed at all
Your dishwasher is better than you think (tips, tricks, and how they work) · ▶ 12:43–12:47
the 1,000 point relay will receive five pulses
Old pinball machines are amazingly complex · ▶ 35:24–35:28

用部件的运动来验算

谐波分析仪把余弦的叠加变成能画出来的曲线,还能沿反方向分析曲线的成分。混动变速桥的讲解也把图纸摆回工作台:用手转动与太阳轮相连的部件,就能看到哪条路径可以启动发动机。前者在算一个函数,后者在传递扭矩。共同的读图方法是先预言一个输出,再慢慢推动输入,找出预言与实物分开的那一步。

原文与时间戳 · 4
adds together cosines
(1/4) Intro/History: Introducing a 100-year-old mechanical computer · ▶ 0:16–0:17
It can take a pattern and reveal the cosines
(1/4) Intro/History: Introducing a 100-year-old mechanical computer · ▶ 0:22–0:25
Toyota calls the power split device
Understanding the Toyota RAV4 Hybrid · ▶ 8:31–8:38
one of the jobs of the MG1 motor is to start the engine
Understanding the Toyota RAV4 Hybrid · ▶ 13:12–13:21

换个灯体,开关要重新学什么?

旧版触摸灯的电路针对一个灯体调整。可更换的模块有了另一种做法,开机先测基线,再找电容的突变。回看微波炉先排湿气的步骤,两者都在正式观测前构造一个参照状态。若把传感器移到新外壳,哪一步需要重做,就变成了可以逐项检查的事。

原文与时间戳 · 3
your body’s capacitance affects the circuit
The touch lamp; a neat idea, and older than you'd think! · ▶ 6:04–6:08
it establishes its baseline capacitance
The touch lamp; a neat idea, and older than you'd think! · ▶ 11:11–11:16
a single humidity sensor for feedback
The Antique Microwave Oven that's Better than Yours · ▶ 4:03–4:06

同一个拉环,为什么先泄压再开口?

饭锅与咖啡机让材料状态参与决定下一步,饮料罐则把两步操作装进了一个手势。Hammack 说明,刚抬起拉环时,它像独轮车的杠杆,以前端为支点,先抬起铆钉附近的金属,帮助罐内泄压。随后支点转到铆钉,拉环前端成为施力压下开口的位置。若从头到尾只把铆钉当支点硬压,就得直接对抗罐内压力,需要更大的拉环。读这个例子时可以画两张受力图,分别标出支点、负载和手的施力处。顺序由几何与压力变化形成,但动力仍来自人;它说明不用电子控制也能组织动作,并不意味着所有机械顺序都能脱离操作者自动运行。

原文与时间戳 · 2
The tab starts as a second class lever.
The Ingenious Design of the Aluminum Beverage Can · ▶ 9:20–9:22
the load is now at the tip and the fulcrum is the rivet.
The Ingenious Design of the Aluminum Beverage Can · ▶ 9:39–9:42

读完再想一步

找一个家用装置,画出一次触发前后发生的两步。用手挡住一条路径或在纸上去掉一个条件,预测它会停在哪里。再对照实物的结构图检查。