珍珠湾ART

标题: 传感器的位置 [打印本页]

作者: ob    时间: 2005-8-24 04:30
标题: 传感器的位置

假设一张圆盘像唱机上的唱盘那样转动。这张盘一半是黑色,一半是白色。假设你有数量不限的一些颜色传感器。要想确定圆盘转动的方向,你需要在它周围摆多少个颜色传感器﹖它们应该被摆放在什么位置﹖

www.ddhw.com

 

作者: sean9991    时间: 2005-8-24 18:21
标题: answer

Two sensors are enough.  Put them side by side along any track, i.e., any circle on the disk with the disk's center as its center.  Say the sensors are A and B clockwise.  After both sensors pickup the same color, if A detects the change of color before B does, then the disk rotates clockwise.  Otherwise, the disk rotates counter-clockwise.
www.ddhw.com

 

作者: husonghu    时间: 2005-8-24 18:54
标题: Agree. This is a nice answer.

  Agree. This is a nice answer.





作者: ob    时间: 2005-8-25 08:57
标题: A good solution[@};-]

  A good solution





作者: 寒潭清    时间: 2005-8-25 09:00
标题: [@};-][@};-][@};-][@};-]

  









欢迎光临 珍珠湾ART (http://zzwav.com/) Powered by Discuz! X3