下图是为做出remote control 买的 commercial remote control。用他们才能在示波器中得出红外线指令的长短。
下图是remote control的背后, 从红外LED焊出来的线直接连在示波器的输入端,或用红外线sensor(左下,小方块)接到示波器的输入端。右下角的纸上是当时的记录(红外线指令的时间长短)。
得到红外线指令的时间长短后,用assembly language去写code, 才能让software 转成microcontroller能懂的binary code(hex file),再用programmer把hex file储存到microcontroller的ram里,再把microcontroller接到线路里,做出remote control。
下图是Canon remote control指令的电压与时间的图表:
谢谢阅读。